Query Monitoring Deprecated
Get monitoring data.
Request
URLURL
https://{api_host}/rest/appliance/monitoring/query
Query Parameters
Query Parameters
string
item.end_time
Required
End time in UTC
array of
string
item.names
Required
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.
string
item.start_time
Required
Start time in UTC
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK returns
MonitoringQueryResponseBody of type application/json
list of MonitoredItemData structure
{
"value": [
{
"data": [
"string"
],
"end_time": "string",
"function": "COUNT",
"interval": "MINUTES30",
"name": "string",
"start_time": "string"
}
]
}
Errors
default
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/appliance/monitoring/query?item.end_time=string&item.function=string&item.interval=string&item.names=string&item.start_time=string
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-new-method: get
x-vmw-doc-new-path: /api/appliance/monitoring/query
x-vmw-doc-operation: query