Query Monitoring
Get monitoring data.
Request
URLURL
Query Parameters
Query Parameters
End time in UTC
monitored item IDs Ex: CPU, MEMORY When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.appliance.monitoring. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.appliance.monitoring.
Start time in UTC
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
array
of
MonitoringMonitoredItemData
of type application/json
list of MonitoredItemData structure
[
{
"data": [
"string"
],
"end_time": "string",
"function": "COUNT",
"interval": "MINUTES30",
"name": "string",
"start_time": "string"
}
]
list of values
End time in UTC
Monitoring.FunctionType enumerated type Defines aggregation function
COUNT : Aggregation takes count per period (sum)
MAX : Aggregation takes maximums per period
AVG : Aggregation takes average per period
MIN : Aggregation takes minimums per period
Possible values are: COUNT , MAX , AVG , MIN
Monitoring.IntervalType enumerated type Defines interval between the values in hours and mins, for which aggregation will apply
MINUTES30 : Thirty minutes interval between values. One week is 336 values.
HOURS2 : Two hours interval between values. One month has 360 values.
MINUTES5 : Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
DAY1 : 24 hours interval between values. One year has 365 values.
HOURS6 : Six hour interval between values. One quarter is 360 values.
Possible values are: MINUTES30 , HOURS2 , MINUTES5 , DAY1 , HOURS6
Monitored item IDs Ex: CPU, MEMORY, STORAGE_TOTAL When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.appliance.monitoring. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.appliance.monitoring.
Start time in UTC
Errors
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/appliance/monitoring/query
x-vmw-doc-operation: query