public interface CounterMetadata extends Service, CounterMetadataTypes
CounterMetadata
interface provides access to the different
historical editions of counters. As computing platforms evolve over time the
measurement units for different characteristics of the systems change. As such
changes occur, counters will receive different editions reflected in a new
metadata record. For example computer memory had changes from kilobytes through
megabytes into gigabytes. 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.CounterMetadataTypes.CounterEditionStatus, CounterMetadataTypes.FilterSpec, CounterMetadataTypes.Info, CounterMetadataTypes.MetricUnits, CounterMetadataTypes.SampleType, CounterMetadataTypes.UnitsFactor
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
CounterMetadataTypes.Info |
get(java.lang.String cid,
java.lang.String mid)
Returns information about a specific CounterMetadata.
|
void |
get(java.lang.String cid,
java.lang.String mid,
AsyncCallback<CounterMetadataTypes.Info> asyncCallback)
Returns information about a specific CounterMetadata.
|
void |
get(java.lang.String cid,
java.lang.String mid,
AsyncCallback<CounterMetadataTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a specific CounterMetadata.
|
CounterMetadataTypes.Info |
get(java.lang.String cid,
java.lang.String mid,
InvocationConfig invocationConfig)
Returns information about a specific CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
getDefault(java.lang.String cid)
This method returns the "default" CounterMetadata.
|
void |
getDefault(java.lang.String cid,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
This method returns the "default" CounterMetadata.
|
void |
getDefault(java.lang.String cid,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
This method returns the "default" CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
getDefault(java.lang.String cid,
InvocationConfig invocationConfig)
This method returns the "default" CounterMetadata.
|
java.util.List<CounterMetadataTypes.Info> |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter)
Returns information about all counter metadata records for a specific Counter.
|
void |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
Returns information about all counter metadata records for a specific Counter.
|
void |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about all counter metadata records for a specific Counter.
|
java.util.List<CounterMetadataTypes.Info> |
list(java.lang.String cid,
CounterMetadataTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns information about all counter metadata records for a specific Counter.
|
java.util.List<CounterMetadataTypes.Info> list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if Counter could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.java.util.List<CounterMetadataTypes.Info> list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, 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.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if Counter could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.void list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of counter metadata for the specified counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(java.lang.String cid, CounterMetadataTypes.FilterSpec filter, AsyncCallback<java.util.List<CounterMetadataTypes.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 metadata for the specified counter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.filter
- Filter specification.
When null
no filtering will be performed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<CounterMetadataTypes.Info> getDefault(java.lang.String cid)
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method 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.Synchronous method overload. Result of the invocation will be reported as a method return value.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.Error
- if the system reports an error while responding to the request.InvalidArgument
- if cid
is invalid.NotFound
- if Counter could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.java.util.List<CounterMetadataTypes.Info> getDefault(java.lang.String cid, InvocationConfig invocationConfig)
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method 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.Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.InvalidArgument
- if cid
is invalid.NotFound
- if Counter could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.void getDefault(java.lang.String cid, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback)
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method 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.Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of counter metadata records.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if cid
is invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void getDefault(java.lang.String cid, AsyncCallback<java.util.List<CounterMetadataTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Sometimes, when providers are in "disagreement" about the default, then the returned list would include all the possible "defaults". This potential ambiguity isn't a real issue because consumers of the vStats API rarely need to specify the "mid" of metadata. Therefore, this API is used primarily for informational purposes.
. Warning: This method 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.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 metadata records.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if cid
is invalid.
NotFound
- if Counter could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.CounterMetadataTypes.Info get(java.lang.String cid, java.lang.String mid)
Synchronous method overload. Result of the invocation will be reported as a method return value.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if Counter or CounterMetadata could not be located.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if the user does not have sufficient privileges.CounterMetadataTypes.Info get(java.lang.String cid, java.lang.String mid, 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.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.InvalidArgument
- if any of the specified parameters are invalid.NotFound
- if Counter or CounterMetadata 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 cid, java.lang.String mid, AsyncCallback<CounterMetadataTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the desired CounterMetadata.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter or CounterMetadata could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String cid, java.lang.String mid, AsyncCallback<CounterMetadataTypes.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 CounterMetadata.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
NotFound
- if Counter or CounterMetadata could not be located.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
cid
- Counter ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.Counter
.mid
- CounterMetadata ID.
The parameter must be an identifier for the resource type: com.vmware.vstats.model.CounterMetadata
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.