gobench-io / gobench

A benchmark framework based on Golang
Apache License 2.0
68 stars 15 forks source link

[API] Dashboard statistic counter #185

Open nguyencatpham opened 1 year ago

nguyencatpham commented 1 year ago

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

nguyencatpham commented 1 year ago

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
}