Class: DatadogAPIClient::V1::MonitorStateGroup
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::MonitorStateGroup
- Defined in:
- lib/datadog_api_client/v1/models/monitor_state_group.rb
Overview
Monitor state for a single group.
Instance Attribute Summary collapse
-
#last_nodata_ts ⇒ Object
Latest timestamp the monitor was in NO_DATA state.
-
#last_notified_ts ⇒ Object
Latest timestamp of the notification sent for this monitor group.
-
#last_resolved_ts ⇒ Object
Latest timestamp the monitor group was resolved.
-
#last_triggered_ts ⇒ Object
Latest timestamp the monitor group triggered.
-
#name ⇒ Object
The name of the monitor.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MonitorStateGroup
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ MonitorStateGroup
Initializes the object
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 119 120 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 84 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorStateGroup` 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::V1::MonitorStateGroup`. 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?(:'last_nodata_ts') self.last_nodata_ts = attributes[:'last_nodata_ts'] end if attributes.key?(:'last_notified_ts') self.last_notified_ts = attributes[:'last_notified_ts'] end if attributes.key?(:'last_resolved_ts') self.last_resolved_ts = attributes[:'last_resolved_ts'] end if attributes.key?(:'last_triggered_ts') self.last_triggered_ts = attributes[:'last_triggered_ts'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'status') self.status = attributes[:'status'] end end |
Instance Attribute Details
#last_nodata_ts ⇒ Object
Latest timestamp the monitor was in NO_DATA state.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 27 def last_nodata_ts @last_nodata_ts end |
#last_notified_ts ⇒ Object
Latest timestamp of the notification sent for this monitor group.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 30 def last_notified_ts @last_notified_ts end |
#last_resolved_ts ⇒ Object
Latest timestamp the monitor group was resolved.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 33 def last_resolved_ts @last_resolved_ts end |
#last_triggered_ts ⇒ Object
Latest timestamp the monitor group triggered.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 36 def last_triggered_ts @last_triggered_ts end |
#name ⇒ Object
The name of the monitor.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 39 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/monitor_state_group.rb', line 41 def status @status end |