Class: DatadogAPIClient::V1::TableWidgetRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/table_widget_request.rb

Overview

Updated table widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TableWidgetRequest

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 138

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetRequest` 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::TableWidgetRequest`. 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?(:'aggregator')
    self.aggregator = attributes[:'aggregator']
  end

  if attributes.key?(:'_alias')
    self._alias = attributes[:'_alias']
  end

  if attributes.key?(:'apm_query')
    self.apm_query = attributes[:'apm_query']
  end

  if attributes.key?(:'apm_stats_query')
    self.apm_stats_query = attributes[:'apm_stats_query']
  end

  if attributes.key?(:'cell_display_mode')
    if (value = attributes[:'cell_display_mode']).is_a?(Array)
      self.cell_display_mode = value
    end
  end

  if attributes.key?(:'conditional_formats')
    if (value = attributes[:'conditional_formats']).is_a?(Array)
      self.conditional_formats = value
    end
  end

  if attributes.key?(:'event_query')
    self.event_query = attributes[:'event_query']
  end

  if attributes.key?(:'formulas')
    if (value = attributes[:'formulas']).is_a?(Array)
      self.formulas = value
    end
  end

  if attributes.key?(:'limit')
    self.limit = attributes[:'limit']
  end

  if attributes.key?(:'log_query')
    self.log_query = attributes[:'log_query']
  end

  if attributes.key?(:'network_query')
    self.network_query = attributes[:'network_query']
  end

  if attributes.key?(:'order')
    self.order = attributes[:'order']
  end

  if attributes.key?(:'process_query')
    self.process_query = attributes[:'process_query']
  end

  if attributes.key?(:'profile_metrics_query')
    self.profile_metrics_query = attributes[:'profile_metrics_query']
  end

  if attributes.key?(:'q')
    self.q = attributes[:'q']
  end

  if attributes.key?(:'queries')
    if (value = attributes[:'queries']).is_a?(Array)
      self.queries = value
    end
  end

  if attributes.key?(:'response_format')
    self.response_format = attributes[:'response_format']
  end

  if attributes.key?(:'rum_query')
    self.rum_query = attributes[:'rum_query']
  end

  if attributes.key?(:'security_query')
    self.security_query = attributes[:'security_query']
  end
end

Instance Attribute Details

#_aliasObject

The column name (defaults to the metric name).



29
30
31
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 29

def _alias
  @_alias
end

#aggregatorObject

Returns the value of attribute aggregator.



26
27
28
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 26

def aggregator
  @aggregator
end

#apm_queryObject

Returns the value of attribute apm_query.



31
32
33
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 31

def apm_query
  @apm_query
end

#apm_stats_queryObject

Returns the value of attribute apm_stats_query.



33
34
35
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 33

def apm_stats_query
  @apm_stats_query
end

#cell_display_modeObject

A list of display modes for each table cell.



36
37
38
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 36

def cell_display_mode
  @cell_display_mode
end

#conditional_formatsObject

List of conditional formats.



39
40
41
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 39

def conditional_formats
  @conditional_formats
end

#event_queryObject

Returns the value of attribute event_query.



41
42
43
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 41

def event_query
  @event_query
end

#formulasObject

List of formulas that operate on queries. **This feature is currently in beta.**



44
45
46
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 44

def formulas
  @formulas
end

#limitObject

For metric queries, the number of lines to show in the table. Only one request should have this property.



47
48
49
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 47

def limit
  @limit
end

#log_queryObject

Returns the value of attribute log_query.



49
50
51
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 49

def log_query
  @log_query
end

#network_queryObject

Returns the value of attribute network_query.



51
52
53
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 51

def network_query
  @network_query
end

#orderObject

Returns the value of attribute order.



53
54
55
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 53

def order
  @order
end

#process_queryObject

Returns the value of attribute process_query.



55
56
57
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 55

def process_query
  @process_query
end

#profile_metrics_queryObject

Returns the value of attribute profile_metrics_query.



57
58
59
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 57

def profile_metrics_query
  @profile_metrics_query
end

#qObject

Query definition.



60
61
62
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 60

def q
  @q
end

#queriesObject

List of queries that can be returned directly or used in formulas. **This feature is currently in beta.**



63
64
65
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 63

def queries
  @queries
end

#response_formatObject

Returns the value of attribute response_format.



65
66
67
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 65

def response_format
  @response_format
end

#rum_queryObject

Returns the value of attribute rum_query.



67
68
69
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 67

def rum_query
  @rum_query
end

#security_queryObject

Returns the value of attribute security_query.



69
70
71
# File 'lib/datadog_api_client/v1/models/table_widget_request.rb', line 69

def security_query
  @security_query
end