Class: DatadogAPIClient::V2::IncidentUpdateAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v2/models/incident_update_attributes.rb

Overview

The incident’s attributes for an update request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ IncidentUpdateAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 104

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateAttributes` 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::IncidentUpdateAttributes`. 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_impact_end')
    self.customer_impact_end = attributes[:'customer_impact_end']
  end

  if attributes.key?(:'customer_impact_scope')
    self.customer_impact_scope = attributes[:'customer_impact_scope']
  end

  if attributes.key?(:'customer_impact_start')
    self.customer_impact_start = attributes[:'customer_impact_start']
  end

  if attributes.key?(:'customer_impacted')
    self.customer_impacted = attributes[:'customer_impacted']
  end

  if attributes.key?(:'detected')
    self.detected = attributes[:'detected']
  end

  if attributes.key?(:'fields')
    if (value = attributes[:'fields']).is_a?(Hash)
      self.fields = 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?(:'resolved')
    self.resolved = attributes[:'resolved']
  end

  if attributes.key?(:'title')
    self.title = attributes[:'title']
  end
end

Instance Attribute Details

#customer_impact_endObject

Timestamp when customers were no longer impacted by the incident.



27
28
29
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 27

def customer_impact_end
  @customer_impact_end
end

#customer_impact_scopeObject

A summary of the impact customers experienced during the incident.



30
31
32
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 30

def customer_impact_scope
  @customer_impact_scope
end

#customer_impact_startObject

Timestamp when customers began being impacted by the incident.



33
34
35
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 33

def customer_impact_start
  @customer_impact_start
end

#customer_impactedObject

A flag indicating whether the incident caused customer impact.



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

def customer_impacted
  @customer_impacted
end

#detectedObject

Timestamp when the incident was detected.



39
40
41
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 39

def detected
  @detected
end

#fieldsObject

A condensed view of the user-defined fields for which to update selections.



42
43
44
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 42

def fields
  @fields
end

#notification_handlesObject

Notification handles that will be notified of the incident during update.



45
46
47
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 45

def notification_handles
  @notification_handles
end

#resolvedObject

Timestamp when the incident’s state was set to resolved.



48
49
50
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 48

def resolved
  @resolved
end

#titleObject

The title of the incident, which summarizes what happened.



51
52
53
# File 'lib/datadog_api_client/v2/models/incident_update_attributes.rb', line 51

def title
  @title
end