Package com.vmware.vim25.mo
Class AlarmManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.AlarmManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeAlarm(Alarm alarm, ManagedEntity entity) booleanareAlarmActionsEnabled(ManagedEntity entity) Whether or not alarm actions are available on the given ManagedEntityvoidclearTriggeredAlarms(AlarmFilterSpec filter) create(ManagedEntity entity, AlarmSpec spec) createAlarm(ManagedEntity me, AlarmSpec as) Create an alarm against the given managed entity using the alarm specificationvoiddisableAlarm(Alarm alarm, ManagedEntity entity) voidenableAlarm(Alarm alarm, ManagedEntity entity) Alarm[]booleangetAlarmActionsEnabled(ManagedEntity entity) voidsetAlarmActionsEnabled(ManagedEntity entity, boolean enabled) voidsetAlarmStatus(Alarm alarm, ManagedEntity entity, String status) Set the status of an alarm for the given managed entity.Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
AlarmManager
-
-
Method Details
-
getDefaultExpression
-
getDescription
-
acknowledgeAlarm
public void acknowledgeAlarm(Alarm alarm, ManagedEntity entity) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
clearTriggeredAlarms
- Throws:
RuntimeFaultRemoteException
-
create
public Alarm create(ManagedEntity entity, AlarmSpec spec) throws DuplicateName, InvalidName, RuntimeFault, RemoteException -
disableAlarm
- Throws:
RuntimeFaultRemoteException
-
enableAlarm
- Throws:
RuntimeFaultRemoteException
-
getAlarmActionsEnabled
- Throws:
RuntimeFaultRemoteException
-
setAlarmActionsEnabled
public void setAlarmActionsEnabled(ManagedEntity entity, boolean enabled) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
areAlarmActionsEnabled
Whether or not alarm actions are available on the given ManagedEntity- Parameters:
entity- TheManagedEntityto query.- Returns:
- true if alarm actions are available
- Throws:
RuntimeFault- if any unhandled runtime fault occursRemoteException- Since:
- 4.0
-
createAlarm
public Alarm createAlarm(ManagedEntity me, AlarmSpec as) throws InvalidName, DuplicateName, RuntimeFault, RemoteException Create an alarm against the given managed entity using the alarm specification- Parameters:
me- TheManagedEntityto alarm against.as- TheAlarmSpecused to generate the alarm.- Returns:
- The new
Alarmcreated - Throws:
InvalidName- if the alarm name exceeds the max length or is empty.DuplicateName- if an alarm with the same name already exists.RuntimeFault- if any unhandled runtime fault occursRemoteException
-
getAlarm
- Parameters:
me-- Returns:
- Throws:
RuntimeFaultRemoteException
-
getAlarmState
- Parameters:
me-- Returns:
- Throws:
RuntimeFaultRemoteException
-
setAlarmStatus
public void setAlarmStatus(Alarm alarm, ManagedEntity entity, String status) throws RuntimeFault, RemoteException Set the status of an alarm for the given managed entity. SetAlarmStatus is an undocumented SOAP operation that is not part of the published VMware WSDL — it was discovered via the Onyx and doublecloud proxies and is the only way to programmatically reset an alarm'sManagedEntityStatusfrom red back to green.- Parameters:
alarm- TheAlarmto set the status of.entity- TheManagedEntitythe alarm applies to.status- The string status corresponding to aManagedEntityStatusto set.- Throws:
RuntimeFault- if any unhandled runtime fault occursRemoteException- Since:
- 4.x added to yavija for 5.5b.07
-