cdp.radius.aggregate
The cdp.radius.aggregate command is used to acquire the total amount of data used by a connection per day.
TR50 Request
{
"1": {
"command": "cdp.radius.aggregate",
"params": {
"connId": "5fe230bd50a1237f11df58e7",
"start": "2019-05-20T00:00:00+00:00",
"end": "2019-05-24T23:59:59+00:00"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
connId | String | Yes | The ID of the connection. |
start | String | Yes* | When doing a definite time period request this is the timestamp for the start of the specified time window. |
end | String | When doing a definite time period request this is the timestamp for the end of the specified time window. | |
last | String | When doing a last period of time request this specifies the last X amount of time in seconds (s), minutes (m), hours (h), or days (d). | |
records | Integer | When doing a last number of records request this specifies the number of records to return. | |
offset | Integer | The starting list offset, used for pagination. Defaults to 0 if not specified. | |
limit | Integer | Limits the number of results returned. Defaults to 2000. | |
* One of the following parameter Start (with end), last or records is required |
TR50 Response
{
"1": {
"success": true,
"params": {
"values": [
{
"value": 184.06,
"ts": "2019-05-20T00:00:00Z"
},
{
"value": 175.29,
"ts": "2019-05-21T00:00:00Z"
},
{
"value": 81.216,
"ts": "2019-05-22T00:00:00Z"
},
{
"value": 109.474,
"ts": "2017-05-23T00:00:00Z"
},
{
"value": 95.908,
"ts": "2017-05-24T00:00:00Z"
}
]
}
}
}
Response Parameters
If the command is sent successfully a success message and the aggregate totals are returned. Otherwise, an error and error message will be returned.
The number of records returned is limited to 5000 by the deviceWISE Cloud. If your query returns more results than the limit of the deviceWISE Cloud, you should shorten your time window or lower the number of records you are requesting.
Name | Type | Description |
---|---|---|
values | Array | The array of aggregate records. |
Value Parameters
Name | Type | Description |
---|---|---|
value | Float | The amount of data used for the given timestamp. |
ts | String | The timestamp for the given value. |