Package com.morpheusdata.model
Class OperationNotification
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.OperationNotificationIdentityProjection
com.morpheusdata.model.OperationNotification
Represents a Notification Record often displayed in the Alarm Notification area of Morpheus
These can be created by alarm events that can be synced from some cloud types like AWS CloudWatch
or Vmware
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Account
protected Boolean
protected String
protected Date
protected Boolean
protected String
protected String
protected Long
protected String
protected String
protected String
protected Date
protected String
protected String
protected String
Fields inherited from class com.morpheusdata.model.projection.OperationNotificationIdentityProjection
externalId, name
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe account related to this OperationNotificationReturns if this OperationNotification has been acknowledgedReturns the user that acknowledged this OperationNotificationReturns the date that this OperationNotification was acknowledgedReturns if this OperationNotification is activeThe category related to this OperationNotificationThe key for this OperationNotificationgetRefId()
Returns the refId for this OperationNotificationReturns the refType for this this OperationNotification.Returns the regionCode for this OperationNotificationReturns the underlying resource name for this OperationNotificationReturns the date that this OperationNotification startedReturns the status for this OperationNotificationReturns the status message for this OperationNotificationReturns the uniqueId for this OperationNotificationvoid
setAccount
(Account account) Sets the account related to this OperationNotificationvoid
setAcknowledged
(Boolean acknowledged) Sets whether the OperationNotification has been acknowledgedvoid
setAcknowledgedByUser
(String acknowledgedByUser) Sets the user that acknowledged this this OperationNotification.void
setAcknowledgedDate
(Date acknowledgedDate) Sets the date that this OperationNotification was acknowledged.void
Sets whether this OperationNotification is activevoid
setCategory
(String category) Sets the category for this OperationNotificationvoid
setEventKey
(String eventKey) Sets a key for this OperationNotification.void
Sets the refId for this OperationNotification.void
setRefType
(String refType) Sets the refType for this OperationNotification.void
setRegionCode
(String regionCode) Sets the regionCode for this OperationNotification.void
setResourceName
(String resourceName) Sets the underlying resource name for this OperationNotification.void
setStartDate
(Date startDate) Sets the date that this OperationNotification startedvoid
Sets the status for this OperationNotification.void
setStatusMessage
(String statusMessage) Sets the status message for this OperationNotification.void
setUniqueId
(String uniqueId) Sets uniqueId for the OperationNotification.Methods inherited from class com.morpheusdata.model.projection.OperationNotificationIdentityProjection
getExternalId, getId, getName, setExternalId, setId, setName
Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty
-
Field Details
-
account
-
category
-
eventKey
-
acknowledged
-
acknowledgedDate
-
acknowledgedByUser
-
startDate
-
resourceName
-
status
-
statusMessage
-
uniqueId
-
refType
-
refId
-
regionCode
-
active
-
-
Constructor Details
-
OperationNotification
public OperationNotification()
-
-
Method Details
-
getAccount
The account related to this OperationNotification- Returns:
- the Account
-
setAccount
Sets the account related to this OperationNotification- Parameters:
account
- Account
-
getCategory
The category related to this OperationNotification- Returns:
- category
-
setCategory
Sets the category for this OperationNotification- Parameters:
category
- Category
-
getEventKey
The key for this OperationNotification- Returns:
- eventKey
-
setEventKey
Sets a key for this OperationNotification. For example, the VMware alarm key- Parameters:
eventKey
- the event key
-
getAcknowledged
Returns if this OperationNotification has been acknowledged- Returns:
- acknowledged
-
setAcknowledged
Sets whether the OperationNotification has been acknowledged- Parameters:
acknowledged
- acknowledged
-
getAcknowledgedDate
Returns the date that this OperationNotification was acknowledged- Returns:
- acknowledgedDate
-
setAcknowledgedDate
Sets the date that this OperationNotification was acknowledged.- Parameters:
acknowledgedDate
- acknowledgedDate
-
getAcknowledgedByUser
Returns the user that acknowledged this OperationNotification- Returns:
- acknowledgedByUser
-
setAcknowledgedByUser
Sets the user that acknowledged this this OperationNotification.- Parameters:
acknowledgedByUser
- acknowledgedByUser
-
getStartDate
Returns the date that this OperationNotification started- Returns:
- startDate
-
setStartDate
Sets the date that this OperationNotification started- Parameters:
startDate
- startDate
-
getResourceName
Returns the underlying resource name for this OperationNotification- Returns:
- resourceName
-
setResourceName
Sets the underlying resource name for this OperationNotification.- Parameters:
resourceName
- resourceName
-
getStatus
Returns the status for this OperationNotification- Returns:
- status
-
setStatus
Sets the status for this OperationNotification. Should be ok, unknown, warning, or error.- Parameters:
status
- status
-
getStatusMessage
Returns the status message for this OperationNotification- Returns:
- statusMessage
-
setStatusMessage
Sets the status message for this OperationNotification.- Parameters:
statusMessage
- statusMessage
-
getUniqueId
Returns the uniqueId for this OperationNotification- Returns:
- uniqueId
-
setUniqueId
Sets uniqueId for the OperationNotification. Morpheus ignores this value.- Parameters:
uniqueId
- uniqueId
-
getRefType
Returns the refType for this this OperationNotification.- Returns:
- refType
-
setRefType
Sets the refType for this OperationNotification. Set to the camelcase class name related to this OperationNotification. For example, 'computeZone', 'networkLoadBalancer', 'computeServer', 'datastore', etc- Parameters:
refType
- refType
-
getRefId
Returns the refId for this OperationNotification- Returns:
- refId
-
setRefId
Sets the refId for this OperationNotification. Set to the id of the object related to this OperationNotification.- Parameters:
refId
- refId
-
getRegionCode
Returns the regionCode for this OperationNotification- Returns:
- regionCode the region identifier (i.e. us-west-1)
-
setRegionCode
Sets the regionCode for this OperationNotification. This is used in multi region clouds when needing to categorize what region an alarm is being triggered in.- Parameters:
regionCode
- regionCode the region identifier (i.e. us-west-1)
-
getActive
Returns if this OperationNotification is active- Returns:
- active
-
setActive
Sets whether this OperationNotification is active- Parameters:
active
- active
-