Class: DatadogAPIClient::V1::QueryValueWidgetRequest

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

Overview

Updated query value widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ QueryValueWidgetRequest

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



119
120
121
122
123
124
125
126
127
128
129
130
131
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
# File 'lib/datadog_api_client/v1/models/query_value_widget_request.rb', line 119

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

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

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

#aggregatorObject

Returns the value of attribute aggregator.



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

def aggregator
  @aggregator
end

#apm_queryObject

Returns the value of attribute apm_query.



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

def apm_query
  @apm_query
end

#audit_queryObject

Returns the value of attribute audit_query.



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

def audit_query
  @audit_query
end

#conditional_formatsObject

List of conditional formats.



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

def conditional_formats
  @conditional_formats
end

#event_queryObject

Returns the value of attribute event_query.



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

def event_query
  @event_query
end

#formulasObject

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



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

def formulas
  @formulas
end

#log_queryObject

Returns the value of attribute log_query.



40
41
42
# File 'lib/datadog_api_client/v1/models/query_value_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/query_value_widget_request.rb', line 42

def network_query
  @network_query
end

#process_queryObject

Returns the value of attribute process_query.



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

def process_query
  @process_query
end

#profile_metrics_queryObject

Returns the value of attribute profile_metrics_query.



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

def profile_metrics_query
  @profile_metrics_query
end

#qObject

TODO.



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

def q
  @q
end

#queriesObject

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



52
53
54
# File 'lib/datadog_api_client/v1/models/query_value_widget_request.rb', line 52

def queries
  @queries
end

#response_formatObject

Returns the value of attribute response_format.



54
55
56
# File 'lib/datadog_api_client/v1/models/query_value_widget_request.rb', line 54

def response_format
  @response_format
end

#rum_queryObject

Returns the value of attribute rum_query.



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

def rum_query
  @rum_query
end

#security_queryObject

Returns the value of attribute security_query.



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

def security_query
  @security_query
end