public class TimeSeriesStub extends com.vmware.vapi.internal.bindings.Stub implements TimeSeries
TimeSeries
API service.
WARNING: Internal class, subject to change in future versions.
TimeSeriesTypes.PodIdentifier, TimeSeriesTypes.Spec, TimeSeriesTypes.TimeSeries
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
TimeSeriesStub(ApiProvider apiProvider,
StubConfigurationBase config) |
TimeSeriesStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TimeSeriesTypes.TimeSeries> |
get(TimeSeriesTypes.Spec spec)
Gather statistical values for a cluster, namespace, or pod.
|
void |
get(TimeSeriesTypes.Spec spec,
AsyncCallback<java.util.List<TimeSeriesTypes.TimeSeries>> asyncCallback)
Gather statistical values for a cluster, namespace, or pod.
|
void |
get(TimeSeriesTypes.Spec spec,
AsyncCallback<java.util.List<TimeSeriesTypes.TimeSeries>> asyncCallback,
InvocationConfig invocationConfig)
Gather statistical values for a cluster, namespace, or pod.
|
java.util.List<TimeSeriesTypes.TimeSeries> |
get(TimeSeriesTypes.Spec spec,
InvocationConfig invocationConfig)
Gather statistical values for a cluster, namespace, or pod.
|
public TimeSeriesStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public TimeSeriesStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<TimeSeriesTypes.TimeSeries> get(TimeSeriesTypes.Spec spec)
TimeSeries
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface TimeSeries
spec
- Specification of the statistical values that should be returned.public java.util.List<TimeSeriesTypes.TimeSeries> get(TimeSeriesTypes.Spec spec, InvocationConfig invocationConfig)
TimeSeries
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface TimeSeries
spec
- Specification of the statistical values that should be returned.invocationConfig
- Configuration for the method invocation.public void get(TimeSeriesTypes.Spec spec, AsyncCallback<java.util.List<TimeSeriesTypes.TimeSeries>> asyncCallback)
TimeSeries
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
A list of TimeSeries values for each counter specified in the request.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if the start time in TimeSeriesTypes.Spec.getStart()
is
invalid, or the end time in TimeSeriesTypes.Spec.getEnd()
is
invalid.
NotFound
- if the specified cluster in TimeSeriesTypes.Spec.getCluster()
or the namespace in TimeSeriesTypes.Spec.getNamespace()
or TimeSeriesTypes.Spec.getPod()
does
not exist.
Unsupported
- if the specified cluster in TimeSeriesTypes.Spec.getCluster()
is not enabled for Namespaces.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface TimeSeries
spec
- Specification of the statistical values that should be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(TimeSeriesTypes.Spec spec, AsyncCallback<java.util.List<TimeSeriesTypes.TimeSeries>> asyncCallback, InvocationConfig invocationConfig)
TimeSeries
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
A list of TimeSeries values for each counter specified in the request.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if the start time in TimeSeriesTypes.Spec.getStart()
is
invalid, or the end time in TimeSeriesTypes.Spec.getEnd()
is
invalid.
NotFound
- if the specified cluster in TimeSeriesTypes.Spec.getCluster()
or the namespace in TimeSeriesTypes.Spec.getNamespace()
or TimeSeriesTypes.Spec.getPod()
does
not exist.
Unsupported
- if the specified cluster in TimeSeriesTypes.Spec.getCluster()
is not enabled for Namespaces.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have System.Read privilege.
get
in interface TimeSeries
spec
- Specification of the statistical values that should be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.