Class: DatadogAPIClient::V2::AutomationRuleAttributes

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#actionObject

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_propertiesObject

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_atObject

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_atObject

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

#nameObject

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

#stateObject

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

#triggerObject

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