@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class GuardrailMetricRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_METRIC_ID |
static String |
JSON_PROPERTY_TRIGGER_ACTION |
boolean |
unparsed |
| Constructor and Description |
|---|
GuardrailMetricRequest() |
GuardrailMetricRequest(String metricId,
GuardrailTriggerAction triggerAction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Return true if this GuardrailMetricRequest object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getMetricId()
The metric ID to monitor.
|
GuardrailTriggerAction |
getTriggerAction()
Action to perform when a guardrail threshold is triggered.
|
int |
hashCode() |
GuardrailMetricRequest |
metricId(String metricId) |
GuardrailMetricRequest |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setMetricId(String metricId) |
void |
setTriggerAction(GuardrailTriggerAction triggerAction) |
String |
toString() |
GuardrailMetricRequest |
triggerAction(GuardrailTriggerAction triggerAction) |
public boolean unparsed
public static final String JSON_PROPERTY_METRIC_ID
public static final String JSON_PROPERTY_TRIGGER_ACTION
public GuardrailMetricRequest()
public GuardrailMetricRequest(String metricId, GuardrailTriggerAction triggerAction)
public GuardrailMetricRequest metricId(String metricId)
public String getMetricId()
public void setMetricId(String metricId)
public GuardrailMetricRequest triggerAction(GuardrailTriggerAction triggerAction)
public GuardrailTriggerAction getTriggerAction()
public void setTriggerAction(GuardrailTriggerAction triggerAction)
public GuardrailMetricRequest putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.