Admin Stats
GET/stats/:mode/admin
URL | Description |
---|---|
https://ceems-demo.myaddr.tools:7443/api/v1 | Demo |
This admin endpoint will return the quick stats of queried cluster. The
current user is always identified by the header X-Grafana-User
in
the request.
The user who is making the request must be in the list of admin users configured for the server.
A path parameter mode
is required to return the kind of usage statistics.
Currently, two modes of statistics are supported:
current
: In this mode the usage between two time periods is returned based onfrom
andto
query parameters.global
: In this mode the total usage statistics are returned. For instance, if the retention period of the DB is set to 2 years, usage statistics of last 2 years will be returned.
The statistics include current number of active users, projects, jobs, etc.
If to
query parameter is not provided, current time will be used. If from
query parameter is not used, a default query window of 24 hours will be used.
It means if to
is provided, from
will be calculated as to
- 24hrs.
Request
Responses
- 200
- 401
- 403
- 500
OK
Unauthorized
Forbidden
Internal Server Error