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

[API] Dashboard statistic counter #185

Open
nguyencatpham opened this issue Jul 23, 2023 · 1 comment
Open

[API] Dashboard statistic counter #185

nguyencatpham opened this issue Jul 23, 2023 · 1 comment
Labels
go Pull requests that update Go code
Milestone

Comments

@nguyencatpham
Copy link
Collaborator

Provide an API for Frontend to get some statistic counters like total Gobench applications, total healthy agents, total scenarios, etc.

@nguyencatpham nguyencatpham added the go Pull requests that update Go code label Jul 23, 2023
@nguyencatpham
Copy link
Collaborator Author

Some recommendation

API Documentation: Statistic Counters

Get Total Gobench Applications

Endpoint: /api/statistics/total-gobench-applications

Method: GET

Description: Retrieves the total number of Gobench applications.

Response:

{
  "totalApplications": 25
}

Get Total Healthy Agents

Endpoint: /api/statistics/total-healthy-agents

Method: GET

Description: Retrieves the total number of healthy agents.

Response:

{
  "totalHealthyAgents": 10
}

Get Total Scenarios

Endpoint: /api/statistics/total-scenarios

Method: GET

Description: Retrieves the total number of scenarios.

Response:

{
  "totalScenarios": 50
}

@nguyencatpham nguyencatpham added this to the v2 milestone Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

No branches or pull requests

1 participant