Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the statistics endpoint to get nodes used resources. #248

Merged
merged 5 commits into from
May 24, 2023

Conversation

0oM4R
Copy link
Contributor

@0oM4R 0oM4R commented May 23, 2023

Description

The statistics endpoint provides more accurate data about the used resources of the node.

Changes

  • Add the INodeResources interface
  • Modify the INodeStatistics interface
  • use Axios to fetch statistics with timeout 3ms
  • Handle fetching statistics errors if the node is up

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings

@0oM4R 0oM4R requested a review from AhmedHanafy725 May 24, 2023 11:33
@AhmedHanafy725 AhmedHanafy725 merged commit 56b8bfe into development May 24, 2023
@AhmedHanafy725 AhmedHanafy725 deleted the development_dashboard_useStatistics branch May 24, 2023 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants