public interface Health extends Service, HealthTypes
Health
interface provides methods to retrieve the appliance health
information. This interface was added in vSphere API 6.7.Modifier and Type | Method and Description |
---|---|
java.util.List<Notification> |
messages(java.lang.String item)
Get health messages.
|
void |
messages(java.lang.String item,
AsyncCallback<java.util.List<Notification>> asyncCallback)
Get health messages.
|
void |
messages(java.lang.String item,
AsyncCallback<java.util.List<Notification>> asyncCallback,
InvocationConfig invocationConfig)
Get health messages.
|
java.util.List<Notification> |
messages(java.lang.String item,
InvocationConfig invocationConfig)
Get health messages.
|
java.util.List<Notification> messages(java.lang.String item)
Synchronous method overload. Result of the invocation will be reported as a method return value.
java.util.List<Notification> messages(java.lang.String item, 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.
void messages(java.lang.String item, AsyncCallback<java.util.List<Notification>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
List of the health messages
Operation Errors:
NotFound
- Unknown health item
Error
- Generic error
item
- ID of the data item
The parameter must be an identifier for the resource type: com.vmware.appliance.health
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void messages(java.lang.String item, AsyncCallback<java.util.List<Notification>> 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.
Operation Result:
List of the health messages
Operation Errors:
NotFound
- Unknown health item
Error
- Generic error
item
- ID of the data item
The parameter must be an identifier for the resource type: com.vmware.appliance.health
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.