Class: DatadogAPIClient::V2::IncidentUpdateAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::IncidentUpdateAttributes
- 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
-
#customer_impact_end ⇒ Object
Timestamp when customers were no longer impacted by the incident.
-
#customer_impact_scope ⇒ Object
A summary of the impact customers experienced during the incident.
-
#customer_impact_start ⇒ Object
Timestamp when customers began being impacted by the incident.
-
#customer_impacted ⇒ Object
A flag indicating whether the incident caused customer impact.
-
#detected ⇒ Object
Timestamp when the incident was detected.
-
#fields ⇒ Object
A condensed view of the user-defined fields for which to update selections.
-
#notification_handles ⇒ Object
Notification handles that will be notified of the incident during update.
-
#resolved ⇒ Object
Timestamp when the incident’s state was set to resolved.
-
#title ⇒ Object
The title of the incident, which summarizes what happened.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IncidentUpdateAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ IncidentUpdateAttributes
Initializes the object
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_end ⇒ Object
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_scope ⇒ Object
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_start ⇒ Object
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_impacted ⇒ Object
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 |
#detected ⇒ Object
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 |
#fields ⇒ Object
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_handles ⇒ Object
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 |
#resolved ⇒ Object
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 |
#title ⇒ Object
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 |