Class GuardrailMetric

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

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

  • Constructor Details

    • GuardrailMetric

      public GuardrailMetric()
    • GuardrailMetric

      public GuardrailMetric(String metricId, GuardrailTriggerAction triggerAction)
  • Method Details

    • metricId

      public GuardrailMetric metricId(String metricId)
    • getMetricId

      public String getMetricId()
      The metric ID to monitor.
      Returns:
      metricId
    • setMetricId

      public void setMetricId(String metricId)
    • triggerAction

      public GuardrailMetric triggerAction(GuardrailTriggerAction triggerAction)
    • getTriggerAction

      public GuardrailTriggerAction getTriggerAction()
      Action to perform when a guardrail threshold is triggered.
      Returns:
      triggerAction
    • setTriggerAction

      public void setTriggerAction(GuardrailTriggerAction triggerAction)
    • triggeredBy

      public GuardrailMetric triggeredBy(String triggeredBy)
    • getTriggeredBy

      @Nullable public String getTriggeredBy()
      The signal or system that triggered the action.
      Returns:
      triggeredBy
    • getTriggeredBy_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getTriggeredBy_JsonNullable()
    • setTriggeredBy_JsonNullable

      public void setTriggeredBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> triggeredBy)
    • setTriggeredBy

      public void setTriggeredBy(String triggeredBy)
    • putAdditionalProperty

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