Package com.datadog.api.client.v2.model
Class IncidentRuleDataAttributesRequest
java.lang.Object
com.datadog.api.client.v2.model.IncidentRuleDataAttributesRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentRuleDataAttributesRequest
extends Object
Attributes for creating an incident rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIncidentRuleDataAttributesRequest(IncidentRuleQueryCondition condition, Long conditionTableType, Boolean enabled, IncidentRuleExecutionType executionType, IncidentRuleTaskIDType taskId, String taskPayload) -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem(IncidentRuleCondition conditionsItem) condition(IncidentRuleQueryCondition condition) conditions(List<IncidentRuleCondition> conditions) conditionTableType(Long conditionTableType) booleanReturn true if this IncidentRuleDataAttributesRequest object is equal to o.executionType(IncidentRuleExecutionType executionType) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A query-based condition for an incident rule.List of field-based conditions.The condition table type.Whether the rule is enabled.The execution type of an incident rule.The UUID of the incident type this rule applies to.org.openapitools.jackson.nullable.JsonNullable<UUID>Whether any condition (OR logic) should match instead of all (AND logic).The task ID for an incident rule.The JSON-encoded payload for the task.The trigger event for an incident rule.inthashCode()incidentTypeUuid(UUID incidentTypeUuid) matchAnyCondition(Boolean matchAnyCondition) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCondition(IncidentRuleQueryCondition condition) voidsetConditions(List<IncidentRuleCondition> conditions) voidsetConditionTableType(Long conditionTableType) voidsetEnabled(Boolean enabled) voidsetExecutionType(IncidentRuleExecutionType executionType) voidsetIncidentTypeUuid(UUID incidentTypeUuid) voidsetIncidentTypeUuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> incidentTypeUuid) voidsetMatchAnyCondition(Boolean matchAnyCondition) voidsetTaskId(IncidentRuleTaskIDType taskId) voidsetTaskPayload(String taskPayload) voidsetTrigger(IncidentRuleTriggerType trigger) taskId(IncidentRuleTaskIDType taskId) taskPayload(String taskPayload) toString()trigger(IncidentRuleTriggerType trigger)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONDITION
- See Also:
-
JSON_PROPERTY_CONDITION_TABLE_TYPE
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_EXECUTION_TYPE
- See Also:
-
JSON_PROPERTY_INCIDENT_TYPE_UUID
- See Also:
-
JSON_PROPERTY_MATCH_ANY_CONDITION
- See Also:
-
JSON_PROPERTY_TASK_ID
- See Also:
-
JSON_PROPERTY_TASK_PAYLOAD
- See Also:
-
JSON_PROPERTY_TRIGGER
- See Also:
-
-
Constructor Details
-
IncidentRuleDataAttributesRequest
public IncidentRuleDataAttributesRequest() -
IncidentRuleDataAttributesRequest
public IncidentRuleDataAttributesRequest(IncidentRuleQueryCondition condition, Long conditionTableType, Boolean enabled, IncidentRuleExecutionType executionType, IncidentRuleTaskIDType taskId, String taskPayload)
-
-
Method Details
-
condition
-
getCondition
A query-based condition for an incident rule.- Returns:
- condition
-
setCondition
-
conditionTableType
-
getConditionTableType
The condition table type. 1 = raw query.- Returns:
- conditionTableType
-
setConditionTableType
-
conditions
-
addConditionsItem
-
getConditions
List of field-based conditions.- Returns:
- conditions
-
setConditions
-
enabled
-
getEnabled
Whether the rule is enabled.- Returns:
- enabled
-
setEnabled
-
executionType
-
getExecutionType
The execution type of an incident rule.- Returns:
- executionType
-
setExecutionType
-
incidentTypeUuid
-
getIncidentTypeUuid
The UUID of the incident type this rule applies to.- Returns:
- incidentTypeUuid
-
getIncidentTypeUuid_JsonNullable
-
setIncidentTypeUuid_JsonNullable
public void setIncidentTypeUuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> incidentTypeUuid) -
setIncidentTypeUuid
-
matchAnyCondition
-
getMatchAnyCondition
Whether any condition (OR logic) should match instead of all (AND logic).- Returns:
- matchAnyCondition
-
setMatchAnyCondition
-
taskId
-
getTaskId
The task ID for an incident rule.- Returns:
- taskId
-
setTaskId
-
taskPayload
-
getTaskPayload
The JSON-encoded payload for the task.- Returns:
- taskPayload
-
setTaskPayload
-
trigger
-
getTrigger
The trigger event for an incident rule.- Returns:
- trigger
-
setTrigger
-
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:
- IncidentRuleDataAttributesRequest
-
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 IncidentRuleDataAttributesRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-