MetricsDataResponse
Metrics data response
{
"start_time": 0,
"end_time": 0,
"granularity": "string",
"resource_type": "string",
"is_status_metric": false,
"page_number": 0,
"page_size": 0,
"total_results": 0,
"results": [
{
"resource_id": "string",
"resource_ref_id": "string",
"related_entries": [
{
"related_resource_type": "string",
"related_resource_entities": [
{
"related_resource_id": "string",
"related_resource_ref_id": "string",
"related_resource_display_name": "string"
}
]
}
],
"site_id": "string",
"display_name": "string",
"key_results": [
{
"key": "string",
"unit": "string",
"description": "string",
"results": [
{
"object_id": "string",
"node_id": "string",
"node_path": "string",
"node_name": "string",
"last_known_status": {
"time": 0,
"value": "string",
"is_partial": false
},
"data": [
{
"time": 0,
"value": "string",
"is_partial": false
}
]
}
]
}
]
}
]
}
Epoch time in milliseconds. Actual start time of the data being reported
Epoch time in milliseconds. Actual end time of the data being reported
Granularity of the metrics data required. Defaults are based on below setting - -- If time-range is <= 12 hr, default to 5 min granularity. -- If time-range is > 12 hrs and <= 7 days, default to 1 hr granularity. -- If time-range is more than 7 days, default to 1 day granularity. If you are looking for more coarser value, use this field. E.g If ONE_HOUR is set, system will aggregate all the data points available within one hour and return the aggregated metric value. This field is not relevant (ignored) for "is_status" metrics.
This is a required field. Resource Type for which metric keys and their information is requested for. Example of support NSX resource types are PolicyEdgeNode, HostTransportNode, Tier0Interface, Tier1Interface, Tier0, Tier1, Rule, SegmentPort. Example of supported (Security Services Platform) resource_types are SspCluster, SspNode and various SSP Services.
Set to 'true' when the response is for 'is_status_metric' keys. For these type of metrics, do not expect to see periodic datapoints. These are reported/plotted only when the value of such metrics changes/transitions. If there are no transitions to report in the requested interval (defined by start_time - end_time), 'data' will be empty, and the latest status can be retrieved from 'last_known_value'.
Current page number of the response.
Maximum number of results in the response.
Total count of results for the request.