Class: DatadogAPIClient::V2::AutomationRuleAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::AutomationRuleAttributes
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/automation_rule_attributes.rb
Overview
Core attributes of an automation rule, including its name, trigger condition, action to execute, and current state.
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Defines what happens when the rule triggers.
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#created_at ⇒ Object
readonly
Timestamp when the automation rule was created.
-
#modified_at ⇒ Object
Timestamp when the automation rule was last modified.
-
#name ⇒ Object
readonly
A human-readable name for the automation rule, used to identify the rule in the UI and API responses.
-
#state ⇒ Object
readonly
Whether the automation rule is active.
-
#trigger ⇒ Object
readonly
Defines when the rule activates.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#action ⇒ Object
Defines what happens when the rule triggers. Combines an action type with action-specific configuration data.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 25 def action @action end |
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
42 43 44 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 42 def additional_properties @additional_properties end |
#created_at ⇒ Object
Timestamp when the automation rule was created.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 28 def created_at @created_at end |
#modified_at ⇒ Object
Timestamp when the automation rule was last modified.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 31 def modified_at @modified_at end |
#name ⇒ Object
A human-readable name for the automation rule, used to identify the rule in the UI and API responses.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 34 def name @name end |
#state ⇒ Object
Whether the automation rule is active. Enabled rules trigger on matching case events; disabled rules are inactive but preserve their configuration.
37 38 39 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 37 def state @state end |
#trigger ⇒ Object
Defines when the rule activates. Combines a trigger type (the case event to listen for) with optional trigger data (conditions that narrow when the trigger fires).
40 41 42 |
# File 'lib/datadog_api_client/v2/models/automation_rule_attributes.rb', line 40 def trigger @trigger end |