Class: DatadogAPIClient::V1::ChangeWidgetRequest

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

Overview

Updated change widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ChangeWidgetRequest

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



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
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
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 132

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

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

  if attributes.key?(:'compare_to')
    self.compare_to = attributes[:'compare_to']
  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?(:'increase_good')
    self.increase_good = attributes[:'increase_good']
  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_by')
    self.order_by = attributes[:'order_by']
  end

  if attributes.key?(:'order_dir')
    self.order_dir = attributes[:'order_dir']
  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

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

Instance Attribute Details

#apm_queryObject

Returns the value of attribute apm_query.



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

def apm_query
  @apm_query
end

#change_typeObject

Returns the value of attribute change_type.



28
29
30
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 28

def change_type
  @change_type
end

#compare_toObject

Returns the value of attribute compare_to.



30
31
32
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 30

def compare_to
  @compare_to
end

#event_queryObject

Returns the value of attribute event_query.



32
33
34
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 32

def event_query
  @event_query
end

#formulasObject

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



35
36
37
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 35

def formulas
  @formulas
end

#increase_goodObject

Whether to show increase as good.



38
39
40
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 38

def increase_good
  @increase_good
end

#log_queryObject

Returns the value of attribute log_query.



40
41
42
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 40

def log_query
  @log_query
end

#network_queryObject

Returns the value of attribute network_query.



42
43
44
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 42

def network_query
  @network_query
end

#order_byObject

Returns the value of attribute order_by.



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

def order_by
  @order_by
end

#order_dirObject

Returns the value of attribute order_dir.



46
47
48
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 46

def order_dir
  @order_dir
end

#process_queryObject

Returns the value of attribute process_query.



48
49
50
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 48

def process_query
  @process_query
end

#profile_metrics_queryObject

Returns the value of attribute profile_metrics_query.



50
51
52
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 50

def profile_metrics_query
  @profile_metrics_query
end

#qObject

Query definition.



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

def q
  @q
end

#queriesObject

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



56
57
58
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 56

def queries
  @queries
end

#response_formatObject

Returns the value of attribute response_format.



58
59
60
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 58

def response_format
  @response_format
end

#rum_queryObject

Returns the value of attribute rum_query.



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

def rum_query
  @rum_query
end

#security_queryObject

Returns the value of attribute security_query.



62
63
64
# File 'lib/datadog_api_client/v1/models/change_widget_request.rb', line 62

def security_query
  @security_query
end

#show_presentObject

Whether to show the present value.



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

def show_present
  @show_present
end