Get Top Usages
The API allows you to get the top N usage metrics with commitments in the last M days starting from their latest update times, sorted in descending order by the usage/commitment ratio. This allows you to quickly identify the usage metrics that are exceeding their commitments the most.
Unique identifier (GUID) of the organization
Locale with language preference (e.g. en_US)
Requested number of days to specify the time range for usages. Default = 30
Requested number of usage metrics. Default = 5
OK
[
{
"metadata": {
"metric_id": "<metric ID for vRNI vCPUs Public Cloud>",
"service_definition_id": "<service definition ID for VMC-AWS>",
"display_name": "i3en US West 2",
"unit_of_measure_display_name": "Hosts",
"charge_attributes": {
"category": "HOST_USAGE"
}
},
"usage": {
"commitment": 3,
"usage": 3,
"overage": 0,
"status": "AT_COMMITMENT",
"seller": "VMWARE",
"last_updated": "2021-06-20T01:02:03.000Z",
"resources": [
{
"resource_id": "res1",
"usage_quantity": 10
}
]
}
}
]
Bad Request
{
"error_code": "string",
"error_message": "string",
"error_details": [
{
"error_code": "string",
"error_message": "string"
}
]
}
The code associated with the error
A description of the error that occurred
Additional error details for ValidationException errors
Unauthorized
Forbidden