https://api.aikaan.io/?urls.primaryName=DeviceManagement#/DeviceVitals/httpQueryMetricV1CPURequest

Hi,
we are trying out API given in this link https://api.aikaan.io/?urls.primaryName=DeviceManagement#/DeviceVitals/httpQueryMetricV1CPURequest

Most of it has json body as
{
“deviceid”: “string”,
“time_end”: “string”,
“time_groupby”: “string”,
“time_start”: “string”
}
Could you share example for above json,

  1. time_end, time_start is unixtime?
  2. time_gorupby , what are values can we pass?
  3. please share examples json for all api if possible

Hello Chetan,
Here is an example payload for that API.

{
    "deviceid": "ea76aae4-87a7-4c7a-a562-87aa5a9e01b2",
    "time_start": 1601815444263000000, // Unix timestamp in nanoseconds
    "time_end": 1601901844263000000,
    "time_groupby": 3600 // Number of seconds in an hour
}

time_start and time_end is in Unix time but it is in nanoseconds.
Value for time_groupby should be the number of seconds.