Class MonitorSearchResult

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorSearchResult extends Object
Holds search results.
  • Field Details

  • Constructor Details

    • MonitorSearchResult

      public MonitorSearchResult()
  • Method Details

    • getClassification

      @Nullable public String getClassification()
      Classification of the monitor.
      Returns:
      classification
    • getCreator

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

      @Nullable public Long getId()
      ID of the monitor.
      Returns:
      id
    • getLastTriggeredTs

      @Nullable public Long getLastTriggeredTs()
      Latest timestamp the monitor triggered.
      Returns:
      lastTriggeredTs
    • getLastTriggeredTs_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getLastTriggeredTs_JsonNullable()
    • getMetrics

      @Nullable public List<String> getMetrics()
      Metrics used by the monitor.
      Returns:
      metrics
    • getName

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

      @Nullable public List<MonitorSearchResultNotification> getNotifications()
      The notification triggered by the monitor.
      Returns:
      notifications
    • getOrgId

      @Nullable public Long getOrgId()
      The ID of the organization.
      Returns:
      orgId
    • getQualityIssues

      @Nullable public List<String> getQualityIssues()
      Quality issues detected with the monitor.
      Returns:
      qualityIssues
    • query

      public MonitorSearchResult query(String query)
    • getQuery

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

      public void setQuery(String query)
    • scopes

      public MonitorSearchResult scopes(List<String> scopes)
    • addScopesItem

      public MonitorSearchResult addScopesItem(String scopesItem)
    • getScopes

      @Nullable public List<String> getScopes()
      The scope(s) to which the downtime applies, for example host:app2. Provide multiple scopes as a comma-separated list, for example env:dev,env:prod. The resulting downtime applies to sources that matches ALL provided scopes (that is env:dev AND env:prod), NOT any of them.
      Returns:
      scopes
    • setScopes

      public void setScopes(List<String> scopes)
    • getStatus

      @Nullable public MonitorOverallStates getStatus()
      The different states your monitor can be in.
      Returns:
      status
    • getTags

      @Nullable public List<String> getTags()
      Tags associated with the monitor.
      Returns:
      tags
    • type

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