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
- All Implemented Interfaces:
Serializable
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accountprotected Booleanprotected Stringprotected Dateprotected Booleanprotected Stringprotected Stringprotected Longprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected StringFields inherited from class com.morpheusdata.model.projection.OperationNotificationIdentityProjection
externalId, nameFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
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 OperationNotificationvoidsetAccount(Account account) Sets the account related to this OperationNotificationvoidsetAcknowledged(Boolean acknowledged) Sets whether the OperationNotification has been acknowledgedvoidsetAcknowledgedByUser(String acknowledgedByUser) Sets the user that acknowledged this this OperationNotification.voidsetAcknowledgedDate(Date acknowledgedDate) Sets the date that this OperationNotification was acknowledged.voidSets whether this OperationNotification is activevoidsetCategory(String category) Sets the category for this OperationNotificationvoidsetEventKey(String eventKey) Sets a key for this OperationNotification.voidSets the refId for this OperationNotification.voidsetRefType(String refType) Sets the refType for this OperationNotification.voidsetRegionCode(String regionCode) Sets the regionCode for this OperationNotification.voidsetResourceName(String resourceName) Sets the underlying resource name for this OperationNotification.voidsetStartDate(Date startDate) Sets the date that this OperationNotification startedvoidSets the status for this OperationNotification.voidsetStatusMessage(String statusMessage) Sets the status message for this OperationNotification.voidsetUniqueId(String uniqueId) Sets uniqueId for the OperationNotification.Methods inherited from class com.morpheusdata.model.projection.OperationNotificationIdentityProjection
getExternalId, getId, getName, setExternalId, setId, setNameMethods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityPropertiesMethods 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
-