public class MetricsStub extends com.vmware.vapi.internal.bindings.Stub implements Metrics
Metrics
API service.
WARNING: Internal class, subject to change in future versions.
MetricsTypes.Summary
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
MetricsStub(ApiProvider apiProvider,
StubConfigurationBase config) |
MetricsStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.List<MetricsTypes.Summary> |
list()
Returns list of available Metrics as supplied by the discovered providers.
|
void |
list(AsyncCallback<java.util.List<MetricsTypes.Summary>> asyncCallback)
Returns list of available Metrics as supplied by the discovered providers.
|
void |
list(AsyncCallback<java.util.List<MetricsTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns list of available Metrics as supplied by the discovered providers.
|
java.util.List<MetricsTypes.Summary> |
list(InvocationConfig invocationConfig)
Returns list of available Metrics as supplied by the discovered providers.
|
public MetricsStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public MetricsStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<MetricsTypes.Summary> list()
Metrics
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<MetricsTypes.Summary> list(InvocationConfig invocationConfig)
Metrics
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(AsyncCallback<java.util.List<MetricsTypes.Summary>> asyncCallback)
Metrics
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of Metrics.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
public void list(AsyncCallback<java.util.List<MetricsTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Metrics
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:
List of Metrics.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.