public interface CounterSets extends Service, CounterSetsTypes
CounterSets
interface provides methods for accessing groupings of
counters. Counter-sets allow consumers to use groups of counters. The counters
may relate to different resource types. When an AcqSpecs
record refers to a counter-set, only the relevant
counters apply. Warning: This interface is available as Technology
Preview. These are early access APIs provided to test, automate and provide
feedback on the feature. Since this can change based on feedback, VMware does
not guarantee backwards compatibility and recommends against using them in
production environments. Some Technology Preview APIs might only be applicable
to specific environments.CounterSetsTypes.Info
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
CounterSetsTypes.Info |
get(java.lang.String counterSet)
Returns information about a specific counter set.
|
void |
get(java.lang.String counterSet,
AsyncCallback<CounterSetsTypes.Info> asyncCallback)
Returns information about a specific counter set.
|
void |
get(java.lang.String counterSet,
AsyncCallback<CounterSetsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific counter set.
|
CounterSetsTypes.Info |
get(java.lang.String counterSet,
InvocationConfig invocationConfig)
Returns information about a specific counter set.
|
java.util.List<CounterSetsTypes.Info> |
list()
Returns information about all the counter sets.
|
void |
list(AsyncCallback<java.util.List<CounterSetsTypes.Info>> asyncCallback)
Returns information about all the counter sets.
|
void |
list(AsyncCallback<java.util.List<CounterSetsTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all the counter sets.
|
java.util.List<CounterSetsTypes.Info> |
list(InvocationConfig invocationConfig)
Returns information about all the counter sets.
|
java.util.List<CounterSetsTypes.Info> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
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.java.util.List<CounterSetsTypes.Info> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.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.void list(AsyncCallback<java.util.List<CounterSetsTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of counter sets.
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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<CounterSetsTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
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 counter sets.
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.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CounterSetsTypes.Info get(java.lang.String counterSet)
Synchronous method overload. Result of the invocation will be reported as a method return value.
counterSet
- identifier of the counter set to retrieve.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterSet
.Error
- if the system reports an error while responding to the request.InvalidArgument
- if counterSet
is invalid.NotFound
- if the requested counter set could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.CounterSetsTypes.Info get(java.lang.String counterSet, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
counterSet
- identifier of the counter set to retrieve.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterSet
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.InvalidArgument
- if counterSet
is invalid.NotFound
- if the requested counter set could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.void get(java.lang.String counterSet, AsyncCallback<CounterSetsTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the desired CounterSet.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if counterSet
is invalid.
NotFound
- if the requested counter set could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
counterSet
- identifier of the counter set to retrieve.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterSet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String counterSet, AsyncCallback<CounterSetsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
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:
Information about the desired CounterSet.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if counterSet
is invalid.
NotFound
- if the requested counter set could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
counterSet
- identifier of the counter set to retrieve.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterSet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.