Class: DatadogAPIClient::V1::ToplistWidgetRequest

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

Overview

Updated top list widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ToplistWidgetRequest

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/toplist_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::ToplistWidgetRequest` 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::ToplistWidgetRequest`. 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?(:'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

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

Instance Attribute Details

#apm_queryObject

Returns the value of attribute apm_query.



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

def apm_query
  @apm_query
end

#audit_queryObject

Returns the value of attribute audit_query.



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

def audit_query
  @audit_query
end

#conditional_formatsObject

List of conditional formats.



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

def conditional_formats
  @conditional_formats
end

#event_queryObject

Returns the value of attribute event_query.



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

def event_query
  @event_query
end

#formulasObject

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



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

def formulas
  @formulas
end

#log_queryObject

Returns the value of attribute log_query.



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

def log_query
  @log_query
end

#network_queryObject

Returns the value of attribute network_query.



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

def network_query
  @network_query
end

#process_queryObject

Returns the value of attribute process_query.



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

def process_query
  @process_query
end

#profile_metrics_queryObject

Returns the value of attribute profile_metrics_query.



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

def profile_metrics_query
  @profile_metrics_query
end

#qObject

Widget query.



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

def q
  @q
end

#queriesObject

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



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

def queries
  @queries
end

#response_formatObject

Returns the value of attribute response_format.



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

def response_format
  @response_format
end

#rum_queryObject

Returns the value of attribute rum_query.



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

def rum_query
  @rum_query
end

#security_queryObject

Returns the value of attribute security_query.



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

def security_query
  @security_query
end

#styleObject

Returns the value of attribute style.



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

def style
  @style
end