Class: DatadogAPIClient::V1::WidgetFormula
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::WidgetFormula
- Defined in:
- lib/datadog_api_client/v1/models/widget_formula.rb
Overview
Formula to be used in a widget query.
Instance Attribute Summary collapse
-
#_alias ⇒ Object
Expression alias.
-
#cell_display_mode ⇒ Object
Returns the value of attribute cell_display_mode.
-
#conditional_formats ⇒ Object
List of conditional formats.
-
#formula ⇒ Object
String expression built from queries, formulas, and functions.
-
#limit ⇒ Object
Returns the value of attribute limit.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ WidgetFormula
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ WidgetFormula
Initializes the object
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 110 111 112 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 78 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormula` 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::WidgetFormula`. 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?(:'_alias') self._alias = attributes[:'_alias'] end if attributes.key?(:'cell_display_mode') self.cell_display_mode = attributes[:'cell_display_mode'] end if attributes.key?(:'conditional_formats') if (value = attributes[:'conditional_formats']).is_a?(Array) self.conditional_formats = value end end if attributes.key?(:'formula') self.formula = attributes[:'formula'] end if attributes.key?(:'limit') self.limit = attributes[:'limit'] end end |
Instance Attribute Details
#_alias ⇒ Object
Expression alias.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 27 def _alias @_alias end |
#cell_display_mode ⇒ Object
Returns the value of attribute cell_display_mode.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 29 def cell_display_mode @cell_display_mode end |
#conditional_formats ⇒ Object
List of conditional formats.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 32 def conditional_formats @conditional_formats end |
#formula ⇒ Object
String expression built from queries, formulas, and functions.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 35 def formula @formula end |
#limit ⇒ Object
Returns the value of attribute limit.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/widget_formula.rb', line 37 def limit @limit end |