Class: DatadogAPIClient::V2::AutomationRuleCreateAttributes

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

Overview

Attributes required to create an automation rule.

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_create_attributes.rb', line 25

def action
  @action
end

#additional_propertiesObject

Returns the value of attribute additional_properties.



36
37
38
# File 'lib/datadog_api_client/v2/models/automation_rule_create_attributes.rb', line 36

def additional_properties
  @additional_properties
end

#nameObject

Name of the automation rule.



28
29
30
# File 'lib/datadog_api_client/v2/models/automation_rule_create_attributes.rb', line 28

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.



31
32
33
# File 'lib/datadog_api_client/v2/models/automation_rule_create_attributes.rb', line 31

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).



34
35
36
# File 'lib/datadog_api_client/v2/models/automation_rule_create_attributes.rb', line 34

def trigger
  @trigger
end