Class: DatadogAPIClient::V1::TimeseriesWidgetRequest
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::TimeseriesWidgetRequest
- Defined in:
- lib/datadog_api_client/v1/models/timeseries_widget_request.rb
Overview
Updated timeseries widget.
Instance Attribute Summary collapse
-
#apm_query ⇒ Object
Returns the value of attribute apm_query.
-
#audit_query ⇒ Object
Returns the value of attribute audit_query.
-
#display_type ⇒ Object
Returns the value of attribute display_type.
-
#event_query ⇒ Object
Returns the value of attribute event_query.
-
#formulas ⇒ Object
List of formulas that operate on queries.
-
#log_query ⇒ Object
Returns the value of attribute log_query.
-
#metadata ⇒ Object
Used to define expression aliases.
-
#network_query ⇒ Object
Returns the value of attribute network_query.
-
#on_right_yaxis ⇒ Object
Whether or not to display a second y-axis on the right.
-
#process_query ⇒ Object
Returns the value of attribute process_query.
-
#profile_metrics_query ⇒ Object
Returns the value of attribute profile_metrics_query.
-
#q ⇒ Object
Widget query.
-
#queries ⇒ Object
List of queries that can be returned directly or used in formulas.
-
#response_format ⇒ Object
Returns the value of attribute response_format.
-
#rum_query ⇒ Object
Returns the value of attribute rum_query.
-
#security_query ⇒ Object
Returns the value of attribute security_query.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ TimeseriesWidgetRequest
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ TimeseriesWidgetRequest
Initializes the object
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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 128 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetRequest` 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::TimeseriesWidgetRequest`. 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?(:'display_type') self.display_type = attributes[:'display_type'] 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?(:'metadata') if (value = attributes[:'metadata']).is_a?(Array) self. = value end end if attributes.key?(:'network_query') self.network_query = attributes[:'network_query'] end if attributes.key?(:'on_right_yaxis') self.on_right_yaxis = attributes[:'on_right_yaxis'] 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_query ⇒ Object
Returns the value of attribute apm_query.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 26 def apm_query @apm_query end |
#audit_query ⇒ Object
Returns the value of attribute audit_query.
28 29 30 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 28 def audit_query @audit_query end |
#display_type ⇒ Object
Returns the value of attribute display_type.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 30 def display_type @display_type end |
#event_query ⇒ Object
Returns the value of attribute event_query.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 32 def event_query @event_query end |
#formulas ⇒ Object
List of formulas that operate on queries. **This feature is currently in beta.**
35 36 37 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 35 def formulas @formulas end |
#log_query ⇒ Object
Returns the value of attribute log_query.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 37 def log_query @log_query end |
#metadata ⇒ Object
Used to define expression aliases.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 40 def @metadata end |
#network_query ⇒ Object
Returns the value of attribute network_query.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 42 def network_query @network_query end |
#on_right_yaxis ⇒ Object
Whether or not to display a second y-axis on the right.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 45 def on_right_yaxis @on_right_yaxis end |
#process_query ⇒ Object
Returns the value of attribute process_query.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 47 def process_query @process_query end |
#profile_metrics_query ⇒ Object
Returns the value of attribute profile_metrics_query.
49 50 51 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 49 def profile_metrics_query @profile_metrics_query end |
#q ⇒ Object
Widget query.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 52 def q @q end |
#queries ⇒ Object
List of queries that can be returned directly or used in formulas. **This feature is currently in beta.**
55 56 57 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 55 def queries @queries end |
#response_format ⇒ Object
Returns the value of attribute response_format.
57 58 59 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 57 def response_format @response_format end |
#rum_query ⇒ Object
Returns the value of attribute rum_query.
59 60 61 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 59 def rum_query @rum_query end |
#security_query ⇒ Object
Returns the value of attribute security_query.
61 62 63 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 61 def security_query @security_query end |
#style ⇒ Object
Returns the value of attribute style.
63 64 65 |
# File 'lib/datadog_api_client/v1/models/timeseries_widget_request.rb', line 63 def style @style end |