Class SyntheticsTestOptionsMonitorOptions

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsTestOptionsMonitorOptions extends Object
Object containing the options for a Synthetic test as a monitor (for example, renotification).
  • Field Details

    • unparsed

      public boolean unparsed
    • JSON_PROPERTY_ESCALATION_MESSAGE

      public static final String JSON_PROPERTY_ESCALATION_MESSAGE
      See Also:
    • JSON_PROPERTY_NOTIFICATION_PRESET_NAME

      public static final String JSON_PROPERTY_NOTIFICATION_PRESET_NAME
      See Also:
    • JSON_PROPERTY_RENOTIFY_INTERVAL

      public static final String JSON_PROPERTY_RENOTIFY_INTERVAL
      See Also:
    • JSON_PROPERTY_RENOTIFY_OCCURRENCES

      public static final String JSON_PROPERTY_RENOTIFY_OCCURRENCES
      See Also:
  • Constructor Details

    • SyntheticsTestOptionsMonitorOptions

      public SyntheticsTestOptionsMonitorOptions()
  • Method Details

    • escalationMessage

      public SyntheticsTestOptionsMonitorOptions escalationMessage(String escalationMessage)
    • getEscalationMessage

      @Nullable public String getEscalationMessage()
      Message to include in the escalation notification.
      Returns:
      escalationMessage
    • setEscalationMessage

      public void setEscalationMessage(String escalationMessage)
    • notificationPresetName

    • getNotificationPresetName

      @Nullable public SyntheticsTestOptionsMonitorOptionsNotificationPresetName getNotificationPresetName()
      The name of the preset for the notification for the monitor.
      Returns:
      notificationPresetName
    • setNotificationPresetName

      public void setNotificationPresetName(SyntheticsTestOptionsMonitorOptionsNotificationPresetName notificationPresetName)
    • renotifyInterval

      public SyntheticsTestOptionsMonitorOptions renotifyInterval(Long renotifyInterval)
    • getRenotifyInterval

      @Nullable public Long getRenotifyInterval()
      Time interval before renotifying if the test is still failing (in minutes). minimum: 0
      Returns:
      renotifyInterval
    • setRenotifyInterval

      public void setRenotifyInterval(Long renotifyInterval)
    • renotifyOccurrences

      public SyntheticsTestOptionsMonitorOptions renotifyOccurrences(Long renotifyOccurrences)
    • getRenotifyOccurrences

      @Nullable public Long getRenotifyOccurrences()
      The number of times to renotify if the test is still failing.
      Returns:
      renotifyOccurrences
    • setRenotifyOccurrences

      public void setRenotifyOccurrences(Long renotifyOccurrences)
    • putAdditionalProperty

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