Class: DatadogAPIClient::V2::SeverityModifierRuleAttributesCreate

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb

Overview

Attributes for creating or updating a severity modifier rule.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#actionObject

The action to take when a severity modifier rule matches a finding. This is a discriminated union on type: set assigns a fixed severity, while shift moves the severity up or down by one rank.

A severity modifier rule's rule.query must not filter on @severity or on the @severity_details.user_adjusted.* namespace.

Use @severity_details.adjusted.value instead, which reflects the severity before user-defined adjustments.



29
30
31
# File 'lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb', line 29

def action
  @action
end

#additional_propertiesObject

Returns the value of attribute additional_properties.



40
41
42
# File 'lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb', line 40

def additional_properties
  @additional_properties
end

#enabledObject

Whether the severity modifier rule is enabled.



32
33
34
# File 'lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb', line 32

def enabled
  @enabled
end

#nameObject

The name of the severity modifier rule.



35
36
37
# File 'lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb', line 35

def name
  @name
end

#ruleObject

Defines the scope of findings to which the automation rule applies.



38
39
40
# File 'lib/datadog_api_client/v2/models/severity_modifier_rule_attributes_create.rb', line 38

def rule
  @rule
end