Class: DatadogAPIClient::V1::HostMapWidgetDefinition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::HostMapWidgetDefinition
- Defined in:
- lib/datadog_api_client/v1/models/host_map_widget_definition.rb
Overview
The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page.
Instance Attribute Summary collapse
-
#custom_links ⇒ Object
List of custom links.
-
#group ⇒ Object
List of tag prefixes to group by.
-
#no_group_hosts ⇒ Object
Whether to show the hosts that don’t fit in a group.
-
#no_metric_hosts ⇒ Object
Whether to show the hosts with no metrics.
-
#node_type ⇒ Object
Returns the value of attribute node_type.
-
#notes ⇒ Object
Notes on the title.
-
#requests ⇒ Object
Returns the value of attribute requests.
-
#scope ⇒ Object
List of tags used to filter the map.
-
#style ⇒ Object
Returns the value of attribute style.
-
#title ⇒ Object
Title of the widget.
-
#title_align ⇒ Object
Returns the value of attribute title_align.
-
#title_size ⇒ Object
Size of the title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HostMapWidgetDefinition
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ HostMapWidgetDefinition
Initializes the object
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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 115 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinition` 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::HostMapWidgetDefinition`. 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?(:'custom_links') if (value = attributes[:'custom_links']).is_a?(Array) self.custom_links = value end end if attributes.key?(:'group') if (value = attributes[:'group']).is_a?(Array) self.group = value end end if attributes.key?(:'no_group_hosts') self.no_group_hosts = attributes[:'no_group_hosts'] end if attributes.key?(:'no_metric_hosts') self.no_metric_hosts = attributes[:'no_metric_hosts'] end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] end if attributes.key?(:'notes') self.notes = attributes[:'notes'] end if attributes.key?(:'requests') self.requests = attributes[:'requests'] end if attributes.key?(:'scope') if (value = attributes[:'scope']).is_a?(Array) self.scope = value end end if attributes.key?(:'style') self.style = attributes[:'style'] end if attributes.key?(:'title') self.title = attributes[:'title'] end if attributes.key?(:'title_align') self.title_align = attributes[:'title_align'] end if attributes.key?(:'title_size') self.title_size = attributes[:'title_size'] end if attributes.key?(:'type') self.type = attributes[:'type'] else self.type = 'hostmap' end end |
Instance Attribute Details
#custom_links ⇒ Object
List of custom links.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 27 def custom_links @custom_links end |
#group ⇒ Object
List of tag prefixes to group by.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 30 def group @group end |
#no_group_hosts ⇒ Object
Whether to show the hosts that don’t fit in a group.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 33 def no_group_hosts @no_group_hosts end |
#no_metric_hosts ⇒ Object
Whether to show the hosts with no metrics.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 36 def no_metric_hosts @no_metric_hosts end |
#node_type ⇒ Object
Returns the value of attribute node_type.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 38 def node_type @node_type end |
#notes ⇒ Object
Notes on the title.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 41 def notes @notes end |
#requests ⇒ Object
Returns the value of attribute requests.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 43 def requests @requests end |
#scope ⇒ Object
List of tags used to filter the map.
46 47 48 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 46 def scope @scope end |
#style ⇒ Object
Returns the value of attribute style.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 48 def style @style end |
#title ⇒ Object
Title of the widget.
51 52 53 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 51 def title @title end |
#title_align ⇒ Object
Returns the value of attribute title_align.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 53 def title_align @title_align end |
#title_size ⇒ Object
Size of the title.
56 57 58 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 56 def title_size @title_size end |
#type ⇒ Object
Returns the value of attribute type.
58 59 60 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition.rb', line 58 def type @type end |