HA Application Monitoring API Error Messages

The vSphere infrastructure can return errors in Table 1 as a result of HA Application Monitoring calls.
HA Application Monitoring Error Codes
Error Message
Data Type
Code
Description
VMGUESTAPPMONITORLIB_ERROR_SUCCESS
int
0
Call completed successfully.
VMGUESTAPPMONITORLIB_ERROR_OTHER
char
 
Unknown error.
VMGUESTAPPMONITORLIB_ERROR_NOT_RUNNING_IN_VM
char
 
Calling application is not running within a virtual machine.
VMGUESTAPPMONITORLIB_ERROR_NOT_ENABLED
char
 
Monitoring is not enabled.
VMGUESTAPPMONITORLIB_ERROR_NOT_SUPPORTED
char
 
Monitoring is not supported.