Package com.datadog.api.client.v2.model
Class SeverityModifierRuleAttributesCreate
java.lang.Object
com.datadog.api.client.v2.model.SeverityModifierRuleAttributesCreate
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SeverityModifierRuleAttributesCreate
extends Object
Attributes for creating or updating a severity modifier rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSeverityModifierRuleAttributesCreate(SeverityModifierRuleAction action, String name, AutomationRuleScope rule) -
Method Summary
Modifier and TypeMethodDescriptionaction(SeverityModifierRuleAction action) booleanReturn true if this SeverityModifierRuleAttributesCreate object is equal to o.The action to take when a severity modifier rule matches a finding.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether the severity modifier rule is enabled.getName()The name of the severity modifier rule.getRule()Defines the scope of findings to which the automation rule applies.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rule(AutomationRuleScope rule) voidsetAction(SeverityModifierRuleAction action) voidsetEnabled(Boolean enabled) voidvoidsetRule(AutomationRuleScope rule) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ACTION
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RULE
- See Also:
-
-
Constructor Details
-
SeverityModifierRuleAttributesCreate
public SeverityModifierRuleAttributesCreate() -
SeverityModifierRuleAttributesCreate
public SeverityModifierRuleAttributesCreate(SeverityModifierRuleAction action, String name, AutomationRuleScope rule)
-
-
Method Details
-
action
-
getAction
The action to take when a severity modifier rule matches a finding. This is a discriminated union ontype:setassigns a fixed severity, whileshiftmoves the severity up or down by one rank.A severity modifier rule's
rule.querymust not filter on@severityor on the@severity_details.user_adjusted.*namespace.Use
@severity_details.adjusted.valueinstead, which reflects the severity before user-defined adjustments.- Returns:
- action
-
setAction
-
enabled
-
getEnabled
Whether the severity modifier rule is enabled.- Returns:
- enabled
-
setEnabled
-
name
-
getName
The name of the severity modifier rule.- Returns:
- name
-
setName
-
rule
-
getRule
Defines the scope of findings to which the automation rule applies.- Returns:
- rule
-
setRule
-
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:
- SeverityModifierRuleAttributesCreate
-
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 SeverityModifierRuleAttributesCreate object is equal to o. -
hashCode
public int hashCode() -
toString
-