Class: DatadogAPIClient::V1::UsageBillableSummaryKeys

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb

Overview

Response with aggregated usage types.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseGenericModel

included

Instance Attribute Details

#_unparsedObject

whether the object has unparsed attributes



23
24
25
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 23

def _unparsed
  @_unparsed
end

#apm_fargate_averageObject

Response with properties for each aggregated usage type.



25
26
27
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 25

def apm_fargate_average
  @apm_fargate_average
end

#apm_fargate_sumObject

Response with properties for each aggregated usage type.



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

def apm_fargate_sum
  @apm_fargate_sum
end

#apm_host_sumObject

Response with properties for each aggregated usage type.



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

def apm_host_sum
  @apm_host_sum
end

#apm_host_top99pObject

Response with properties for each aggregated usage type.



34
35
36
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 34

def apm_host_top99p
  @apm_host_top99p
end

#apm_profiler_host_sumObject

Response with properties for each aggregated usage type.



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

def apm_profiler_host_sum
  @apm_profiler_host_sum
end

#apm_profiler_host_top99pObject

Response with properties for each aggregated usage type.



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

def apm_profiler_host_top99p
  @apm_profiler_host_top99p
end

#apm_trace_search_sumObject

Response with properties for each aggregated usage type.



43
44
45
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 43

def apm_trace_search_sum
  @apm_trace_search_sum
end

#application_security_fargate_averageObject

Response with properties for each aggregated usage type.



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

def application_security_fargate_average
  @application_security_fargate_average
end

#application_security_host_sumObject

Response with properties for each aggregated usage type.



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

def application_security_host_sum
  @application_security_host_sum
end

#application_security_host_top99pObject

Response with properties for each aggregated usage type.



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

def application_security_host_top99p
  @application_security_host_top99p
end

#ci_pipeline_indexed_spans_sumObject

Response with properties for each aggregated usage type.



55
56
57
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 55

def ci_pipeline_indexed_spans_sum
  @ci_pipeline_indexed_spans_sum
end

#ci_pipeline_maximumObject

Response with properties for each aggregated usage type.



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

def ci_pipeline_maximum
  @ci_pipeline_maximum
end

#ci_pipeline_sumObject

Response with properties for each aggregated usage type.



61
62
63
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 61

def ci_pipeline_sum
  @ci_pipeline_sum
end

#ci_test_indexed_spans_sumObject

Response with properties for each aggregated usage type.



64
65
66
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 64

def ci_test_indexed_spans_sum
  @ci_test_indexed_spans_sum
end

#ci_testing_maximumObject

Response with properties for each aggregated usage type.



67
68
69
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 67

def ci_testing_maximum
  @ci_testing_maximum
end

#ci_testing_sumObject

Response with properties for each aggregated usage type.



70
71
72
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 70

def ci_testing_sum
  @ci_testing_sum
end

#cloud_cost_management_averageObject

Response with properties for each aggregated usage type.



73
74
75
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 73

def cloud_cost_management_average
  @cloud_cost_management_average
end

#cloud_cost_management_sumObject

Response with properties for each aggregated usage type.



76
77
78
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 76

def cloud_cost_management_sum
  @cloud_cost_management_sum
end

#cspm_container_sumObject

Response with properties for each aggregated usage type.



79
80
81
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 79

def cspm_container_sum
  @cspm_container_sum
end

#cspm_host_sumObject

Response with properties for each aggregated usage type.



82
83
84
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 82

def cspm_host_sum
  @cspm_host_sum
end

#cspm_host_top99pObject

Response with properties for each aggregated usage type.



85
86
87
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 85

def cspm_host_top99p
  @cspm_host_top99p
end

#custom_event_sumObject

Response with properties for each aggregated usage type.



88
89
90
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 88

def custom_event_sum
  @custom_event_sum
end

#cws_container_sumObject

Response with properties for each aggregated usage type.



91
92
93
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 91

def cws_container_sum
  @cws_container_sum
end

#cws_host_sumObject

Response with properties for each aggregated usage type.



94
95
96
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 94

def cws_host_sum
  @cws_host_sum
end

#cws_host_top99pObject

Response with properties for each aggregated usage type.



97
98
99
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 97

def cws_host_top99p
  @cws_host_top99p
end

#dbm_host_sumObject

Response with properties for each aggregated usage type.



100
101
102
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 100

def dbm_host_sum
  @dbm_host_sum
end

#dbm_host_top99pObject

Response with properties for each aggregated usage type.



103
104
105
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 103

def dbm_host_top99p
  @dbm_host_top99p
end

#dbm_normalized_queries_averageObject

Response with properties for each aggregated usage type.



106
107
108
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 106

def dbm_normalized_queries_average
  @dbm_normalized_queries_average
end

#dbm_normalized_queries_sumObject

Response with properties for each aggregated usage type.



109
110
111
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 109

def dbm_normalized_queries_sum
  @dbm_normalized_queries_sum
end

#fargate_container_apm_and_profiler_averageObject

Response with properties for each aggregated usage type.



112
113
114
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 112

def fargate_container_apm_and_profiler_average
  @fargate_container_apm_and_profiler_average
end

#fargate_container_apm_and_profiler_sumObject

Response with properties for each aggregated usage type.



115
116
117
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 115

def fargate_container_apm_and_profiler_sum
  @fargate_container_apm_and_profiler_sum
end

#fargate_container_averageObject

Response with properties for each aggregated usage type.



118
119
120
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 118

def fargate_container_average
  @fargate_container_average
end

#fargate_container_profiler_averageObject

Response with properties for each aggregated usage type.



121
122
123
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 121

def fargate_container_profiler_average
  @fargate_container_profiler_average
end

#fargate_container_profiler_sumObject

Response with properties for each aggregated usage type.



124
125
126
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 124

def fargate_container_profiler_sum
  @fargate_container_profiler_sum
end

#fargate_container_sumObject

Response with properties for each aggregated usage type.



127
128
129
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 127

def fargate_container_sum
  @fargate_container_sum
end

#incident_management_maximumObject

Response with properties for each aggregated usage type.



130
131
132
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 130

def incident_management_maximum
  @incident_management_maximum
end

#incident_management_sumObject

Response with properties for each aggregated usage type.



133
134
135
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 133

def incident_management_sum
  @incident_management_sum
end

#infra_and_apm_host_sumObject

Response with properties for each aggregated usage type.



136
137
138
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 136

def infra_and_apm_host_sum
  @infra_and_apm_host_sum
end

#infra_and_apm_host_top99pObject

Response with properties for each aggregated usage type.



139
140
141
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 139

def infra_and_apm_host_top99p
  @infra_and_apm_host_top99p
end

#infra_container_sumObject

Response with properties for each aggregated usage type.



142
143
144
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 142

def infra_container_sum
  @infra_container_sum
end

#infra_host_sumObject

Response with properties for each aggregated usage type.



145
146
147
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 145

def infra_host_sum
  @infra_host_sum
end

#infra_host_top99pObject

Response with properties for each aggregated usage type.



148
149
150
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 148

def infra_host_top99p
  @infra_host_top99p
end

#ingested_spans_sumObject

Response with properties for each aggregated usage type.



151
152
153
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 151

def ingested_spans_sum
  @ingested_spans_sum
end

#ingested_timeseries_averageObject

Response with properties for each aggregated usage type.



154
155
156
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 154

def ingested_timeseries_average
  @ingested_timeseries_average
end

#ingested_timeseries_sumObject

Response with properties for each aggregated usage type.



157
158
159
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 157

def ingested_timeseries_sum
  @ingested_timeseries_sum
end

#iot_sumObject

Response with properties for each aggregated usage type.



160
161
162
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 160

def iot_sum
  @iot_sum
end

#iot_top99pObject

Response with properties for each aggregated usage type.



163
164
165
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 163

def iot_top99p
  @iot_top99p
end

#lambda_function_averageObject

Response with properties for each aggregated usage type.



166
167
168
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 166

def lambda_function_average
  @lambda_function_average
end

#lambda_function_sumObject

Response with properties for each aggregated usage type.



169
170
171
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 169

def lambda_function_sum
  @lambda_function_sum
end

#logs_forwarding_sumObject

Response with properties for each aggregated usage type.



172
173
174
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 172

def logs_forwarding_sum
  @logs_forwarding_sum
end

#logs_indexed_15day_sumObject

Response with properties for each aggregated usage type.



175
176
177
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 175

def logs_indexed_15day_sum
  @logs_indexed_15day_sum
end

#logs_indexed_180day_sumObject

Response with properties for each aggregated usage type.



178
179
180
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 178

def logs_indexed_180day_sum
  @logs_indexed_180day_sum
end

#logs_indexed_1day_sumObject

Response with properties for each aggregated usage type.



181
182
183
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 181

def logs_indexed_1day_sum
  @logs_indexed_1day_sum
end

#logs_indexed_30day_sumObject

Response with properties for each aggregated usage type.



184
185
186
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 184

def logs_indexed_30day_sum
  @logs_indexed_30day_sum
end

#logs_indexed_360day_sumObject

Response with properties for each aggregated usage type.



187
188
189
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 187

def logs_indexed_360day_sum
  @logs_indexed_360day_sum
end

#logs_indexed_3day_sumObject

Response with properties for each aggregated usage type.



190
191
192
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 190

def logs_indexed_3day_sum
  @logs_indexed_3day_sum
end

#logs_indexed_45day_sumObject

Response with properties for each aggregated usage type.



193
194
195
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 193

def logs_indexed_45day_sum
  @logs_indexed_45day_sum
end

#logs_indexed_60day_sumObject

Response with properties for each aggregated usage type.



196
197
198
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 196

def logs_indexed_60day_sum
  @logs_indexed_60day_sum
end

#logs_indexed_7day_sumObject

Response with properties for each aggregated usage type.



199
200
201
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 199

def logs_indexed_7day_sum
  @logs_indexed_7day_sum
end

#logs_indexed_90day_sumObject

Response with properties for each aggregated usage type.



202
203
204
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 202

def logs_indexed_90day_sum
  @logs_indexed_90day_sum
end

#logs_indexed_custom_retention_sumObject

Response with properties for each aggregated usage type.



205
206
207
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 205

def logs_indexed_custom_retention_sum
  @logs_indexed_custom_retention_sum
end

#logs_indexed_sumObject

Response with properties for each aggregated usage type.



208
209
210
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 208

def logs_indexed_sum
  @logs_indexed_sum
end

#logs_ingested_sumObject

Response with properties for each aggregated usage type.



211
212
213
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 211

def logs_ingested_sum
  @logs_ingested_sum
end

#network_device_sumObject

Response with properties for each aggregated usage type.



214
215
216
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 214

def network_device_sum
  @network_device_sum
end

#network_device_top99pObject

Response with properties for each aggregated usage type.



217
218
219
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 217

def network_device_top99p
  @network_device_top99p
end

#npm_flow_sumObject

Response with properties for each aggregated usage type.



220
221
222
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 220

def npm_flow_sum
  @npm_flow_sum
end

#npm_host_sumObject

Response with properties for each aggregated usage type.



223
224
225
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 223

def npm_host_sum
  @npm_host_sum
end

#npm_host_top99pObject

Response with properties for each aggregated usage type.



226
227
228
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 226

def npm_host_top99p
  @npm_host_top99p
end

#observability_pipeline_sumObject

Response with properties for each aggregated usage type.



229
230
231
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 229

def observability_pipeline_sum
  @observability_pipeline_sum
end

#online_archive_sumObject

Response with properties for each aggregated usage type.



232
233
234
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 232

def online_archive_sum
  @online_archive_sum
end

#prof_container_sumObject

Response with properties for each aggregated usage type.



235
236
237
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 235

def prof_container_sum
  @prof_container_sum
end

#prof_host_sumObject

Response with properties for each aggregated usage type.



238
239
240
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 238

def prof_host_sum
  @prof_host_sum
end

#prof_host_top99pObject

Response with properties for each aggregated usage type.



241
242
243
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 241

def prof_host_top99p
  @prof_host_top99p
end

#rum_lite_sumObject

Response with properties for each aggregated usage type.



244
245
246
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 244

def rum_lite_sum
  @rum_lite_sum
end

#rum_replay_sumObject

Response with properties for each aggregated usage type.



247
248
249
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 247

def rum_replay_sum
  @rum_replay_sum
end

#rum_sumObject

Response with properties for each aggregated usage type.



250
251
252
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 250

def rum_sum
  @rum_sum
end

#rum_units_sumObject

Response with properties for each aggregated usage type.



253
254
255
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 253

def rum_units_sum
  @rum_units_sum
end

#sensitive_data_scanner_sumObject

Response with properties for each aggregated usage type.



256
257
258
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 256

def sensitive_data_scanner_sum
  @sensitive_data_scanner_sum
end

#serverless_apm_sumObject

Response with properties for each aggregated usage type.



259
260
261
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 259

def serverless_apm_sum
  @serverless_apm_sum
end

#serverless_infra_averageObject

Response with properties for each aggregated usage type.



262
263
264
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 262

def serverless_infra_average
  @serverless_infra_average
end

#serverless_infra_sumObject

Response with properties for each aggregated usage type.



265
266
267
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 265

def serverless_infra_sum
  @serverless_infra_sum
end

#serverless_invocation_sumObject

Response with properties for each aggregated usage type.



268
269
270
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 268

def serverless_invocation_sum
  @serverless_invocation_sum
end

#siem_sumObject

Response with properties for each aggregated usage type.



271
272
273
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 271

def siem_sum
  @siem_sum
end

#standard_timeseries_averageObject

Response with properties for each aggregated usage type.



274
275
276
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 274

def standard_timeseries_average
  @standard_timeseries_average
end

#synthetics_api_tests_sumObject

Response with properties for each aggregated usage type.



277
278
279
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 277

def synthetics_api_tests_sum
  @synthetics_api_tests_sum
end

#synthetics_app_testing_maximumObject

Response with properties for each aggregated usage type.



280
281
282
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 280

def synthetics_app_testing_maximum
  @synthetics_app_testing_maximum
end

#synthetics_browser_checks_sumObject

Response with properties for each aggregated usage type.



283
284
285
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 283

def synthetics_browser_checks_sum
  @synthetics_browser_checks_sum
end

#timeseries_averageObject

Response with properties for each aggregated usage type.



286
287
288
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 286

def timeseries_average
  @timeseries_average
end

#timeseries_sumObject

Response with properties for each aggregated usage type.



289
290
291
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 289

def timeseries_sum
  @timeseries_sum
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



128
129
130
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 128

def self.acceptable_attributes
  attribute_map.values
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



387
388
389
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 387

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



171
172
173
174
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 171

def self.openapi_nullable
  Set.new([
  ])
end

Instance Method Details

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 417

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when :Array
    # generic array, return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = DatadogAPIClient::V1.const_get(type)
    res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
    if res.instance_of? DatadogAPIClient::V1::UnparsedObject
      self._unparsed = true
    end
    res
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



495
496
497
498
499
500
501
502
503
504
505
506
507
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 495

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 394

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


374
375
376
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 374

def eql?(o)
  self == o
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



322
323
324
325
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 322

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



471
472
473
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 471

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



477
478
479
480
481
482
483
484
485
486
487
488
489
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 477

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



465
466
467
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 465

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



329
330
331
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb', line 329

def valid?
  true
end