Aggregate Search Results
Using aggregate API you can aggregate search results for Operations for Networks entities by specifying entity type, filter expression and aggregate clause. Please refer to API Guide on details of how to construct filter expression and aggregate clause. A successful search request will return a list of aggregations.
Aggregation Request
{
"entity_type": "string",
"filter": "string",
"aggregations": [
{
"field": "flow.totalBytes.delta.summation.bytes",
"aggregation_type": "string"
}
],
"time_range": {
"start_time": 1597247025,
"end_time": 1597247999
}
}
entity_type
query filter
Success
{
"aggregations": [
{
"field": "string",
"aggregation_type": "string",
"value": "number"
}
],
"series_values": [
{
"field": "string",
"aggregation_type": "string",
"resolution_in_secs": 0,
"series": [
[
{}
]
]
}
],
"total_count": 100,
"start_time": 1597247025,
"end_time": 1597247999
}
Total count of objects returned
Start timestamp of the window of the objects returned
End timestamp of the window of the objects returned
Bad Request
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
code
message
Unauthorized
Internal Error