Class: DatadogAPIClient::V2::IncidentResponseRelationships
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::IncidentResponseRelationships
- Defined in:
- lib/datadog_api_client/v2/models/incident_response_relationships.rb
Overview
The incident’s relationships from a response.
Instance Attribute Summary collapse
-
#commander_user ⇒ Object
Returns the value of attribute commander_user.
-
#created_by_user ⇒ Object
Returns the value of attribute created_by_user.
-
#integrations ⇒ Object
Returns the value of attribute integrations.
-
#last_modified_by_user ⇒ Object
Returns the value of attribute last_modified_by_user.
-
#postmortem ⇒ Object
Returns the value of attribute postmortem.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IncidentResponseRelationships
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ IncidentResponseRelationships
Initializes the object
75 76 77 78 79 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 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 75 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseRelationships` 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::IncidentResponseRelationships`. 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?(:'commander_user') self.commander_user = attributes[:'commander_user'] end if attributes.key?(:'created_by_user') self.created_by_user = attributes[:'created_by_user'] end if attributes.key?(:'integrations') self.integrations = attributes[:'integrations'] end if attributes.key?(:'last_modified_by_user') self.last_modified_by_user = attributes[:'last_modified_by_user'] end if attributes.key?(:'postmortem') self.postmortem = attributes[:'postmortem'] end end |
Instance Attribute Details
#commander_user ⇒ Object
Returns the value of attribute commander_user.
26 27 28 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 26 def commander_user @commander_user end |
#created_by_user ⇒ Object
Returns the value of attribute created_by_user.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 28 def created_by_user @created_by_user end |
#integrations ⇒ Object
Returns the value of attribute integrations.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 30 def integrations @integrations end |
#last_modified_by_user ⇒ Object
Returns the value of attribute last_modified_by_user.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 32 def last_modified_by_user @last_modified_by_user end |
#postmortem ⇒ Object
Returns the value of attribute postmortem.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/incident_response_relationships.rb', line 34 def postmortem @postmortem end |