Class: DatadogAPIClient::V1::DistributionWidgetXAxis
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::DistributionWidgetXAxis
- Defined in:
- lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb
Overview
X Axis controls for the distribution widget.
Instance Attribute Summary collapse
-
#include_zero ⇒ Object
True includes zero.
-
#max ⇒ Object
Specifies maximum value to show on the x-axis.
-
#min ⇒ Object
Specifies minimum value to show on the x-axis.
-
#scale ⇒ Object
Specifies the scale type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DistributionWidgetXAxis
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ DistributionWidgetXAxis
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 108 109 |
# File 'lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb', line 75 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetXAxis` 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::DistributionWidgetXAxis`. 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?(:'include_zero') self.include_zero = attributes[:'include_zero'] end if attributes.key?(:'max') self.max = attributes[:'max'] else self.max = 'auto' end if attributes.key?(:'min') self.min = attributes[:'min'] else self.min = 'auto' end if attributes.key?(:'scale') self.scale = attributes[:'scale'] else self.scale = 'linear' end end |
Instance Attribute Details
#include_zero ⇒ Object
True includes zero.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb', line 27 def include_zero @include_zero end |
#max ⇒ Object
Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb', line 30 def max @max end |
#min ⇒ Object
Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb', line 33 def min @min end |
#scale ⇒ Object
Specifies the scale type. Possible values are ‘linear`.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb', line 36 def scale @scale end |