Class OperationNotification


public class OperationNotification extends OperationNotificationIdentityProjection
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 Details

    • account

      protected Account account
    • category

      protected String category
    • eventKey

      protected String eventKey
    • acknowledged

      protected Boolean acknowledged
    • acknowledgedDate

      protected Date acknowledgedDate
    • acknowledgedByUser

      protected String acknowledgedByUser
    • startDate

      protected Date startDate
    • resourceName

      protected String resourceName
    • status

      protected String status
    • statusMessage

      protected String statusMessage
    • uniqueId

      protected String uniqueId
    • refType

      protected String refType
    • refId

      protected Long refId
    • regionCode

      protected String regionCode
    • active

      protected Boolean active
  • Constructor Details

    • OperationNotification

      public OperationNotification()
  • Method Details

    • getAccount

      public Account getAccount()
      The account related to this OperationNotification
      Returns:
      the Account
    • setAccount

      public void setAccount(Account account)
      Sets the account related to this OperationNotification
      Parameters:
      account - Account
    • getCategory

      public String getCategory()
      The category related to this OperationNotification
      Returns:
      category
    • setCategory

      public void setCategory(String category)
      Sets the category for this OperationNotification
      Parameters:
      category - Category
    • getEventKey

      public String getEventKey()
      The key for this OperationNotification
      Returns:
      eventKey
    • setEventKey

      public void setEventKey(String eventKey)
      Sets a key for this OperationNotification. For example, the VMware alarm key
      Parameters:
      eventKey - the event key
    • getAcknowledged

      public Boolean getAcknowledged()
      Returns if this OperationNotification has been acknowledged
      Returns:
      acknowledged
    • setAcknowledged

      public void setAcknowledged(Boolean acknowledged)
      Sets whether the OperationNotification has been acknowledged
      Parameters:
      acknowledged - acknowledged
    • getAcknowledgedDate

      public Date getAcknowledgedDate()
      Returns the date that this OperationNotification was acknowledged
      Returns:
      acknowledgedDate
    • setAcknowledgedDate

      public void setAcknowledgedDate(Date acknowledgedDate)
      Sets the date that this OperationNotification was acknowledged.
      Parameters:
      acknowledgedDate - acknowledgedDate
    • getAcknowledgedByUser

      public String getAcknowledgedByUser()
      Returns the user that acknowledged this OperationNotification
      Returns:
      acknowledgedByUser
    • setAcknowledgedByUser

      public void setAcknowledgedByUser(String acknowledgedByUser)
      Sets the user that acknowledged this this OperationNotification.
      Parameters:
      acknowledgedByUser - acknowledgedByUser
    • getStartDate

      public Date getStartDate()
      Returns the date that this OperationNotification started
      Returns:
      startDate
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the date that this OperationNotification started
      Parameters:
      startDate - startDate
    • getResourceName

      public String getResourceName()
      Returns the underlying resource name for this OperationNotification
      Returns:
      resourceName
    • setResourceName

      public void setResourceName(String resourceName)
      Sets the underlying resource name for this OperationNotification.
      Parameters:
      resourceName - resourceName
    • getStatus

      public String getStatus()
      Returns the status for this OperationNotification
      Returns:
      status
    • setStatus

      public void setStatus(String status)
      Sets the status for this OperationNotification. Should be ok, unknown, warning, or error.
      Parameters:
      status - status
    • getStatusMessage

      public String getStatusMessage()
      Returns the status message for this OperationNotification
      Returns:
      statusMessage
    • setStatusMessage

      public void setStatusMessage(String statusMessage)
      Sets the status message for this OperationNotification.
      Parameters:
      statusMessage - statusMessage
    • getUniqueId

      public String getUniqueId()
      Returns the uniqueId for this OperationNotification
      Returns:
      uniqueId
    • setUniqueId

      public void setUniqueId(String uniqueId)
      Sets uniqueId for the OperationNotification. Morpheus ignores this value.
      Parameters:
      uniqueId - uniqueId
    • getRefType

      public String getRefType()
      Returns the refType for this this OperationNotification.
      Returns:
      refType
    • setRefType

      public void setRefType(String refType)
      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

      public Long getRefId()
      Returns the refId for this OperationNotification
      Returns:
      refId
    • setRefId

      public void setRefId(Long refId)
      Sets the refId for this OperationNotification. Set to the id of the object related to this OperationNotification.
      Parameters:
      refId - refId
    • getRegionCode

      public String getRegionCode()
      Returns the regionCode for this OperationNotification
      Returns:
      regionCode the region identifier (i.e. us-west-1)
    • setRegionCode

      public void setRegionCode(String regionCode)
      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

      public Boolean getActive()
      Returns if this OperationNotification is active
      Returns:
      active
    • setActive

      public void setActive(Boolean active)
      Sets whether this OperationNotification is active
      Parameters:
      active - active