Package com.datadog.api.client.v2.model
Class GuardrailMetricRequest
java.lang.Object
com.datadog.api.client.v2.model.GuardrailMetricRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class GuardrailMetricRequest
extends Object
Guardrail metric request payload.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuardrailMetricRequest(String metricId, GuardrailTriggerAction triggerAction) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this GuardrailMetricRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The metric ID to monitor.Action to perform when a guardrail threshold is triggered.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetMetricId(String metricId) voidsetTriggerAction(GuardrailTriggerAction triggerAction) toString()triggerAction(GuardrailTriggerAction triggerAction)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_METRIC_ID
- See Also:
-
JSON_PROPERTY_TRIGGER_ACTION
- See Also:
-
-
Constructor Details
-
GuardrailMetricRequest
public GuardrailMetricRequest() -
GuardrailMetricRequest
-
-
Method Details
-
metricId
-
getMetricId
The metric ID to monitor.- Returns:
- metricId
-
setMetricId
-
triggerAction
-
getTriggerAction
Action to perform when a guardrail threshold is triggered.- Returns:
- triggerAction
-
setTriggerAction
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- GuardrailMetricRequest
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this GuardrailMetricRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-