Aggregate Search Results
Using aggregate API you can aggregate search results for vRealize Network Insight 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": "Flow",
"filter": "destination_ip.ip_address = '1.1.1.1'",
"aggregations": [
{
"field": "flow.totalBytes.delta.summation.bytes",
"aggregation_type": "SUM"
}
],
"time_range": {
"start_time": 1534410000,
"end_time": 1534410559
}
}
query filter
Success
{
"aggregations": [
{
"field": "string",
"aggregation_type": "string",
"value": "number"
}
],
"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