Get Stats Time Series
Released in v7.0.0.0 DescriptionGather statistical values for a cluster, namespace, or pod.
Request
URLURL
https://{api_host}/api/vcenter/namespace-management/stats/time-series
Query Parameters
Query Parameters
spec
Required
Specification of the statistical values that should be returned.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
array
of
NamespaceManagementStatsTimeSeriesTimeSeries
of type application/json
A list of TimeSeries values for each counter specified in the request.
{
"counter": "string",
"time_stamps": [
0
],
"values": [
0
]
}
string
counter
Required
Counter identifier.
array of
integer
time_stamps
Required
Sequence of UNIX timestamp values at which statistical values were sampled. https://en.wikipedia.org/wiki/Unix_time
array of
integer
values
Required
Sequence of sampled values corresponding to the timestamps in tss.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/vcenter/namespace-management/stats/time-series?spec=string
Errors
401
com.vmware.vapi.std.errors.unauthenticated : if the user can not be authenticated. | com.vmware.vapi.std.errors.unauthorized : if the user does not have System.Read privilege.
404
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request. | com.vmware.vapi.std.errors.not_found : if the specified cluster in TimeSeries.Spec.cluster or the namespace in TimeSeries.Spec.namespace or TimeSeries.Spec.pod does not exist.
405
com.vmware.vapi.std.errors.unsupported : if the specified cluster in TimeSeries.Spec.cluster is not enabled for Namespaces.
400
com.vmware.vapi.std.errors.invalid_argument : if the start time in TimeSeries.Spec.start is invalid, or the end time in TimeSeries.Spec.end is invalid.