Class: DatadogAPIClient::V1::HostMapWidgetDefinitionStyle
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::HostMapWidgetDefinitionStyle
- Defined in:
- lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb
Overview
The style to apply to the widget.
Instance Attribute Summary collapse
-
#fill_max ⇒ Object
Max value to use to color the map.
-
#fill_min ⇒ Object
Min value to use to color the map.
-
#palette ⇒ Object
Color palette to apply to the widget.
-
#palette_flip ⇒ Object
Whether to flip the palette tones.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HostMapWidgetDefinitionStyle
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ HostMapWidgetDefinitionStyle
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 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb', line 75 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionStyle` 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::HostMapWidgetDefinitionStyle`. 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?(:'fill_max') self.fill_max = attributes[:'fill_max'] end if attributes.key?(:'fill_min') self.fill_min = attributes[:'fill_min'] end if attributes.key?(:'palette') self.palette = attributes[:'palette'] end if attributes.key?(:'palette_flip') self.palette_flip = attributes[:'palette_flip'] end end |
Instance Attribute Details
#fill_max ⇒ Object
Max value to use to color the map.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb', line 27 def fill_max @fill_max end |
#fill_min ⇒ Object
Min value to use to color the map.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb', line 30 def fill_min @fill_min end |
#palette ⇒ Object
Color palette to apply to the widget.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb', line 33 def palette @palette end |
#palette_flip ⇒ Object
Whether to flip the palette tones.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb', line 36 def palette_flip @palette_flip end |