Class MonitorUpdateRequest

java.lang.Object
com.datadog.api.client.v1.model.MonitorUpdateRequest

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorUpdateRequest extends Object
Object describing a monitor update request.
  • Field Details

  • Constructor Details

    • MonitorUpdateRequest

      public MonitorUpdateRequest()
  • Method Details

    • assets

      public MonitorUpdateRequest assets(List<MonitorAsset> assets)
    • addAssetsItem

      public MonitorUpdateRequest addAssetsItem(MonitorAsset assetsItem)
    • getAssets

      @Nullable public List<MonitorAsset> getAssets()
      The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).
      Returns:
      assets
    • getAssets_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<MonitorAsset>> getAssets_JsonNullable()
    • setAssets_JsonNullable

      public void setAssets_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<MonitorAsset>> assets)
    • setAssets

      public void setAssets(List<MonitorAsset> assets)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Timestamp of the monitor creation.
      Returns:
      created
    • getCreator

      @Nullable public Creator getCreator()
      Object describing the creator of the shared element.
      Returns:
      creator
    • getDeleted

      @Nullable public OffsetDateTime getDeleted()
      Whether or not the monitor is deleted. (Always null)
      Returns:
      deleted
    • getDeleted_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getDeleted_JsonNullable()
    • draftStatus

      public MonitorUpdateRequest draftStatus(MonitorDraftStatus draftStatus)
    • getDraftStatus

      @Nullable public MonitorDraftStatus getDraftStatus()
      Indicates whether the monitor is in a draft or published state.

      draft: The monitor appears as Draft and does not send notifications. published: The monitor is active and evaluates conditions and notify as configured.

      This field is in preview. The draft value is only available to customers with the feature enabled.

      Returns:
      draftStatus
    • setDraftStatus

      public void setDraftStatus(MonitorDraftStatus draftStatus)
    • getId

      @Nullable public Long getId()
      ID of this monitor.
      Returns:
      id
    • message

      public MonitorUpdateRequest message(String message)
    • getMessage

      @Nullable public String getMessage()
      A message to include with notifications for this monitor.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • getModified

      @Nullable public OffsetDateTime getModified()
      Last timestamp when the monitor was edited.
      Returns:
      modified
    • getMulti

      @Nullable public Boolean getMulti()
      Whether or not the monitor is broken down on different groups.
      Returns:
      multi
    • name

      public MonitorUpdateRequest name(String name)
    • getName

      @Nullable public String getName()
      The monitor name.
      Returns:
      name
    • setName

      public void setName(String name)
    • options

      public MonitorUpdateRequest options(MonitorOptions options)
    • getOptions

      @Nullable public MonitorOptions getOptions()
      List of options associated with your monitor.
      Returns:
      options
    • setOptions

      public void setOptions(MonitorOptions options)
    • getOverallState

      @Nullable public MonitorOverallStates getOverallState()
      The different states your monitor can be in.
      Returns:
      overallState
    • priority

      public MonitorUpdateRequest priority(Long priority)
    • getPriority

      @Nullable public Long getPriority()
      Integer from 1 (high) to 5 (low) indicating alert severity.
      Returns:
      priority
    • getPriority_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getPriority_JsonNullable()
    • setPriority_JsonNullable

      public void setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> priority)
    • setPriority

      public void setPriority(Long priority)
    • query

      public MonitorUpdateRequest query(String query)
    • getQuery

      @Nullable public String getQuery()
      The monitor query.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • restrictedRoles

      public MonitorUpdateRequest restrictedRoles(List<String> restrictedRoles)
    • addRestrictedRolesItem

      public MonitorUpdateRequest addRestrictedRolesItem(String restrictedRolesItem)
    • getRestrictedRoles

      @Nullable public List<String> getRestrictedRoles()
      A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.
      Returns:
      restrictedRoles
    • getRestrictedRoles_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getRestrictedRoles_JsonNullable()
    • setRestrictedRoles_JsonNullable

      public void setRestrictedRoles_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> restrictedRoles)
    • setRestrictedRoles

      public void setRestrictedRoles(List<String> restrictedRoles)
    • getState

      @Nullable public MonitorState getState()
      Wrapper object with the different monitor states.
      Returns:
      state
    • tags

      public MonitorUpdateRequest tags(List<String> tags)
    • addTagsItem

      public MonitorUpdateRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags associated to your monitor.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • type

      public MonitorUpdateRequest type(MonitorType type)
    • getType

      @Nullable public MonitorType getType()
      The type of the monitor. For more information about type, see the monitor options docs.
      Returns:
      type
    • setType

      public void setType(MonitorType type)
    • putAdditionalProperty

      public MonitorUpdateRequest 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:
      MonitorUpdateRequest
    • 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 MonitorUpdateRequest 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