Class: DatadogAPIClient::V1::GeomapWidgetRequest

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

Overview

An updated geomap widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ GeomapWidgetRequest

Initializes the object

Parameters:

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

    attributes Model attributes in the form of hash



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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/datadog_api_client/v1/models/geomap_widget_request.rb', line 86

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

#formulasObject

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



27
28
29
# File 'lib/datadog_api_client/v1/models/geomap_widget_request.rb', line 27

def formulas
  @formulas
end

#log_queryObject

Returns the value of attribute log_query.



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

def log_query
  @log_query
end

#qObject

The widget metrics query.



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

def q
  @q
end

#queriesObject

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



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

def queries
  @queries
end

#response_formatObject

Returns the value of attribute response_format.



37
38
39
# File 'lib/datadog_api_client/v1/models/geomap_widget_request.rb', line 37

def response_format
  @response_format
end

#rum_queryObject

Returns the value of attribute rum_query.



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

def rum_query
  @rum_query
end

#security_queryObject

Returns the value of attribute security_query.



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

def security_query
  @security_query
end