Class DowntimeResponseAttributes

java.lang.Object
com.datadog.api.client.v2.model.DowntimeResponseAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimeResponseAttributes extends Object
Downtime details.
  • Field Details

  • Constructor Details

    • DowntimeResponseAttributes

      public DowntimeResponseAttributes()
  • Method Details

    • canceled

      public DowntimeResponseAttributes canceled(OffsetDateTime canceled)
    • getCanceled

      @Nullable public OffsetDateTime getCanceled()
      Time that the downtime was canceled.
      Returns:
      canceled
    • getCanceled_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getCanceled_JsonNullable()
    • setCanceled_JsonNullable

      public void setCanceled_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> canceled)
    • setCanceled

      public void setCanceled(OffsetDateTime canceled)
    • created

      public DowntimeResponseAttributes created(OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Creation time of the downtime.
      Returns:
      created
    • setCreated

      public void setCreated(OffsetDateTime created)
    • displayTimezone

      public DowntimeResponseAttributes displayTimezone(String displayTimezone)
    • getDisplayTimezone

      @Nullable public String getDisplayTimezone()
      The timezone in which to display the downtime's start and end times in Datadog applications. This is not used as an offset for scheduling.
      Returns:
      displayTimezone
    • getDisplayTimezone_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getDisplayTimezone_JsonNullable()
    • setDisplayTimezone_JsonNullable

      public void setDisplayTimezone_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> displayTimezone)
    • setDisplayTimezone

      public void setDisplayTimezone(String displayTimezone)
    • message

      public DowntimeResponseAttributes message(String message)
    • getMessage

      @Nullable public String getMessage()
      A message to include with notifications for this downtime. Email notifications can be sent to specific users by using the same @username notation as events.
      Returns:
      message
    • getMessage_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getMessage_JsonNullable()
    • setMessage_JsonNullable

      public void setMessage_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> message)
    • setMessage

      public void setMessage(String message)
    • modified

      public DowntimeResponseAttributes modified(OffsetDateTime modified)
    • getModified

      @Nullable public OffsetDateTime getModified()
      Time that the downtime was last modified.
      Returns:
      modified
    • setModified

      public void setModified(OffsetDateTime modified)
    • monitorIdentifier

      public DowntimeResponseAttributes monitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier)
    • getMonitorIdentifier

      @Nullable public DowntimeMonitorIdentifier getMonitorIdentifier()
      Monitor identifier for the downtime.
      Returns:
      monitorIdentifier
    • setMonitorIdentifier

      public void setMonitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier)
    • muteFirstRecoveryNotification

      public DowntimeResponseAttributes muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
    • getMuteFirstRecoveryNotification

      @Nullable public Boolean getMuteFirstRecoveryNotification()
      If the first recovery notification during a downtime should be muted.
      Returns:
      muteFirstRecoveryNotification
    • setMuteFirstRecoveryNotification

      public void setMuteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
    • notifyEndStates

      public DowntimeResponseAttributes notifyEndStates(List<DowntimeNotifyEndStateTypes> notifyEndStates)
    • addNotifyEndStatesItem

      public DowntimeResponseAttributes addNotifyEndStatesItem(DowntimeNotifyEndStateTypes notifyEndStatesItem)
    • getNotifyEndStates

      @Nullable public List<DowntimeNotifyEndStateTypes> getNotifyEndStates()
      States that will trigger a monitor notification when the notify_end_types action occurs.
      Returns:
      notifyEndStates
    • setNotifyEndStates

      public void setNotifyEndStates(List<DowntimeNotifyEndStateTypes> notifyEndStates)
    • notifyEndTypes

      public DowntimeResponseAttributes notifyEndTypes(List<DowntimeNotifyEndStateActions> notifyEndTypes)
    • addNotifyEndTypesItem

      public DowntimeResponseAttributes addNotifyEndTypesItem(DowntimeNotifyEndStateActions notifyEndTypesItem)
    • getNotifyEndTypes

      @Nullable public List<DowntimeNotifyEndStateActions> getNotifyEndTypes()
      Actions that will trigger a monitor notification if the downtime is in the notify_end_types state.
      Returns:
      notifyEndTypes
    • setNotifyEndTypes

      public void setNotifyEndTypes(List<DowntimeNotifyEndStateActions> notifyEndTypes)
    • getRunAs

      @Nullable public List<DowntimeRunAsItem> getRunAs()
      The principals (users, roles, or teams) allowed to act on behalf of the downtime.

      Note: This feature is currently in Preview and may not be available for all organizations.

      Returns:
      runAs
    • schedule

    • getSchedule

      @Nullable public DowntimeScheduleResponse getSchedule()
      The schedule that defines when the monitor starts, stops, and recurs. There are two types of schedules: one-time and recurring. Recurring schedules may have up to five RRULE-based recurrences. If no schedules are provided, the downtime will begin immediately and never end.
      Returns:
      schedule
    • setSchedule

      public void setSchedule(DowntimeScheduleResponse schedule)
    • scope

      public DowntimeResponseAttributes scope(String scope)
    • getScope

      @Nullable public String getScope()
      The scope to which the downtime applies. Must follow the common search syntax.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • status

    • getStatus

      @Nullable public DowntimeStatus getStatus()
      The current status of the downtime.
      Returns:
      status
    • setStatus

      public void setStatus(DowntimeStatus status)
    • putAdditionalProperty

      public DowntimeResponseAttributes putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      DowntimeResponseAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this DowntimeResponseAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object