Dashboard

Endpoints


Get object counts

GET/dashboard/:sourceId/count_aggregation/:target

Arguments

PATH PARAMETER
  • sourceId UUID The id of the source
  • target String
QUERY STRING PARAMETERS
  • start Long required Start timestamp
  • end Long required End timestamp
  • interval Enum required
    • daily
    • weekly
    • monthly

Response

Returns the number of points inside each area index

{
"status": "ok",
"data": [
{
"key": "keyname",
"docCount": 20,
"subValue": 19.98
}
]
}

Get max object counts

POST/dashboard/:sourceId/max_aggregation/:target

Arguments

PATH PARAMETER
  • sourceId UUID required The id of the source
  • target String required
QUERY STRING PARAMETERS
  • start Long required Start timestamp
  • end Long required End timestamp

Response

Returns the number of points inside each area index

{
"status": "ok",
"data": 19.98
}