DataTypes.DataPoint, DataTypes.DataPointsResult, DataTypes.FilterSpec
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
DataStub(ApiProvider apiProvider,
StubConfigurationBase config) |
DataStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
DataTypes.DataPointsResult |
queryDataPoints(DataTypes.FilterSpec filter)
Returns
DataTypes.DataPointsResult matching the filter
parameters. |
void |
queryDataPoints(DataTypes.FilterSpec filter,
AsyncCallback<DataTypes.DataPointsResult> asyncCallback)
Returns
DataTypes.DataPointsResult matching the filter
parameters. |
void |
queryDataPoints(DataTypes.FilterSpec filter,
AsyncCallback<DataTypes.DataPointsResult> asyncCallback,
InvocationConfig invocationConfig)
Returns
DataTypes.DataPointsResult matching the filter
parameters. |
DataTypes.DataPointsResult |
queryDataPoints(DataTypes.FilterSpec filter,
InvocationConfig invocationConfig)
Returns
DataTypes.DataPointsResult matching the filter
parameters. |
public DataStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public DataStub(ApiProvider apiProvider, StubConfigurationBase config)
public DataTypes.DataPointsResult queryDataPoints(DataTypes.FilterSpec filter)
Data
DataTypes.DataPointsResult
matching the filter
parameters.
/vstats/data/dp?types=VM&types=VCPU
/vstats/data/dp?rsrcs=type.HOST=host-16&rsrcs=type.VM=vm-31
Synchronous method overload. Result of the invocation will be reported as a method return value.
queryDataPoints
in interface Data
filter
- Specification to match DataPoints.
When Set
filtering will be applied to the result.public DataTypes.DataPointsResult queryDataPoints(DataTypes.FilterSpec filter, InvocationConfig invocationConfig)
Data
DataTypes.DataPointsResult
matching the filter
parameters.
/vstats/data/dp?types=VM&types=VCPU
/vstats/data/dp?rsrcs=type.HOST=host-16&rsrcs=type.VM=vm-31
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
queryDataPoints
in interface Data
filter
- Specification to match DataPoints.
When Set
filtering will be applied to the result.invocationConfig
- Configuration for the method invocation.public void queryDataPoints(DataTypes.FilterSpec filter, AsyncCallback<DataTypes.DataPointsResult> asyncCallback)
Data
DataTypes.DataPointsResult
matching the filter
parameters.
/vstats/data/dp?types=VM&types=VCPU
/vstats/data/dp?rsrcs=type.HOST=host-16&rsrcs=type.VM=vm-31
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Data points matching the filter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
queryDataPoints
in interface Data
filter
- Specification to match DataPoints.
When Set
filtering will be applied to the result.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void queryDataPoints(DataTypes.FilterSpec filter, AsyncCallback<DataTypes.DataPointsResult> asyncCallback, InvocationConfig invocationConfig)
Data
DataTypes.DataPointsResult
matching the filter
parameters.
/vstats/data/dp?types=VM&types=VCPU
/vstats/data/dp?rsrcs=type.HOST=host-16&rsrcs=type.VM=vm-31
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:
Data points matching the filter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
InvalidArgument
- if any of the specified parameters are invalid.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user does not have sufficient privileges.
queryDataPoints
in interface Data
filter
- Specification to match DataPoints.
When Set
filtering will be applied to the result.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.