Get Stats Time Series
Gather statistical values for a cluster, namespace, or pod.
Request
URLURL
Query Parameters
Query Parameters
Cluster identifier for queries for a cluster. This field is optional and it is only relevant when the value of TimeSeries.Spec.obj-type is CLUSTER. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ClusterComputeResource. When operations return a value of this structure as a result, the field will be an identifier for the resource type: ClusterComputeResource.
UNIX timestamp value indicating when the requested series of statistical samples should end. https://en.wikipedia.org/wiki/Unix_time
Namespace name for queries for a namespace. This field is optional and it is only relevant when the value of TimeSeries.Spec.obj-type is NAMESPACE. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance.
Type of statistics object that the request is operating on.
Pod Identifier for queries on an individual pod. This field is optional and it is only relevant when the value of TimeSeries.Spec.obj-type is POD.
UNIX timestamp value indicating when the requested series of statistical samples should begin. https://en.wikipedia.org/wiki/Unix_time
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
NamespaceManagementStatsTimeSeriesTimeSeries
of type application/json
A list of TimeSeries values for each counter specified in the request.
[
{
"counter": "string",
"time_stamps": [
0
],
"values": [
0
]
}
]
Counter identifier.
Sequence of UNIX timestamp values at which statistical values were sampled. https://en.wikipedia.org/wiki/Unix_time
Sequence of sampled values corresponding to the timestamps in tss.
Errors
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. | com.vmware.vapi.std.errors.unsupported : if the specified cluster in TimeSeries.Spec.cluster is not enabled for Namespaces.
com.vmware.vapi.std.errors.unauthorized : if the user does not have System.Read privilege.
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.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘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-operation: get