Class: DatadogAPIClient::V1::MonitorGroupSearchResult
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::MonitorGroupSearchResult
- Defined in:
- lib/datadog_api_client/v1/models/monitor_group_search_result.rb
Overview
A single monitor group search result.
Instance Attribute Summary collapse
-
#group ⇒ Object
The name of the group.
-
#group_tags ⇒ Object
The list of tags of the monitor group.
-
#last_nodata_ts ⇒ Object
Latest timestamp the monitor group was in NO_DATA state.
-
#last_triggered_ts ⇒ Object
Latest timestamp the monitor group triggered.
-
#monitor_id ⇒ Object
The ID of the monitor.
-
#monitor_name ⇒ Object
The name of the monitor.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MonitorGroupSearchResult
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ MonitorGroupSearchResult
Initializes the object
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 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 90 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResult` 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::MonitorGroupSearchResult`. 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?(:'group') self.group = attributes[:'group'] end if attributes.key?(:'group_tags') if (value = attributes[:'group_tags']).is_a?(Array) self. = value end end if attributes.key?(:'last_nodata_ts') self.last_nodata_ts = attributes[:'last_nodata_ts'] end if attributes.key?(:'last_triggered_ts') self.last_triggered_ts = attributes[:'last_triggered_ts'] end if attributes.key?(:'monitor_id') self.monitor_id = attributes[:'monitor_id'] end if attributes.key?(:'monitor_name') self.monitor_name = attributes[:'monitor_name'] end if attributes.key?(:'status') self.status = attributes[:'status'] end end |
Instance Attribute Details
#group ⇒ Object
The name of the group.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 27 def group @group end |
#group_tags ⇒ Object
The list of tags of the monitor group.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 30 def end |
#last_nodata_ts ⇒ Object
Latest timestamp the monitor group was in NO_DATA state.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 33 def last_nodata_ts @last_nodata_ts end |
#last_triggered_ts ⇒ Object
Latest timestamp the monitor group triggered.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 36 def last_triggered_ts @last_triggered_ts end |
#monitor_id ⇒ Object
The ID of the monitor.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 39 def monitor_id @monitor_id end |
#monitor_name ⇒ Object
The name of the monitor.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 42 def monitor_name @monitor_name end |
#status ⇒ Object
Returns the value of attribute status.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/monitor_group_search_result.rb', line 44 def status @status end |