public class MetricsStub extends com.vmware.vapi.internal.bindings.Stub implements Metrics
Metrics
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.bindings.StubConfigurationBase config) |
MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
com.vmware.vapi.bindings.StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
MetricsAgent |
get(java.lang.String orgId,
java.lang.String projectId)
Fetch current Metric agent config
|
void |
get(java.lang.String orgId,
java.lang.String projectId,
com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Fetch current Metric agent config
|
void |
get(java.lang.String orgId,
java.lang.String projectId,
com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch current Metric agent config
|
MetricsAgent |
get(java.lang.String orgId,
java.lang.String projectId,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Fetch current Metric agent config
|
MetricsAgent |
update(java.lang.String orgId,
java.lang.String projectId,
MetricsAgent metricsAgent)
Create Metrics agent intent resource
|
void |
update(java.lang.String orgId,
java.lang.String projectId,
MetricsAgent metricsAgent,
com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Create Metrics agent intent resource
|
void |
update(java.lang.String orgId,
java.lang.String projectId,
MetricsAgent metricsAgent,
com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create Metrics agent intent resource
|
MetricsAgent |
update(java.lang.String orgId,
java.lang.String projectId,
MetricsAgent metricsAgent,
com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
Create Metrics agent intent resource
|
public MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)
public MetricsStub(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)
public MetricsAgent get(java.lang.String orgId, java.lang.String projectId)
Metrics
Synchronous method overload. Result of the invocation will be reported as a method return value.
public MetricsAgent get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.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 get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Metrics
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx_policy.model.MetricsAgent
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public void get(java.lang.String orgId, java.lang.String projectId, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.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:
com.vmware.nsx_policy.model.MetricsAgent
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public MetricsAgent update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent)
Metrics
Synchronous method overload. Result of the invocation will be reported as a method return value.
public MetricsAgent update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.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 update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback)
Metrics
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
com.vmware.nsx_policy.model.MetricsAgent
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
public void update(java.lang.String orgId, java.lang.String projectId, MetricsAgent metricsAgent, com.vmware.vapi.bindings.client.AsyncCallback<MetricsAgent> asyncCallback, com.vmware.vapi.bindings.client.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:
com.vmware.nsx_policy.model.MetricsAgent
Operation Errors:
InvalidRequest
- Bad Request, Precondition Failed
Unauthorized
- Forbidden
ServiceUnavailable
- Service Unavailable
InternalServerError
- Internal Server Error
NotFound
- Not Found
update
in interface Metrics
orgId
- The organization ID (required)projectId
- The project ID (required)metricsAgent
- (required)asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.