Class: DatadogAPIClient::V2::IncidentCreateAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::IncidentCreateAttributes
- Defined in:
- lib/datadog_api_client/v2/models/incident_create_attributes.rb
Overview
The incident’s attributes for a create request.
Instance Attribute Summary collapse
-
#customer_impacted ⇒ Object
A flag indicating whether the incident caused customer impact.
-
#fields ⇒ Object
A condensed view of the user-defined fields for which to create initial selections.
-
#initial_cells ⇒ Object
An array of initial timeline cells to be placed at the beginning of the incident timeline.
-
#notification_handles ⇒ Object
Notification handles that will be notified of the incident at creation.
-
#title ⇒ Object
The title of the incident, which summarizes what happened.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IncidentCreateAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ IncidentCreateAttributes
Initializes the object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 80 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentCreateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'customer_impacted') self.customer_impacted = attributes[:'customer_impacted'] end if attributes.key?(:'fields') if (value = attributes[:'fields']).is_a?(Hash) self.fields = value end end if attributes.key?(:'initial_cells') if (value = attributes[:'initial_cells']).is_a?(Array) self.initial_cells = value end end if attributes.key?(:'notification_handles') if (value = attributes[:'notification_handles']).is_a?(Array) self.notification_handles = value end end if attributes.key?(:'title') self.title = attributes[:'title'] end end |
Instance Attribute Details
#customer_impacted ⇒ Object
A flag indicating whether the incident caused customer impact.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 27 def customer_impacted @customer_impacted end |
#fields ⇒ Object
A condensed view of the user-defined fields for which to create initial selections.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 30 def fields @fields end |
#initial_cells ⇒ Object
An array of initial timeline cells to be placed at the beginning of the incident timeline.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 33 def initial_cells @initial_cells end |
#notification_handles ⇒ Object
Notification handles that will be notified of the incident at creation.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 36 def notification_handles @notification_handles end |
#title ⇒ Object
The title of the incident, which summarizes what happened.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/incident_create_attributes.rb', line 39 def title @title end |