fastly 7.2.2 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +1 -1
  5. data/docs/CreateResponseObjectRequest.md +16 -0
  6. data/docs/HistoricalApi.md +12 -12
  7. data/docs/{HistoricalAggregateResponse.md → HistoricalStatsAggregatedResponse.md} +1 -1
  8. data/docs/{HistoricalAggregateResponseAllOf.md → HistoricalStatsAggregatedResponseAllOf.md} +1 -1
  9. data/docs/{HistoricalResponse.md → HistoricalStatsByServiceResponse.md} +1 -1
  10. data/docs/{HistoricalResponseDataField.md → HistoricalStatsByServiceResponseAllOf.md} +1 -1
  11. data/docs/{HistoricalFieldResponse.md → HistoricalUsageAggregatedResponse.md} +2 -2
  12. data/docs/{HistoricalFieldResponseDataField.md → HistoricalUsageAggregatedResponseAllOf.md} +2 -2
  13. data/docs/{HistoricalUsageResults.md → HistoricalUsageData.md} +1 -1
  14. data/docs/HistoricalUsageMonthResponseData.md +2 -2
  15. data/docs/{HistoricalService.md → HistoricalUsageService.md} +1 -1
  16. data/docs/HistoricalUsageServiceResponse.md +1 -1
  17. data/docs/HistoricalUsageServiceResponseAllOf.md +1 -1
  18. data/docs/ResponseObjectApi.md +4 -0
  19. data/docs/Results.md +2 -0
  20. data/docs/TlsConfigurationResponseAttributes.md +1 -1
  21. data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
  22. data/lib/fastly/api/historical_api.rb +18 -18
  23. data/lib/fastly/api/response_object_api.rb +8 -4
  24. data/lib/fastly/models/{historical_field_aggregate_response.rb → create_response_object_request.rb} +59 -35
  25. data/lib/fastly/models/{historical_aggregate_response.rb → historical_stats_aggregated_response.rb} +4 -4
  26. data/lib/fastly/models/{historical_aggregate_response_all_of.rb → historical_stats_aggregated_response_all_of.rb} +3 -3
  27. data/lib/fastly/models/{historical_response.rb → historical_stats_by_service_response.rb} +4 -4
  28. data/lib/fastly/models/{historical_response_data_field.rb → historical_stats_by_service_response_all_of.rb} +3 -3
  29. data/lib/fastly/models/{historical_field_response.rb → historical_usage_aggregated_response.rb} +6 -5
  30. data/lib/fastly/models/{historical_field_response_data_field.rb → historical_usage_aggregated_response_all_of.rb} +5 -4
  31. data/lib/fastly/models/{historical_usage_results.rb → historical_usage_data.rb} +4 -3
  32. data/lib/fastly/models/historical_usage_month_response_data.rb +7 -3
  33. data/lib/fastly/models/{historical_service.rb → historical_usage_service.rb} +3 -3
  34. data/lib/fastly/models/historical_usage_service_response.rb +5 -2
  35. data/lib/fastly/models/historical_usage_service_response_all_of.rb +5 -2
  36. data/lib/fastly/models/relationship_mutual_authentication.rb +1 -1
  37. data/lib/fastly/models/relationship_tls_domain.rb +1 -1
  38. data/lib/fastly/models/results.rb +24 -5
  39. data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
  40. data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
  41. data/lib/fastly/version.rb +1 -1
  42. data/lib/fastly.rb +9 -14
  43. data/sig.json +1 -1
  44. metadata +20 -30
  45. data/docs/HistoricalFieldAggregateResponse.md +0 -13
  46. data/docs/HistoricalFieldAggregateResponseAllOf.md +0 -10
  47. data/docs/HistoricalFieldResultsAttributes.md +0 -236
  48. data/docs/HistoricalFieldResultsAttributesAdditional.md +0 -11
  49. data/docs/HistoricalUsageAggregateResponse.md +0 -13
  50. data/docs/ReadOnlyIdService.md +0 -9
  51. data/lib/fastly/models/historical_field_aggregate_response_all_of.rb +0 -218
  52. data/lib/fastly/models/historical_field_results_attributes.rb +0 -2484
  53. data/lib/fastly/models/historical_field_results_attributes_additional.rb +0 -225
  54. data/lib/fastly/models/historical_usage_aggregate_response.rb +0 -254
  55. data/lib/fastly/models/read_only_id_service.rb +0 -207
@@ -1,2484 +0,0 @@
1
- =begin
2
- #Fastly API
3
-
4
- #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: oss@fastly.com
8
-
9
- =end
10
-
11
- require 'date'
12
- require 'time'
13
-
14
- module Fastly
15
- class HistoricalFieldResultsAttributes
16
- # Number of requests processed.
17
- attr_accessor :requests
18
-
19
- # Number of cache hits.
20
- attr_accessor :hits
21
-
22
- # Total amount of time spent processing cache hits (in seconds).
23
- attr_accessor :hits_time
24
-
25
- # Number of cache misses.
26
- attr_accessor :miss
27
-
28
- # Total amount of time spent processing cache misses (in seconds).
29
- attr_accessor :miss_time
30
-
31
- # Number of requests that passed through the CDN without being cached.
32
- attr_accessor :pass
33
-
34
- # Total amount of time spent processing cache passes (in seconds).
35
- attr_accessor :pass_time
36
-
37
- # Number of cache errors.
38
- attr_accessor :errors
39
-
40
- # Number of restarts performed.
41
- attr_accessor :restarts
42
-
43
- # Ratio of cache hits to cache misses (between 0 and 1).
44
- attr_accessor :hit_ratio
45
-
46
- # Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`).
47
- attr_accessor :bandwidth
48
-
49
- # Total body bytes delivered (alias for resp_body_bytes).
50
- attr_accessor :body_size
51
-
52
- # Total header bytes delivered (alias for resp_header_bytes).
53
- attr_accessor :header_size
54
-
55
- # Total body bytes received.
56
- attr_accessor :req_body_bytes
57
-
58
- # Total header bytes received.
59
- attr_accessor :req_header_bytes
60
-
61
- # Total body bytes delivered (edge_resp_body_bytes + shield_resp_body_bytes).
62
- attr_accessor :resp_body_bytes
63
-
64
- # Total header bytes delivered (edge_resp_header_bytes + shield_resp_header_bytes).
65
- attr_accessor :resp_header_bytes
66
-
67
- # Total body bytes sent to origin.
68
- attr_accessor :bereq_body_bytes
69
-
70
- # Total header bytes sent to origin.
71
- attr_accessor :bereq_header_bytes
72
-
73
- # Number of requests that were designated uncachable.
74
- attr_accessor :uncacheable
75
-
76
- # Optional. Pipe operations performed (legacy feature).
77
- attr_accessor :pipe
78
-
79
- # Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement).
80
- attr_accessor :synth
81
-
82
- # Number of requests that were received over TLS.
83
- attr_accessor :tls
84
-
85
- # Number of requests received over TLS 1.0.
86
- attr_accessor :tls_v10
87
-
88
- # Number of requests received over TLS 1.1.
89
- attr_accessor :tls_v11
90
-
91
- # Number of requests received over TLS 1.2.
92
- attr_accessor :tls_v12
93
-
94
- # Number of requests received over TLS 1.3.
95
- attr_accessor :tls_v13
96
-
97
- # Number of requests sent by end users to Fastly.
98
- attr_accessor :edge_requests
99
-
100
- # Total header bytes delivered from Fastly to the end user.
101
- attr_accessor :edge_resp_header_bytes
102
-
103
- # Total body bytes delivered from Fastly to the end user.
104
- attr_accessor :edge_resp_body_bytes
105
-
106
- # Number of requests sent by end users to Fastly that resulted in a hit at the edge.
107
- attr_accessor :edge_hit_requests
108
-
109
- # Number of requests sent by end users to Fastly that resulted in a miss at the edge.
110
- attr_accessor :edge_miss_requests
111
-
112
- # Number of requests sent to origin.
113
- attr_accessor :origin_fetches
114
-
115
- # Total request header bytes sent to origin.
116
- attr_accessor :origin_fetch_header_bytes
117
-
118
- # Total request body bytes sent to origin.
119
- attr_accessor :origin_fetch_body_bytes
120
-
121
- # Total header bytes received from origin.
122
- attr_accessor :origin_fetch_resp_header_bytes
123
-
124
- # Total body bytes received from origin.
125
- attr_accessor :origin_fetch_resp_body_bytes
126
-
127
- # Number of responses received from origin with a `304` status code in response to an `If-Modified-Since` or `If-None-Match` request. Under regular scenarios, a revalidation will imply a cache hit. However, if using Fastly Image Optimizer or segmented caching this may result in a cache miss.
128
- attr_accessor :origin_revalidations
129
-
130
- # The total number of completed requests made to backends (origins) that returned cacheable content.
131
- attr_accessor :origin_cache_fetches
132
-
133
- # Number of requests from edge to the shield POP.
134
- attr_accessor :shield
135
-
136
- # Total body bytes delivered via a shield.
137
- attr_accessor :shield_resp_body_bytes
138
-
139
- # Total header bytes delivered via a shield.
140
- attr_accessor :shield_resp_header_bytes
141
-
142
- # Number of requests made from one Fastly POP to another, as part of shielding.
143
- attr_accessor :shield_fetches
144
-
145
- # Total request header bytes sent to a shield.
146
- attr_accessor :shield_fetch_header_bytes
147
-
148
- # Total request body bytes sent to a shield.
149
- attr_accessor :shield_fetch_body_bytes
150
-
151
- # Total response header bytes sent from a shield to the edge.
152
- attr_accessor :shield_fetch_resp_header_bytes
153
-
154
- # Total response body bytes sent from a shield to the edge.
155
- attr_accessor :shield_fetch_resp_body_bytes
156
-
157
- # Number of responses received from origin with a `304` status code, in response to an `If-Modified-Since` or `If-None-Match` request to a shield. Under regular scenarios, a revalidation will imply a cache hit. However, if using segmented caching this may result in a cache miss.
158
- attr_accessor :shield_revalidations
159
-
160
- # The total number of completed requests made to shields that returned cacheable content.
161
- attr_accessor :shield_cache_fetches
162
-
163
- # Number of requests that were received over IPv6.
164
- attr_accessor :ipv6
165
-
166
- # Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand.
167
- attr_accessor :otfp
168
-
169
- # Total body bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.
170
- attr_accessor :otfp_resp_body_bytes
171
-
172
- # Total header bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.
173
- attr_accessor :otfp_resp_header_bytes
174
-
175
- # Total body bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.
176
- attr_accessor :otfp_shield_resp_body_bytes
177
-
178
- # Total header bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.
179
- attr_accessor :otfp_shield_resp_header_bytes
180
-
181
- # Number of responses that were manifest files from the Fastly On-the-Fly Packaging service for video-on-demand.
182
- attr_accessor :otfp_manifests
183
-
184
- # Total amount of time spent delivering a response from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds).
185
- attr_accessor :otfp_deliver_time
186
-
187
- # Total amount of time spent delivering a response via a shield from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds).
188
- attr_accessor :otfp_shield_time
189
-
190
- # Number of responses with the video segment or video manifest MIME type (i.e., application/x-mpegurl, application/vnd.apple.mpegurl, application/f4m, application/dash+xml, application/vnd.ms-sstr+xml, ideo/mp2t, audio/aac, video/f4f, video/x-flv, video/mp4, audio/mp4).
191
- attr_accessor :video
192
-
193
- # Number of responses with the PCI flag turned on.
194
- attr_accessor :pci
195
-
196
- # Number of log lines sent.
197
- attr_accessor :log
198
-
199
- # Total log bytes sent.
200
- attr_accessor :log_bytes
201
-
202
- # Number of requests received over HTTP/2.
203
- attr_accessor :http2
204
-
205
- # Number of requests received over HTTP/3.
206
- attr_accessor :http3
207
-
208
- # Number of requests that triggered a WAF rule and were logged.
209
- attr_accessor :waf_logged
210
-
211
- # Number of requests that triggered a WAF rule and were blocked.
212
- attr_accessor :waf_blocked
213
-
214
- # Number of requests that triggered a WAF rule and were passed.
215
- attr_accessor :waf_passed
216
-
217
- # Total body bytes received from requests that triggered a WAF rule.
218
- attr_accessor :attack_req_body_bytes
219
-
220
- # Total header bytes received from requests that triggered a WAF rule.
221
- attr_accessor :attack_req_header_bytes
222
-
223
- # Total body bytes received from requests that triggered a WAF rule that was logged.
224
- attr_accessor :attack_logged_req_body_bytes
225
-
226
- # Total header bytes received from requests that triggered a WAF rule that was logged.
227
- attr_accessor :attack_logged_req_header_bytes
228
-
229
- # Total body bytes received from requests that triggered a WAF rule that was blocked.
230
- attr_accessor :attack_blocked_req_body_bytes
231
-
232
- # Total header bytes received from requests that triggered a WAF rule that was blocked.
233
- attr_accessor :attack_blocked_req_header_bytes
234
-
235
- # Total body bytes received from requests that triggered a WAF rule that was passed.
236
- attr_accessor :attack_passed_req_body_bytes
237
-
238
- # Total header bytes received from requests that triggered a WAF rule that was passed.
239
- attr_accessor :attack_passed_req_header_bytes
240
-
241
- # Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response.
242
- attr_accessor :attack_resp_synth_bytes
243
-
244
- # Number of responses that came from the Fastly Image Optimizer service. If the service receives 10 requests for an image, this stat will be 10 regardless of how many times the image was transformed.
245
- attr_accessor :imgopto
246
-
247
- # Total body bytes delivered from the Fastly Image Optimizer service, including shield traffic.
248
- attr_accessor :imgopto_resp_body_bytes
249
-
250
- # Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic.
251
- attr_accessor :imgopto_resp_header_bytes
252
-
253
- # Total body bytes delivered via a shield from the Fastly Image Optimizer service.
254
- attr_accessor :imgopto_shield_resp_body_bytes
255
-
256
- # Total header bytes delivered via a shield from the Fastly Image Optimizer service.
257
- attr_accessor :imgopto_shield_resp_header_bytes
258
-
259
- # Number of video responses that came from the Fastly Image Optimizer service.
260
- attr_accessor :imgvideo
261
-
262
- # Number of video frames that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video.
263
- attr_accessor :imgvideo_frames
264
-
265
- # Total header bytes of video delivered from the Fastly Image Optimizer service.
266
- attr_accessor :imgvideo_resp_header_bytes
267
-
268
- # Total body bytes of video delivered from the Fastly Image Optimizer service.
269
- attr_accessor :imgvideo_resp_body_bytes
270
-
271
- # Total header bytes of video delivered via a shield from the Fastly Image Optimizer service.
272
- attr_accessor :imgvideo_shield_resp_header_bytes
273
-
274
- # Total body bytes of video delivered via a shield from the Fastly Image Optimizer service.
275
- attr_accessor :imgvideo_shield_resp_body_bytes
276
-
277
- # Number of video responses delivered via a shield that came from the Fastly Image Optimizer service.
278
- attr_accessor :imgvideo_shield
279
-
280
- # Number of video frames delivered via a shield that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video.
281
- attr_accessor :imgvideo_shield_frames
282
-
283
- # Number of responses sent with status code 200 (Success).
284
- attr_accessor :status_200
285
-
286
- # Number of responses sent with status code 204 (No Content).
287
- attr_accessor :status_204
288
-
289
- # Number of responses sent with status code 206 (Partial Content).
290
- attr_accessor :status_206
291
-
292
- # Number of responses sent with status code 301 (Moved Permanently).
293
- attr_accessor :status_301
294
-
295
- # Number of responses sent with status code 302 (Found).
296
- attr_accessor :status_302
297
-
298
- # Number of responses sent with status code 304 (Not Modified).
299
- attr_accessor :status_304
300
-
301
- # Number of responses sent with status code 400 (Bad Request).
302
- attr_accessor :status_400
303
-
304
- # Number of responses sent with status code 401 (Unauthorized).
305
- attr_accessor :status_401
306
-
307
- # Number of responses sent with status code 403 (Forbidden).
308
- attr_accessor :status_403
309
-
310
- # Number of responses sent with status code 404 (Not Found).
311
- attr_accessor :status_404
312
-
313
- # Number of responses sent with status code 406 (Not Acceptable).
314
- attr_accessor :status_406
315
-
316
- # Number of responses sent with status code 416 (Range Not Satisfiable).
317
- attr_accessor :status_416
318
-
319
- # Number of responses sent with status code 429 (Too Many Requests).
320
- attr_accessor :status_429
321
-
322
- # Number of responses sent with status code 500 (Internal Server Error).
323
- attr_accessor :status_500
324
-
325
- # Number of responses sent with status code 501 (Not Implemented).
326
- attr_accessor :status_501
327
-
328
- # Number of responses sent with status code 502 (Bad Gateway).
329
- attr_accessor :status_502
330
-
331
- # Number of responses sent with status code 503 (Service Unavailable).
332
- attr_accessor :status_503
333
-
334
- # Number of responses sent with status code 504 (Gateway Timeout).
335
- attr_accessor :status_504
336
-
337
- # Number of responses sent with status code 505 (HTTP Version Not Supported).
338
- attr_accessor :status_505
339
-
340
- # Number of \"Informational\" category status codes delivered.
341
- attr_accessor :status_1xx
342
-
343
- # Number of \"Success\" status codes delivered.
344
- attr_accessor :status_2xx
345
-
346
- # Number of \"Redirection\" codes delivered.
347
- attr_accessor :status_3xx
348
-
349
- # Number of \"Client Error\" codes delivered.
350
- attr_accessor :status_4xx
351
-
352
- # Number of \"Server Error\" codes delivered.
353
- attr_accessor :status_5xx
354
-
355
- # Number of objects served that were under 1KB in size.
356
- attr_accessor :object_size_1k
357
-
358
- # Number of objects served that were between 1KB and 10KB in size.
359
- attr_accessor :object_size_10k
360
-
361
- # Number of objects served that were between 10KB and 100KB in size.
362
- attr_accessor :object_size_100k
363
-
364
- # Number of objects served that were between 100KB and 1MB in size.
365
- attr_accessor :object_size_1m
366
-
367
- # Number of objects served that were between 1MB and 10MB in size.
368
- attr_accessor :object_size_10m
369
-
370
- # Number of objects served that were between 10MB and 100MB in size.
371
- attr_accessor :object_size_100m
372
-
373
- # Number of objects served that were between 100MB and 1GB in size.
374
- attr_accessor :object_size_1g
375
-
376
- # Time spent inside the `vcl_recv` Varnish subroutine (in seconds).
377
- attr_accessor :recv_sub_time
378
-
379
- # Number of executions of the `vcl_recv` Varnish subroutine.
380
- attr_accessor :recv_sub_count
381
-
382
- # Time spent inside the `vcl_hash` Varnish subroutine (in seconds).
383
- attr_accessor :hash_sub_time
384
-
385
- # Number of executions of the `vcl_hash` Varnish subroutine.
386
- attr_accessor :hash_sub_count
387
-
388
- # Time spent inside the `vcl_miss` Varnish subroutine (in seconds).
389
- attr_accessor :miss_sub_time
390
-
391
- # Number of executions of the `vcl_miss` Varnish subroutine.
392
- attr_accessor :miss_sub_count
393
-
394
- # Time spent inside the `vcl_fetch` Varnish subroutine (in seconds).
395
- attr_accessor :fetch_sub_time
396
-
397
- # Number of executions of the `vcl_fetch` Varnish subroutine.
398
- attr_accessor :fetch_sub_count
399
-
400
- # Time spent inside the `vcl_pass` Varnish subroutine (in seconds).
401
- attr_accessor :pass_sub_time
402
-
403
- # Number of executions of the `vcl_pass` Varnish subroutine.
404
- attr_accessor :pass_sub_count
405
-
406
- # Time spent inside the `vcl_pipe` Varnish subroutine (in seconds).
407
- attr_accessor :pipe_sub_time
408
-
409
- # Number of executions of the `vcl_pipe` Varnish subroutine.
410
- attr_accessor :pipe_sub_count
411
-
412
- # Time spent inside the `vcl_deliver` Varnish subroutine (in seconds).
413
- attr_accessor :deliver_sub_time
414
-
415
- # Number of executions of the `vcl_deliver` Varnish subroutine.
416
- attr_accessor :deliver_sub_count
417
-
418
- # Time spent inside the `vcl_error` Varnish subroutine (in seconds).
419
- attr_accessor :error_sub_time
420
-
421
- # Number of executions of the `vcl_error` Varnish subroutine.
422
- attr_accessor :error_sub_count
423
-
424
- # Time spent inside the `vcl_hit` Varnish subroutine (in seconds).
425
- attr_accessor :hit_sub_time
426
-
427
- # Number of executions of the `vcl_hit` Varnish subroutine.
428
- attr_accessor :hit_sub_count
429
-
430
- # Time spent inside the `vcl_prehash` Varnish subroutine (in seconds).
431
- attr_accessor :prehash_sub_time
432
-
433
- # Number of executions of the `vcl_prehash` Varnish subroutine.
434
- attr_accessor :prehash_sub_count
435
-
436
- # Time spent inside the `vcl_predeliver` Varnish subroutine (in seconds).
437
- attr_accessor :predeliver_sub_time
438
-
439
- # Number of executions of the `vcl_predeliver` Varnish subroutine.
440
- attr_accessor :predeliver_sub_count
441
-
442
- # Number of bytes transferred during TLS handshake.
443
- attr_accessor :tls_handshake_sent_bytes
444
-
445
- # Total body bytes delivered for cache hits.
446
- attr_accessor :hit_resp_body_bytes
447
-
448
- # Total body bytes delivered for cache misses.
449
- attr_accessor :miss_resp_body_bytes
450
-
451
- # Total body bytes delivered for cache passes.
452
- attr_accessor :pass_resp_body_bytes
453
-
454
- # Number of `Range` requests to origin for segments of resources when using segmented caching.
455
- attr_accessor :segblock_origin_fetches
456
-
457
- # Number of `Range` requests to a shield for segments of resources when using segmented caching.
458
- attr_accessor :segblock_shield_fetches
459
-
460
- # The total number of requests that were received for your service by Fastly.
461
- attr_accessor :compute_requests
462
-
463
- # The total, actual amount of time used to process your requests, including active CPU time (in milliseconds).
464
- attr_accessor :compute_request_time_ms
465
-
466
- # The total amount of request processing time you will be billed for, measured in 50 millisecond increments.
467
- attr_accessor :compute_request_time_billed_ms
468
-
469
- # The amount of RAM used for your service by Fastly (in bytes).
470
- attr_accessor :compute_ram_used
471
-
472
- # The amount of active CPU time used to process your requests (in milliseconds).
473
- attr_accessor :compute_execution_time_ms
474
-
475
- # Total header bytes received by the Compute platform.
476
- attr_accessor :compute_req_header_bytes
477
-
478
- # Total body bytes received by the Compute platform.
479
- attr_accessor :compute_req_body_bytes
480
-
481
- # Total header bytes sent from Compute to end user.
482
- attr_accessor :compute_resp_header_bytes
483
-
484
- # Total body bytes sent from Compute to end user.
485
- attr_accessor :compute_resp_body_bytes
486
-
487
- # Number of \"Informational\" category status codes delivered by the Compute platform.
488
- attr_accessor :compute_resp_status_1xx
489
-
490
- # Number of \"Success\" category status codes delivered by the Compute platform.
491
- attr_accessor :compute_resp_status_2xx
492
-
493
- # Number of \"Redirection\" category status codes delivered by the Compute platform.
494
- attr_accessor :compute_resp_status_3xx
495
-
496
- # Number of \"Client Error\" category status codes delivered by the Compute platform.
497
- attr_accessor :compute_resp_status_4xx
498
-
499
- # Number of \"Server Error\" category status codes delivered by the Compute platform.
500
- attr_accessor :compute_resp_status_5xx
501
-
502
- # Total header bytes sent to backends (origins) by the Compute platform.
503
- attr_accessor :compute_bereq_header_bytes
504
-
505
- # Total body bytes sent to backends (origins) by the Compute platform.
506
- attr_accessor :compute_bereq_body_bytes
507
-
508
- # Total header bytes received from backends (origins) by the Compute platform.
509
- attr_accessor :compute_beresp_header_bytes
510
-
511
- # Total body bytes received from backends (origins) by the Compute platform.
512
- attr_accessor :compute_beresp_body_bytes
513
-
514
- # Number of backend requests started.
515
- attr_accessor :compute_bereqs
516
-
517
- # Number of backend request errors, including timeouts.
518
- attr_accessor :compute_bereq_errors
519
-
520
- # Number of times a guest exceeded its resource limit, includes heap, stack, globals, and code execution timeout.
521
- attr_accessor :compute_resource_limit_exceeded
522
-
523
- # Number of times a guest exceeded its heap limit.
524
- attr_accessor :compute_heap_limit_exceeded
525
-
526
- # Number of times a guest exceeded its stack limit.
527
- attr_accessor :compute_stack_limit_exceeded
528
-
529
- # Number of times a guest exceeded its globals limit.
530
- attr_accessor :compute_globals_limit_exceeded
531
-
532
- # Number of times a service experienced a guest code error.
533
- attr_accessor :compute_guest_errors
534
-
535
- # Number of times a service experienced a guest runtime error.
536
- attr_accessor :compute_runtime_errors
537
-
538
- # Body bytes delivered for edge hits.
539
- attr_accessor :edge_hit_resp_body_bytes
540
-
541
- # Header bytes delivered for edge hits.
542
- attr_accessor :edge_hit_resp_header_bytes
543
-
544
- # Body bytes delivered for edge misses.
545
- attr_accessor :edge_miss_resp_body_bytes
546
-
547
- # Header bytes delivered for edge misses.
548
- attr_accessor :edge_miss_resp_header_bytes
549
-
550
- # Body bytes received from origin for cacheable content.
551
- attr_accessor :origin_cache_fetch_resp_body_bytes
552
-
553
- # Header bytes received from an origin for cacheable content.
554
- attr_accessor :origin_cache_fetch_resp_header_bytes
555
-
556
- # Number of requests that resulted in a hit at a shield.
557
- attr_accessor :shield_hit_requests
558
-
559
- # Number of requests that resulted in a miss at a shield.
560
- attr_accessor :shield_miss_requests
561
-
562
- # Header bytes delivered for shield hits.
563
- attr_accessor :shield_hit_resp_header_bytes
564
-
565
- # Body bytes delivered for shield hits.
566
- attr_accessor :shield_hit_resp_body_bytes
567
-
568
- # Header bytes delivered for shield misses.
569
- attr_accessor :shield_miss_resp_header_bytes
570
-
571
- # Body bytes delivered for shield misses.
572
- attr_accessor :shield_miss_resp_body_bytes
573
-
574
- # Total header bytes received from end users over passthrough WebSocket connections.
575
- attr_accessor :websocket_req_header_bytes
576
-
577
- # Total message content bytes received from end users over passthrough WebSocket connections.
578
- attr_accessor :websocket_req_body_bytes
579
-
580
- # Total header bytes sent to end users over passthrough WebSocket connections.
581
- attr_accessor :websocket_resp_header_bytes
582
-
583
- # Total message content bytes sent to end users over passthrough WebSocket connections.
584
- attr_accessor :websocket_resp_body_bytes
585
-
586
- # Total header bytes sent to backends over passthrough WebSocket connections.
587
- attr_accessor :websocket_bereq_header_bytes
588
-
589
- # Total message content bytes sent to backends over passthrough WebSocket connections.
590
- attr_accessor :websocket_bereq_body_bytes
591
-
592
- # Total header bytes received from backends over passthrough WebSocket connections.
593
- attr_accessor :websocket_beresp_header_bytes
594
-
595
- # Total message content bytes received from backends over passthrough WebSocket connections.
596
- attr_accessor :websocket_beresp_body_bytes
597
-
598
- # Total duration of passthrough WebSocket connections with end users.
599
- attr_accessor :websocket_conn_time_ms
600
-
601
- # Total published messages received from the publish API endpoint.
602
- attr_accessor :fanout_recv_publishes
603
-
604
- # Total published messages sent to end users.
605
- attr_accessor :fanout_send_publishes
606
-
607
- # The total number of class a operations for the KV store.
608
- attr_accessor :kv_store_class_a_operations
609
-
610
- # The total number of class b operations for the KV store.
611
- attr_accessor :kv_store_class_b_operations
612
-
613
- # Use kv_store_class_a_operations.
614
- attr_accessor :object_store_class_a_operations
615
-
616
- # Use kv_store_class_b_operations.
617
- attr_accessor :object_store_class_b_operations
618
-
619
- # Total header bytes received from end users over Fanout connections.
620
- attr_accessor :fanout_req_header_bytes
621
-
622
- # Total body or message content bytes received from end users over Fanout connections.
623
- attr_accessor :fanout_req_body_bytes
624
-
625
- # Total header bytes sent to end users over Fanout connections.
626
- attr_accessor :fanout_resp_header_bytes
627
-
628
- # Total body or message content bytes sent to end users over Fanout connections, excluding published message content.
629
- attr_accessor :fanout_resp_body_bytes
630
-
631
- # Total header bytes sent to backends over Fanout connections.
632
- attr_accessor :fanout_bereq_header_bytes
633
-
634
- # Total body or message content bytes sent to backends over Fanout connections.
635
- attr_accessor :fanout_bereq_body_bytes
636
-
637
- # Total header bytes received from backends over Fanout connections.
638
- attr_accessor :fanout_beresp_header_bytes
639
-
640
- # Total body or message content bytes received from backends over Fanout connections.
641
- attr_accessor :fanout_beresp_body_bytes
642
-
643
- # Total duration of Fanout connections with end users.
644
- attr_accessor :fanout_conn_time_ms
645
-
646
- # For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection.
647
- attr_accessor :ddos_action_limit_streams_connections
648
-
649
- # For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection.
650
- attr_accessor :ddos_action_limit_streams_requests
651
-
652
- # The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.
653
- attr_accessor :ddos_action_tarpit_accept
654
-
655
- # The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.
656
- attr_accessor :ddos_action_tarpit
657
-
658
- # The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent.
659
- attr_accessor :ddos_action_close
660
-
661
- # The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped).
662
- attr_accessor :ddos_action_blackhole
663
-
664
- # The number of challenge-start tokens created.
665
- attr_accessor :bot_challenge_starts
666
-
667
- # The number of challenge-complete tokens that passed validation.
668
- attr_accessor :bot_challenge_complete_tokens_passed
669
-
670
- # The number of challenge-complete tokens that failed validation.
671
- attr_accessor :bot_challenge_complete_tokens_failed
672
-
673
- # The number of challenge-complete tokens checked.
674
- attr_accessor :bot_challenge_complete_tokens_checked
675
-
676
- # The number of challenge-complete tokens not checked because the feature was disabled.
677
- attr_accessor :bot_challenge_complete_tokens_disabled
678
-
679
- # The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.
680
- attr_accessor :bot_challenge_complete_tokens_issued
681
-
682
- # The number of challenges issued. For example, the issuance of a CAPTCHA challenge.
683
- attr_accessor :bot_challenges_issued
684
-
685
- # The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.
686
- attr_accessor :bot_challenges_succeeded
687
-
688
- # The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
689
- attr_accessor :bot_challenges_failed
690
-
691
- attr_accessor :service_id
692
-
693
- attr_accessor :start_time
694
-
695
- # Attribute mapping from ruby-style variable name to JSON key.
696
- def self.attribute_map
697
- {
698
- :'requests' => :'requests',
699
- :'hits' => :'hits',
700
- :'hits_time' => :'hits_time',
701
- :'miss' => :'miss',
702
- :'miss_time' => :'miss_time',
703
- :'pass' => :'pass',
704
- :'pass_time' => :'pass_time',
705
- :'errors' => :'errors',
706
- :'restarts' => :'restarts',
707
- :'hit_ratio' => :'hit_ratio',
708
- :'bandwidth' => :'bandwidth',
709
- :'body_size' => :'body_size',
710
- :'header_size' => :'header_size',
711
- :'req_body_bytes' => :'req_body_bytes',
712
- :'req_header_bytes' => :'req_header_bytes',
713
- :'resp_body_bytes' => :'resp_body_bytes',
714
- :'resp_header_bytes' => :'resp_header_bytes',
715
- :'bereq_body_bytes' => :'bereq_body_bytes',
716
- :'bereq_header_bytes' => :'bereq_header_bytes',
717
- :'uncacheable' => :'uncacheable',
718
- :'pipe' => :'pipe',
719
- :'synth' => :'synth',
720
- :'tls' => :'tls',
721
- :'tls_v10' => :'tls_v10',
722
- :'tls_v11' => :'tls_v11',
723
- :'tls_v12' => :'tls_v12',
724
- :'tls_v13' => :'tls_v13',
725
- :'edge_requests' => :'edge_requests',
726
- :'edge_resp_header_bytes' => :'edge_resp_header_bytes',
727
- :'edge_resp_body_bytes' => :'edge_resp_body_bytes',
728
- :'edge_hit_requests' => :'edge_hit_requests',
729
- :'edge_miss_requests' => :'edge_miss_requests',
730
- :'origin_fetches' => :'origin_fetches',
731
- :'origin_fetch_header_bytes' => :'origin_fetch_header_bytes',
732
- :'origin_fetch_body_bytes' => :'origin_fetch_body_bytes',
733
- :'origin_fetch_resp_header_bytes' => :'origin_fetch_resp_header_bytes',
734
- :'origin_fetch_resp_body_bytes' => :'origin_fetch_resp_body_bytes',
735
- :'origin_revalidations' => :'origin_revalidations',
736
- :'origin_cache_fetches' => :'origin_cache_fetches',
737
- :'shield' => :'shield',
738
- :'shield_resp_body_bytes' => :'shield_resp_body_bytes',
739
- :'shield_resp_header_bytes' => :'shield_resp_header_bytes',
740
- :'shield_fetches' => :'shield_fetches',
741
- :'shield_fetch_header_bytes' => :'shield_fetch_header_bytes',
742
- :'shield_fetch_body_bytes' => :'shield_fetch_body_bytes',
743
- :'shield_fetch_resp_header_bytes' => :'shield_fetch_resp_header_bytes',
744
- :'shield_fetch_resp_body_bytes' => :'shield_fetch_resp_body_bytes',
745
- :'shield_revalidations' => :'shield_revalidations',
746
- :'shield_cache_fetches' => :'shield_cache_fetches',
747
- :'ipv6' => :'ipv6',
748
- :'otfp' => :'otfp',
749
- :'otfp_resp_body_bytes' => :'otfp_resp_body_bytes',
750
- :'otfp_resp_header_bytes' => :'otfp_resp_header_bytes',
751
- :'otfp_shield_resp_body_bytes' => :'otfp_shield_resp_body_bytes',
752
- :'otfp_shield_resp_header_bytes' => :'otfp_shield_resp_header_bytes',
753
- :'otfp_manifests' => :'otfp_manifests',
754
- :'otfp_deliver_time' => :'otfp_deliver_time',
755
- :'otfp_shield_time' => :'otfp_shield_time',
756
- :'video' => :'video',
757
- :'pci' => :'pci',
758
- :'log' => :'log',
759
- :'log_bytes' => :'log_bytes',
760
- :'http2' => :'http2',
761
- :'http3' => :'http3',
762
- :'waf_logged' => :'waf_logged',
763
- :'waf_blocked' => :'waf_blocked',
764
- :'waf_passed' => :'waf_passed',
765
- :'attack_req_body_bytes' => :'attack_req_body_bytes',
766
- :'attack_req_header_bytes' => :'attack_req_header_bytes',
767
- :'attack_logged_req_body_bytes' => :'attack_logged_req_body_bytes',
768
- :'attack_logged_req_header_bytes' => :'attack_logged_req_header_bytes',
769
- :'attack_blocked_req_body_bytes' => :'attack_blocked_req_body_bytes',
770
- :'attack_blocked_req_header_bytes' => :'attack_blocked_req_header_bytes',
771
- :'attack_passed_req_body_bytes' => :'attack_passed_req_body_bytes',
772
- :'attack_passed_req_header_bytes' => :'attack_passed_req_header_bytes',
773
- :'attack_resp_synth_bytes' => :'attack_resp_synth_bytes',
774
- :'imgopto' => :'imgopto',
775
- :'imgopto_resp_body_bytes' => :'imgopto_resp_body_bytes',
776
- :'imgopto_resp_header_bytes' => :'imgopto_resp_header_bytes',
777
- :'imgopto_shield_resp_body_bytes' => :'imgopto_shield_resp_body_bytes',
778
- :'imgopto_shield_resp_header_bytes' => :'imgopto_shield_resp_header_bytes',
779
- :'imgvideo' => :'imgvideo',
780
- :'imgvideo_frames' => :'imgvideo_frames',
781
- :'imgvideo_resp_header_bytes' => :'imgvideo_resp_header_bytes',
782
- :'imgvideo_resp_body_bytes' => :'imgvideo_resp_body_bytes',
783
- :'imgvideo_shield_resp_header_bytes' => :'imgvideo_shield_resp_header_bytes',
784
- :'imgvideo_shield_resp_body_bytes' => :'imgvideo_shield_resp_body_bytes',
785
- :'imgvideo_shield' => :'imgvideo_shield',
786
- :'imgvideo_shield_frames' => :'imgvideo_shield_frames',
787
- :'status_200' => :'status_200',
788
- :'status_204' => :'status_204',
789
- :'status_206' => :'status_206',
790
- :'status_301' => :'status_301',
791
- :'status_302' => :'status_302',
792
- :'status_304' => :'status_304',
793
- :'status_400' => :'status_400',
794
- :'status_401' => :'status_401',
795
- :'status_403' => :'status_403',
796
- :'status_404' => :'status_404',
797
- :'status_406' => :'status_406',
798
- :'status_416' => :'status_416',
799
- :'status_429' => :'status_429',
800
- :'status_500' => :'status_500',
801
- :'status_501' => :'status_501',
802
- :'status_502' => :'status_502',
803
- :'status_503' => :'status_503',
804
- :'status_504' => :'status_504',
805
- :'status_505' => :'status_505',
806
- :'status_1xx' => :'status_1xx',
807
- :'status_2xx' => :'status_2xx',
808
- :'status_3xx' => :'status_3xx',
809
- :'status_4xx' => :'status_4xx',
810
- :'status_5xx' => :'status_5xx',
811
- :'object_size_1k' => :'object_size_1k',
812
- :'object_size_10k' => :'object_size_10k',
813
- :'object_size_100k' => :'object_size_100k',
814
- :'object_size_1m' => :'object_size_1m',
815
- :'object_size_10m' => :'object_size_10m',
816
- :'object_size_100m' => :'object_size_100m',
817
- :'object_size_1g' => :'object_size_1g',
818
- :'recv_sub_time' => :'recv_sub_time',
819
- :'recv_sub_count' => :'recv_sub_count',
820
- :'hash_sub_time' => :'hash_sub_time',
821
- :'hash_sub_count' => :'hash_sub_count',
822
- :'miss_sub_time' => :'miss_sub_time',
823
- :'miss_sub_count' => :'miss_sub_count',
824
- :'fetch_sub_time' => :'fetch_sub_time',
825
- :'fetch_sub_count' => :'fetch_sub_count',
826
- :'pass_sub_time' => :'pass_sub_time',
827
- :'pass_sub_count' => :'pass_sub_count',
828
- :'pipe_sub_time' => :'pipe_sub_time',
829
- :'pipe_sub_count' => :'pipe_sub_count',
830
- :'deliver_sub_time' => :'deliver_sub_time',
831
- :'deliver_sub_count' => :'deliver_sub_count',
832
- :'error_sub_time' => :'error_sub_time',
833
- :'error_sub_count' => :'error_sub_count',
834
- :'hit_sub_time' => :'hit_sub_time',
835
- :'hit_sub_count' => :'hit_sub_count',
836
- :'prehash_sub_time' => :'prehash_sub_time',
837
- :'prehash_sub_count' => :'prehash_sub_count',
838
- :'predeliver_sub_time' => :'predeliver_sub_time',
839
- :'predeliver_sub_count' => :'predeliver_sub_count',
840
- :'tls_handshake_sent_bytes' => :'tls_handshake_sent_bytes',
841
- :'hit_resp_body_bytes' => :'hit_resp_body_bytes',
842
- :'miss_resp_body_bytes' => :'miss_resp_body_bytes',
843
- :'pass_resp_body_bytes' => :'pass_resp_body_bytes',
844
- :'segblock_origin_fetches' => :'segblock_origin_fetches',
845
- :'segblock_shield_fetches' => :'segblock_shield_fetches',
846
- :'compute_requests' => :'compute_requests',
847
- :'compute_request_time_ms' => :'compute_request_time_ms',
848
- :'compute_request_time_billed_ms' => :'compute_request_time_billed_ms',
849
- :'compute_ram_used' => :'compute_ram_used',
850
- :'compute_execution_time_ms' => :'compute_execution_time_ms',
851
- :'compute_req_header_bytes' => :'compute_req_header_bytes',
852
- :'compute_req_body_bytes' => :'compute_req_body_bytes',
853
- :'compute_resp_header_bytes' => :'compute_resp_header_bytes',
854
- :'compute_resp_body_bytes' => :'compute_resp_body_bytes',
855
- :'compute_resp_status_1xx' => :'compute_resp_status_1xx',
856
- :'compute_resp_status_2xx' => :'compute_resp_status_2xx',
857
- :'compute_resp_status_3xx' => :'compute_resp_status_3xx',
858
- :'compute_resp_status_4xx' => :'compute_resp_status_4xx',
859
- :'compute_resp_status_5xx' => :'compute_resp_status_5xx',
860
- :'compute_bereq_header_bytes' => :'compute_bereq_header_bytes',
861
- :'compute_bereq_body_bytes' => :'compute_bereq_body_bytes',
862
- :'compute_beresp_header_bytes' => :'compute_beresp_header_bytes',
863
- :'compute_beresp_body_bytes' => :'compute_beresp_body_bytes',
864
- :'compute_bereqs' => :'compute_bereqs',
865
- :'compute_bereq_errors' => :'compute_bereq_errors',
866
- :'compute_resource_limit_exceeded' => :'compute_resource_limit_exceeded',
867
- :'compute_heap_limit_exceeded' => :'compute_heap_limit_exceeded',
868
- :'compute_stack_limit_exceeded' => :'compute_stack_limit_exceeded',
869
- :'compute_globals_limit_exceeded' => :'compute_globals_limit_exceeded',
870
- :'compute_guest_errors' => :'compute_guest_errors',
871
- :'compute_runtime_errors' => :'compute_runtime_errors',
872
- :'edge_hit_resp_body_bytes' => :'edge_hit_resp_body_bytes',
873
- :'edge_hit_resp_header_bytes' => :'edge_hit_resp_header_bytes',
874
- :'edge_miss_resp_body_bytes' => :'edge_miss_resp_body_bytes',
875
- :'edge_miss_resp_header_bytes' => :'edge_miss_resp_header_bytes',
876
- :'origin_cache_fetch_resp_body_bytes' => :'origin_cache_fetch_resp_body_bytes',
877
- :'origin_cache_fetch_resp_header_bytes' => :'origin_cache_fetch_resp_header_bytes',
878
- :'shield_hit_requests' => :'shield_hit_requests',
879
- :'shield_miss_requests' => :'shield_miss_requests',
880
- :'shield_hit_resp_header_bytes' => :'shield_hit_resp_header_bytes',
881
- :'shield_hit_resp_body_bytes' => :'shield_hit_resp_body_bytes',
882
- :'shield_miss_resp_header_bytes' => :'shield_miss_resp_header_bytes',
883
- :'shield_miss_resp_body_bytes' => :'shield_miss_resp_body_bytes',
884
- :'websocket_req_header_bytes' => :'websocket_req_header_bytes',
885
- :'websocket_req_body_bytes' => :'websocket_req_body_bytes',
886
- :'websocket_resp_header_bytes' => :'websocket_resp_header_bytes',
887
- :'websocket_resp_body_bytes' => :'websocket_resp_body_bytes',
888
- :'websocket_bereq_header_bytes' => :'websocket_bereq_header_bytes',
889
- :'websocket_bereq_body_bytes' => :'websocket_bereq_body_bytes',
890
- :'websocket_beresp_header_bytes' => :'websocket_beresp_header_bytes',
891
- :'websocket_beresp_body_bytes' => :'websocket_beresp_body_bytes',
892
- :'websocket_conn_time_ms' => :'websocket_conn_time_ms',
893
- :'fanout_recv_publishes' => :'fanout_recv_publishes',
894
- :'fanout_send_publishes' => :'fanout_send_publishes',
895
- :'kv_store_class_a_operations' => :'kv_store_class_a_operations',
896
- :'kv_store_class_b_operations' => :'kv_store_class_b_operations',
897
- :'object_store_class_a_operations' => :'object_store_class_a_operations',
898
- :'object_store_class_b_operations' => :'object_store_class_b_operations',
899
- :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
900
- :'fanout_req_body_bytes' => :'fanout_req_body_bytes',
901
- :'fanout_resp_header_bytes' => :'fanout_resp_header_bytes',
902
- :'fanout_resp_body_bytes' => :'fanout_resp_body_bytes',
903
- :'fanout_bereq_header_bytes' => :'fanout_bereq_header_bytes',
904
- :'fanout_bereq_body_bytes' => :'fanout_bereq_body_bytes',
905
- :'fanout_beresp_header_bytes' => :'fanout_beresp_header_bytes',
906
- :'fanout_beresp_body_bytes' => :'fanout_beresp_body_bytes',
907
- :'fanout_conn_time_ms' => :'fanout_conn_time_ms',
908
- :'ddos_action_limit_streams_connections' => :'ddos_action_limit_streams_connections',
909
- :'ddos_action_limit_streams_requests' => :'ddos_action_limit_streams_requests',
910
- :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
911
- :'ddos_action_tarpit' => :'ddos_action_tarpit',
912
- :'ddos_action_close' => :'ddos_action_close',
913
- :'ddos_action_blackhole' => :'ddos_action_blackhole',
914
- :'bot_challenge_starts' => :'bot_challenge_starts',
915
- :'bot_challenge_complete_tokens_passed' => :'bot_challenge_complete_tokens_passed',
916
- :'bot_challenge_complete_tokens_failed' => :'bot_challenge_complete_tokens_failed',
917
- :'bot_challenge_complete_tokens_checked' => :'bot_challenge_complete_tokens_checked',
918
- :'bot_challenge_complete_tokens_disabled' => :'bot_challenge_complete_tokens_disabled',
919
- :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued',
920
- :'bot_challenges_issued' => :'bot_challenges_issued',
921
- :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
922
- :'bot_challenges_failed' => :'bot_challenges_failed',
923
- :'service_id' => :'service_id',
924
- :'start_time' => :'start_time'
925
- }
926
- end
927
-
928
- # Returns all the JSON keys this model knows about
929
- def self.acceptable_attributes
930
- attribute_map.values
931
- end
932
-
933
- # Attribute type mapping.
934
- def self.fastly_types
935
- {
936
- :'requests' => :'Integer',
937
- :'hits' => :'Integer',
938
- :'hits_time' => :'Float',
939
- :'miss' => :'Integer',
940
- :'miss_time' => :'Float',
941
- :'pass' => :'Integer',
942
- :'pass_time' => :'Float',
943
- :'errors' => :'Integer',
944
- :'restarts' => :'Integer',
945
- :'hit_ratio' => :'Float',
946
- :'bandwidth' => :'Integer',
947
- :'body_size' => :'Integer',
948
- :'header_size' => :'Integer',
949
- :'req_body_bytes' => :'Integer',
950
- :'req_header_bytes' => :'Integer',
951
- :'resp_body_bytes' => :'Integer',
952
- :'resp_header_bytes' => :'Integer',
953
- :'bereq_body_bytes' => :'Integer',
954
- :'bereq_header_bytes' => :'Integer',
955
- :'uncacheable' => :'Integer',
956
- :'pipe' => :'Integer',
957
- :'synth' => :'Integer',
958
- :'tls' => :'Integer',
959
- :'tls_v10' => :'Integer',
960
- :'tls_v11' => :'Integer',
961
- :'tls_v12' => :'Integer',
962
- :'tls_v13' => :'Integer',
963
- :'edge_requests' => :'Integer',
964
- :'edge_resp_header_bytes' => :'Integer',
965
- :'edge_resp_body_bytes' => :'Integer',
966
- :'edge_hit_requests' => :'Integer',
967
- :'edge_miss_requests' => :'Integer',
968
- :'origin_fetches' => :'Integer',
969
- :'origin_fetch_header_bytes' => :'Integer',
970
- :'origin_fetch_body_bytes' => :'Integer',
971
- :'origin_fetch_resp_header_bytes' => :'Integer',
972
- :'origin_fetch_resp_body_bytes' => :'Integer',
973
- :'origin_revalidations' => :'Integer',
974
- :'origin_cache_fetches' => :'Integer',
975
- :'shield' => :'Integer',
976
- :'shield_resp_body_bytes' => :'Integer',
977
- :'shield_resp_header_bytes' => :'Integer',
978
- :'shield_fetches' => :'Integer',
979
- :'shield_fetch_header_bytes' => :'Integer',
980
- :'shield_fetch_body_bytes' => :'Integer',
981
- :'shield_fetch_resp_header_bytes' => :'Integer',
982
- :'shield_fetch_resp_body_bytes' => :'Integer',
983
- :'shield_revalidations' => :'Integer',
984
- :'shield_cache_fetches' => :'Integer',
985
- :'ipv6' => :'Integer',
986
- :'otfp' => :'Integer',
987
- :'otfp_resp_body_bytes' => :'Integer',
988
- :'otfp_resp_header_bytes' => :'Integer',
989
- :'otfp_shield_resp_body_bytes' => :'Integer',
990
- :'otfp_shield_resp_header_bytes' => :'Integer',
991
- :'otfp_manifests' => :'Integer',
992
- :'otfp_deliver_time' => :'Float',
993
- :'otfp_shield_time' => :'Float',
994
- :'video' => :'Integer',
995
- :'pci' => :'Integer',
996
- :'log' => :'Integer',
997
- :'log_bytes' => :'Integer',
998
- :'http2' => :'Integer',
999
- :'http3' => :'Integer',
1000
- :'waf_logged' => :'Integer',
1001
- :'waf_blocked' => :'Integer',
1002
- :'waf_passed' => :'Integer',
1003
- :'attack_req_body_bytes' => :'Integer',
1004
- :'attack_req_header_bytes' => :'Integer',
1005
- :'attack_logged_req_body_bytes' => :'Integer',
1006
- :'attack_logged_req_header_bytes' => :'Integer',
1007
- :'attack_blocked_req_body_bytes' => :'Integer',
1008
- :'attack_blocked_req_header_bytes' => :'Integer',
1009
- :'attack_passed_req_body_bytes' => :'Integer',
1010
- :'attack_passed_req_header_bytes' => :'Integer',
1011
- :'attack_resp_synth_bytes' => :'Integer',
1012
- :'imgopto' => :'Integer',
1013
- :'imgopto_resp_body_bytes' => :'Integer',
1014
- :'imgopto_resp_header_bytes' => :'Integer',
1015
- :'imgopto_shield_resp_body_bytes' => :'Integer',
1016
- :'imgopto_shield_resp_header_bytes' => :'Integer',
1017
- :'imgvideo' => :'Integer',
1018
- :'imgvideo_frames' => :'Integer',
1019
- :'imgvideo_resp_header_bytes' => :'Integer',
1020
- :'imgvideo_resp_body_bytes' => :'Integer',
1021
- :'imgvideo_shield_resp_header_bytes' => :'Integer',
1022
- :'imgvideo_shield_resp_body_bytes' => :'Integer',
1023
- :'imgvideo_shield' => :'Integer',
1024
- :'imgvideo_shield_frames' => :'Integer',
1025
- :'status_200' => :'Integer',
1026
- :'status_204' => :'Integer',
1027
- :'status_206' => :'Integer',
1028
- :'status_301' => :'Integer',
1029
- :'status_302' => :'Integer',
1030
- :'status_304' => :'Integer',
1031
- :'status_400' => :'Integer',
1032
- :'status_401' => :'Integer',
1033
- :'status_403' => :'Integer',
1034
- :'status_404' => :'Integer',
1035
- :'status_406' => :'Integer',
1036
- :'status_416' => :'Integer',
1037
- :'status_429' => :'Integer',
1038
- :'status_500' => :'Integer',
1039
- :'status_501' => :'Integer',
1040
- :'status_502' => :'Integer',
1041
- :'status_503' => :'Integer',
1042
- :'status_504' => :'Integer',
1043
- :'status_505' => :'Integer',
1044
- :'status_1xx' => :'Integer',
1045
- :'status_2xx' => :'Integer',
1046
- :'status_3xx' => :'Integer',
1047
- :'status_4xx' => :'Integer',
1048
- :'status_5xx' => :'Integer',
1049
- :'object_size_1k' => :'Integer',
1050
- :'object_size_10k' => :'Integer',
1051
- :'object_size_100k' => :'Integer',
1052
- :'object_size_1m' => :'Integer',
1053
- :'object_size_10m' => :'Integer',
1054
- :'object_size_100m' => :'Integer',
1055
- :'object_size_1g' => :'Integer',
1056
- :'recv_sub_time' => :'Float',
1057
- :'recv_sub_count' => :'Integer',
1058
- :'hash_sub_time' => :'Float',
1059
- :'hash_sub_count' => :'Integer',
1060
- :'miss_sub_time' => :'Float',
1061
- :'miss_sub_count' => :'Integer',
1062
- :'fetch_sub_time' => :'Float',
1063
- :'fetch_sub_count' => :'Integer',
1064
- :'pass_sub_time' => :'Float',
1065
- :'pass_sub_count' => :'Integer',
1066
- :'pipe_sub_time' => :'Float',
1067
- :'pipe_sub_count' => :'Integer',
1068
- :'deliver_sub_time' => :'Float',
1069
- :'deliver_sub_count' => :'Integer',
1070
- :'error_sub_time' => :'Float',
1071
- :'error_sub_count' => :'Integer',
1072
- :'hit_sub_time' => :'Float',
1073
- :'hit_sub_count' => :'Integer',
1074
- :'prehash_sub_time' => :'Float',
1075
- :'prehash_sub_count' => :'Integer',
1076
- :'predeliver_sub_time' => :'Float',
1077
- :'predeliver_sub_count' => :'Integer',
1078
- :'tls_handshake_sent_bytes' => :'Integer',
1079
- :'hit_resp_body_bytes' => :'Integer',
1080
- :'miss_resp_body_bytes' => :'Integer',
1081
- :'pass_resp_body_bytes' => :'Integer',
1082
- :'segblock_origin_fetches' => :'Integer',
1083
- :'segblock_shield_fetches' => :'Integer',
1084
- :'compute_requests' => :'Integer',
1085
- :'compute_request_time_ms' => :'Float',
1086
- :'compute_request_time_billed_ms' => :'Float',
1087
- :'compute_ram_used' => :'Integer',
1088
- :'compute_execution_time_ms' => :'Float',
1089
- :'compute_req_header_bytes' => :'Integer',
1090
- :'compute_req_body_bytes' => :'Integer',
1091
- :'compute_resp_header_bytes' => :'Integer',
1092
- :'compute_resp_body_bytes' => :'Integer',
1093
- :'compute_resp_status_1xx' => :'Integer',
1094
- :'compute_resp_status_2xx' => :'Integer',
1095
- :'compute_resp_status_3xx' => :'Integer',
1096
- :'compute_resp_status_4xx' => :'Integer',
1097
- :'compute_resp_status_5xx' => :'Integer',
1098
- :'compute_bereq_header_bytes' => :'Integer',
1099
- :'compute_bereq_body_bytes' => :'Integer',
1100
- :'compute_beresp_header_bytes' => :'Integer',
1101
- :'compute_beresp_body_bytes' => :'Integer',
1102
- :'compute_bereqs' => :'Integer',
1103
- :'compute_bereq_errors' => :'Integer',
1104
- :'compute_resource_limit_exceeded' => :'Integer',
1105
- :'compute_heap_limit_exceeded' => :'Integer',
1106
- :'compute_stack_limit_exceeded' => :'Integer',
1107
- :'compute_globals_limit_exceeded' => :'Integer',
1108
- :'compute_guest_errors' => :'Integer',
1109
- :'compute_runtime_errors' => :'Integer',
1110
- :'edge_hit_resp_body_bytes' => :'Integer',
1111
- :'edge_hit_resp_header_bytes' => :'Integer',
1112
- :'edge_miss_resp_body_bytes' => :'Integer',
1113
- :'edge_miss_resp_header_bytes' => :'Integer',
1114
- :'origin_cache_fetch_resp_body_bytes' => :'Integer',
1115
- :'origin_cache_fetch_resp_header_bytes' => :'Integer',
1116
- :'shield_hit_requests' => :'Integer',
1117
- :'shield_miss_requests' => :'Integer',
1118
- :'shield_hit_resp_header_bytes' => :'Integer',
1119
- :'shield_hit_resp_body_bytes' => :'Integer',
1120
- :'shield_miss_resp_header_bytes' => :'Integer',
1121
- :'shield_miss_resp_body_bytes' => :'Integer',
1122
- :'websocket_req_header_bytes' => :'Integer',
1123
- :'websocket_req_body_bytes' => :'Integer',
1124
- :'websocket_resp_header_bytes' => :'Integer',
1125
- :'websocket_resp_body_bytes' => :'Integer',
1126
- :'websocket_bereq_header_bytes' => :'Integer',
1127
- :'websocket_bereq_body_bytes' => :'Integer',
1128
- :'websocket_beresp_header_bytes' => :'Integer',
1129
- :'websocket_beresp_body_bytes' => :'Integer',
1130
- :'websocket_conn_time_ms' => :'Integer',
1131
- :'fanout_recv_publishes' => :'Integer',
1132
- :'fanout_send_publishes' => :'Integer',
1133
- :'kv_store_class_a_operations' => :'Integer',
1134
- :'kv_store_class_b_operations' => :'Integer',
1135
- :'object_store_class_a_operations' => :'Integer',
1136
- :'object_store_class_b_operations' => :'Integer',
1137
- :'fanout_req_header_bytes' => :'Integer',
1138
- :'fanout_req_body_bytes' => :'Integer',
1139
- :'fanout_resp_header_bytes' => :'Integer',
1140
- :'fanout_resp_body_bytes' => :'Integer',
1141
- :'fanout_bereq_header_bytes' => :'Integer',
1142
- :'fanout_bereq_body_bytes' => :'Integer',
1143
- :'fanout_beresp_header_bytes' => :'Integer',
1144
- :'fanout_beresp_body_bytes' => :'Integer',
1145
- :'fanout_conn_time_ms' => :'Integer',
1146
- :'ddos_action_limit_streams_connections' => :'Integer',
1147
- :'ddos_action_limit_streams_requests' => :'Integer',
1148
- :'ddos_action_tarpit_accept' => :'Integer',
1149
- :'ddos_action_tarpit' => :'Integer',
1150
- :'ddos_action_close' => :'Integer',
1151
- :'ddos_action_blackhole' => :'Integer',
1152
- :'bot_challenge_starts' => :'Integer',
1153
- :'bot_challenge_complete_tokens_passed' => :'Integer',
1154
- :'bot_challenge_complete_tokens_failed' => :'Integer',
1155
- :'bot_challenge_complete_tokens_checked' => :'Integer',
1156
- :'bot_challenge_complete_tokens_disabled' => :'Integer',
1157
- :'bot_challenge_complete_tokens_issued' => :'Integer',
1158
- :'bot_challenges_issued' => :'Integer',
1159
- :'bot_challenges_succeeded' => :'Integer',
1160
- :'bot_challenges_failed' => :'Integer',
1161
- :'service_id' => :'ReadOnlyIdService',
1162
- :'start_time' => :'Integer'
1163
- }
1164
- end
1165
-
1166
- # List of attributes with nullable: true
1167
- def self.fastly_nullable
1168
- Set.new([
1169
- :'hit_ratio',
1170
- ])
1171
- end
1172
-
1173
- # List of class defined in allOf (OpenAPI v3)
1174
- def self.fastly_all_of
1175
- [
1176
- :'HistoricalFieldResultsAttributesAdditional',
1177
- :'Results'
1178
- ]
1179
- end
1180
-
1181
- # Initializes the object
1182
- # @param [Hash] attributes Model attributes in the form of hash
1183
- def initialize(attributes = {})
1184
- if (!attributes.is_a?(Hash))
1185
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalFieldResultsAttributes` initialize method"
1186
- end
1187
-
1188
- # check to see if the attribute exists and convert string to symbol for hash key
1189
- attributes = attributes.each_with_object({}) { |(k, v), h|
1190
- if (!self.class.attribute_map.key?(k.to_sym))
1191
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalFieldResultsAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
1192
- end
1193
- h[k.to_sym] = v
1194
- }
1195
-
1196
- if attributes.key?(:'requests')
1197
- self.requests = attributes[:'requests']
1198
- end
1199
-
1200
- if attributes.key?(:'hits')
1201
- self.hits = attributes[:'hits']
1202
- end
1203
-
1204
- if attributes.key?(:'hits_time')
1205
- self.hits_time = attributes[:'hits_time']
1206
- end
1207
-
1208
- if attributes.key?(:'miss')
1209
- self.miss = attributes[:'miss']
1210
- end
1211
-
1212
- if attributes.key?(:'miss_time')
1213
- self.miss_time = attributes[:'miss_time']
1214
- end
1215
-
1216
- if attributes.key?(:'pass')
1217
- self.pass = attributes[:'pass']
1218
- end
1219
-
1220
- if attributes.key?(:'pass_time')
1221
- self.pass_time = attributes[:'pass_time']
1222
- end
1223
-
1224
- if attributes.key?(:'errors')
1225
- self.errors = attributes[:'errors']
1226
- end
1227
-
1228
- if attributes.key?(:'restarts')
1229
- self.restarts = attributes[:'restarts']
1230
- end
1231
-
1232
- if attributes.key?(:'hit_ratio')
1233
- self.hit_ratio = attributes[:'hit_ratio']
1234
- end
1235
-
1236
- if attributes.key?(:'bandwidth')
1237
- self.bandwidth = attributes[:'bandwidth']
1238
- end
1239
-
1240
- if attributes.key?(:'body_size')
1241
- self.body_size = attributes[:'body_size']
1242
- end
1243
-
1244
- if attributes.key?(:'header_size')
1245
- self.header_size = attributes[:'header_size']
1246
- end
1247
-
1248
- if attributes.key?(:'req_body_bytes')
1249
- self.req_body_bytes = attributes[:'req_body_bytes']
1250
- end
1251
-
1252
- if attributes.key?(:'req_header_bytes')
1253
- self.req_header_bytes = attributes[:'req_header_bytes']
1254
- end
1255
-
1256
- if attributes.key?(:'resp_body_bytes')
1257
- self.resp_body_bytes = attributes[:'resp_body_bytes']
1258
- end
1259
-
1260
- if attributes.key?(:'resp_header_bytes')
1261
- self.resp_header_bytes = attributes[:'resp_header_bytes']
1262
- end
1263
-
1264
- if attributes.key?(:'bereq_body_bytes')
1265
- self.bereq_body_bytes = attributes[:'bereq_body_bytes']
1266
- end
1267
-
1268
- if attributes.key?(:'bereq_header_bytes')
1269
- self.bereq_header_bytes = attributes[:'bereq_header_bytes']
1270
- end
1271
-
1272
- if attributes.key?(:'uncacheable')
1273
- self.uncacheable = attributes[:'uncacheable']
1274
- end
1275
-
1276
- if attributes.key?(:'pipe')
1277
- self.pipe = attributes[:'pipe']
1278
- end
1279
-
1280
- if attributes.key?(:'synth')
1281
- self.synth = attributes[:'synth']
1282
- end
1283
-
1284
- if attributes.key?(:'tls')
1285
- self.tls = attributes[:'tls']
1286
- end
1287
-
1288
- if attributes.key?(:'tls_v10')
1289
- self.tls_v10 = attributes[:'tls_v10']
1290
- end
1291
-
1292
- if attributes.key?(:'tls_v11')
1293
- self.tls_v11 = attributes[:'tls_v11']
1294
- end
1295
-
1296
- if attributes.key?(:'tls_v12')
1297
- self.tls_v12 = attributes[:'tls_v12']
1298
- end
1299
-
1300
- if attributes.key?(:'tls_v13')
1301
- self.tls_v13 = attributes[:'tls_v13']
1302
- end
1303
-
1304
- if attributes.key?(:'edge_requests')
1305
- self.edge_requests = attributes[:'edge_requests']
1306
- end
1307
-
1308
- if attributes.key?(:'edge_resp_header_bytes')
1309
- self.edge_resp_header_bytes = attributes[:'edge_resp_header_bytes']
1310
- end
1311
-
1312
- if attributes.key?(:'edge_resp_body_bytes')
1313
- self.edge_resp_body_bytes = attributes[:'edge_resp_body_bytes']
1314
- end
1315
-
1316
- if attributes.key?(:'edge_hit_requests')
1317
- self.edge_hit_requests = attributes[:'edge_hit_requests']
1318
- end
1319
-
1320
- if attributes.key?(:'edge_miss_requests')
1321
- self.edge_miss_requests = attributes[:'edge_miss_requests']
1322
- end
1323
-
1324
- if attributes.key?(:'origin_fetches')
1325
- self.origin_fetches = attributes[:'origin_fetches']
1326
- end
1327
-
1328
- if attributes.key?(:'origin_fetch_header_bytes')
1329
- self.origin_fetch_header_bytes = attributes[:'origin_fetch_header_bytes']
1330
- end
1331
-
1332
- if attributes.key?(:'origin_fetch_body_bytes')
1333
- self.origin_fetch_body_bytes = attributes[:'origin_fetch_body_bytes']
1334
- end
1335
-
1336
- if attributes.key?(:'origin_fetch_resp_header_bytes')
1337
- self.origin_fetch_resp_header_bytes = attributes[:'origin_fetch_resp_header_bytes']
1338
- end
1339
-
1340
- if attributes.key?(:'origin_fetch_resp_body_bytes')
1341
- self.origin_fetch_resp_body_bytes = attributes[:'origin_fetch_resp_body_bytes']
1342
- end
1343
-
1344
- if attributes.key?(:'origin_revalidations')
1345
- self.origin_revalidations = attributes[:'origin_revalidations']
1346
- end
1347
-
1348
- if attributes.key?(:'origin_cache_fetches')
1349
- self.origin_cache_fetches = attributes[:'origin_cache_fetches']
1350
- end
1351
-
1352
- if attributes.key?(:'shield')
1353
- self.shield = attributes[:'shield']
1354
- end
1355
-
1356
- if attributes.key?(:'shield_resp_body_bytes')
1357
- self.shield_resp_body_bytes = attributes[:'shield_resp_body_bytes']
1358
- end
1359
-
1360
- if attributes.key?(:'shield_resp_header_bytes')
1361
- self.shield_resp_header_bytes = attributes[:'shield_resp_header_bytes']
1362
- end
1363
-
1364
- if attributes.key?(:'shield_fetches')
1365
- self.shield_fetches = attributes[:'shield_fetches']
1366
- end
1367
-
1368
- if attributes.key?(:'shield_fetch_header_bytes')
1369
- self.shield_fetch_header_bytes = attributes[:'shield_fetch_header_bytes']
1370
- end
1371
-
1372
- if attributes.key?(:'shield_fetch_body_bytes')
1373
- self.shield_fetch_body_bytes = attributes[:'shield_fetch_body_bytes']
1374
- end
1375
-
1376
- if attributes.key?(:'shield_fetch_resp_header_bytes')
1377
- self.shield_fetch_resp_header_bytes = attributes[:'shield_fetch_resp_header_bytes']
1378
- end
1379
-
1380
- if attributes.key?(:'shield_fetch_resp_body_bytes')
1381
- self.shield_fetch_resp_body_bytes = attributes[:'shield_fetch_resp_body_bytes']
1382
- end
1383
-
1384
- if attributes.key?(:'shield_revalidations')
1385
- self.shield_revalidations = attributes[:'shield_revalidations']
1386
- end
1387
-
1388
- if attributes.key?(:'shield_cache_fetches')
1389
- self.shield_cache_fetches = attributes[:'shield_cache_fetches']
1390
- end
1391
-
1392
- if attributes.key?(:'ipv6')
1393
- self.ipv6 = attributes[:'ipv6']
1394
- end
1395
-
1396
- if attributes.key?(:'otfp')
1397
- self.otfp = attributes[:'otfp']
1398
- end
1399
-
1400
- if attributes.key?(:'otfp_resp_body_bytes')
1401
- self.otfp_resp_body_bytes = attributes[:'otfp_resp_body_bytes']
1402
- end
1403
-
1404
- if attributes.key?(:'otfp_resp_header_bytes')
1405
- self.otfp_resp_header_bytes = attributes[:'otfp_resp_header_bytes']
1406
- end
1407
-
1408
- if attributes.key?(:'otfp_shield_resp_body_bytes')
1409
- self.otfp_shield_resp_body_bytes = attributes[:'otfp_shield_resp_body_bytes']
1410
- end
1411
-
1412
- if attributes.key?(:'otfp_shield_resp_header_bytes')
1413
- self.otfp_shield_resp_header_bytes = attributes[:'otfp_shield_resp_header_bytes']
1414
- end
1415
-
1416
- if attributes.key?(:'otfp_manifests')
1417
- self.otfp_manifests = attributes[:'otfp_manifests']
1418
- end
1419
-
1420
- if attributes.key?(:'otfp_deliver_time')
1421
- self.otfp_deliver_time = attributes[:'otfp_deliver_time']
1422
- end
1423
-
1424
- if attributes.key?(:'otfp_shield_time')
1425
- self.otfp_shield_time = attributes[:'otfp_shield_time']
1426
- end
1427
-
1428
- if attributes.key?(:'video')
1429
- self.video = attributes[:'video']
1430
- end
1431
-
1432
- if attributes.key?(:'pci')
1433
- self.pci = attributes[:'pci']
1434
- end
1435
-
1436
- if attributes.key?(:'log')
1437
- self.log = attributes[:'log']
1438
- end
1439
-
1440
- if attributes.key?(:'log_bytes')
1441
- self.log_bytes = attributes[:'log_bytes']
1442
- end
1443
-
1444
- if attributes.key?(:'http2')
1445
- self.http2 = attributes[:'http2']
1446
- end
1447
-
1448
- if attributes.key?(:'http3')
1449
- self.http3 = attributes[:'http3']
1450
- end
1451
-
1452
- if attributes.key?(:'waf_logged')
1453
- self.waf_logged = attributes[:'waf_logged']
1454
- end
1455
-
1456
- if attributes.key?(:'waf_blocked')
1457
- self.waf_blocked = attributes[:'waf_blocked']
1458
- end
1459
-
1460
- if attributes.key?(:'waf_passed')
1461
- self.waf_passed = attributes[:'waf_passed']
1462
- end
1463
-
1464
- if attributes.key?(:'attack_req_body_bytes')
1465
- self.attack_req_body_bytes = attributes[:'attack_req_body_bytes']
1466
- end
1467
-
1468
- if attributes.key?(:'attack_req_header_bytes')
1469
- self.attack_req_header_bytes = attributes[:'attack_req_header_bytes']
1470
- end
1471
-
1472
- if attributes.key?(:'attack_logged_req_body_bytes')
1473
- self.attack_logged_req_body_bytes = attributes[:'attack_logged_req_body_bytes']
1474
- end
1475
-
1476
- if attributes.key?(:'attack_logged_req_header_bytes')
1477
- self.attack_logged_req_header_bytes = attributes[:'attack_logged_req_header_bytes']
1478
- end
1479
-
1480
- if attributes.key?(:'attack_blocked_req_body_bytes')
1481
- self.attack_blocked_req_body_bytes = attributes[:'attack_blocked_req_body_bytes']
1482
- end
1483
-
1484
- if attributes.key?(:'attack_blocked_req_header_bytes')
1485
- self.attack_blocked_req_header_bytes = attributes[:'attack_blocked_req_header_bytes']
1486
- end
1487
-
1488
- if attributes.key?(:'attack_passed_req_body_bytes')
1489
- self.attack_passed_req_body_bytes = attributes[:'attack_passed_req_body_bytes']
1490
- end
1491
-
1492
- if attributes.key?(:'attack_passed_req_header_bytes')
1493
- self.attack_passed_req_header_bytes = attributes[:'attack_passed_req_header_bytes']
1494
- end
1495
-
1496
- if attributes.key?(:'attack_resp_synth_bytes')
1497
- self.attack_resp_synth_bytes = attributes[:'attack_resp_synth_bytes']
1498
- end
1499
-
1500
- if attributes.key?(:'imgopto')
1501
- self.imgopto = attributes[:'imgopto']
1502
- end
1503
-
1504
- if attributes.key?(:'imgopto_resp_body_bytes')
1505
- self.imgopto_resp_body_bytes = attributes[:'imgopto_resp_body_bytes']
1506
- end
1507
-
1508
- if attributes.key?(:'imgopto_resp_header_bytes')
1509
- self.imgopto_resp_header_bytes = attributes[:'imgopto_resp_header_bytes']
1510
- end
1511
-
1512
- if attributes.key?(:'imgopto_shield_resp_body_bytes')
1513
- self.imgopto_shield_resp_body_bytes = attributes[:'imgopto_shield_resp_body_bytes']
1514
- end
1515
-
1516
- if attributes.key?(:'imgopto_shield_resp_header_bytes')
1517
- self.imgopto_shield_resp_header_bytes = attributes[:'imgopto_shield_resp_header_bytes']
1518
- end
1519
-
1520
- if attributes.key?(:'imgvideo')
1521
- self.imgvideo = attributes[:'imgvideo']
1522
- end
1523
-
1524
- if attributes.key?(:'imgvideo_frames')
1525
- self.imgvideo_frames = attributes[:'imgvideo_frames']
1526
- end
1527
-
1528
- if attributes.key?(:'imgvideo_resp_header_bytes')
1529
- self.imgvideo_resp_header_bytes = attributes[:'imgvideo_resp_header_bytes']
1530
- end
1531
-
1532
- if attributes.key?(:'imgvideo_resp_body_bytes')
1533
- self.imgvideo_resp_body_bytes = attributes[:'imgvideo_resp_body_bytes']
1534
- end
1535
-
1536
- if attributes.key?(:'imgvideo_shield_resp_header_bytes')
1537
- self.imgvideo_shield_resp_header_bytes = attributes[:'imgvideo_shield_resp_header_bytes']
1538
- end
1539
-
1540
- if attributes.key?(:'imgvideo_shield_resp_body_bytes')
1541
- self.imgvideo_shield_resp_body_bytes = attributes[:'imgvideo_shield_resp_body_bytes']
1542
- end
1543
-
1544
- if attributes.key?(:'imgvideo_shield')
1545
- self.imgvideo_shield = attributes[:'imgvideo_shield']
1546
- end
1547
-
1548
- if attributes.key?(:'imgvideo_shield_frames')
1549
- self.imgvideo_shield_frames = attributes[:'imgvideo_shield_frames']
1550
- end
1551
-
1552
- if attributes.key?(:'status_200')
1553
- self.status_200 = attributes[:'status_200']
1554
- end
1555
-
1556
- if attributes.key?(:'status_204')
1557
- self.status_204 = attributes[:'status_204']
1558
- end
1559
-
1560
- if attributes.key?(:'status_206')
1561
- self.status_206 = attributes[:'status_206']
1562
- end
1563
-
1564
- if attributes.key?(:'status_301')
1565
- self.status_301 = attributes[:'status_301']
1566
- end
1567
-
1568
- if attributes.key?(:'status_302')
1569
- self.status_302 = attributes[:'status_302']
1570
- end
1571
-
1572
- if attributes.key?(:'status_304')
1573
- self.status_304 = attributes[:'status_304']
1574
- end
1575
-
1576
- if attributes.key?(:'status_400')
1577
- self.status_400 = attributes[:'status_400']
1578
- end
1579
-
1580
- if attributes.key?(:'status_401')
1581
- self.status_401 = attributes[:'status_401']
1582
- end
1583
-
1584
- if attributes.key?(:'status_403')
1585
- self.status_403 = attributes[:'status_403']
1586
- end
1587
-
1588
- if attributes.key?(:'status_404')
1589
- self.status_404 = attributes[:'status_404']
1590
- end
1591
-
1592
- if attributes.key?(:'status_406')
1593
- self.status_406 = attributes[:'status_406']
1594
- end
1595
-
1596
- if attributes.key?(:'status_416')
1597
- self.status_416 = attributes[:'status_416']
1598
- end
1599
-
1600
- if attributes.key?(:'status_429')
1601
- self.status_429 = attributes[:'status_429']
1602
- end
1603
-
1604
- if attributes.key?(:'status_500')
1605
- self.status_500 = attributes[:'status_500']
1606
- end
1607
-
1608
- if attributes.key?(:'status_501')
1609
- self.status_501 = attributes[:'status_501']
1610
- end
1611
-
1612
- if attributes.key?(:'status_502')
1613
- self.status_502 = attributes[:'status_502']
1614
- end
1615
-
1616
- if attributes.key?(:'status_503')
1617
- self.status_503 = attributes[:'status_503']
1618
- end
1619
-
1620
- if attributes.key?(:'status_504')
1621
- self.status_504 = attributes[:'status_504']
1622
- end
1623
-
1624
- if attributes.key?(:'status_505')
1625
- self.status_505 = attributes[:'status_505']
1626
- end
1627
-
1628
- if attributes.key?(:'status_1xx')
1629
- self.status_1xx = attributes[:'status_1xx']
1630
- end
1631
-
1632
- if attributes.key?(:'status_2xx')
1633
- self.status_2xx = attributes[:'status_2xx']
1634
- end
1635
-
1636
- if attributes.key?(:'status_3xx')
1637
- self.status_3xx = attributes[:'status_3xx']
1638
- end
1639
-
1640
- if attributes.key?(:'status_4xx')
1641
- self.status_4xx = attributes[:'status_4xx']
1642
- end
1643
-
1644
- if attributes.key?(:'status_5xx')
1645
- self.status_5xx = attributes[:'status_5xx']
1646
- end
1647
-
1648
- if attributes.key?(:'object_size_1k')
1649
- self.object_size_1k = attributes[:'object_size_1k']
1650
- end
1651
-
1652
- if attributes.key?(:'object_size_10k')
1653
- self.object_size_10k = attributes[:'object_size_10k']
1654
- end
1655
-
1656
- if attributes.key?(:'object_size_100k')
1657
- self.object_size_100k = attributes[:'object_size_100k']
1658
- end
1659
-
1660
- if attributes.key?(:'object_size_1m')
1661
- self.object_size_1m = attributes[:'object_size_1m']
1662
- end
1663
-
1664
- if attributes.key?(:'object_size_10m')
1665
- self.object_size_10m = attributes[:'object_size_10m']
1666
- end
1667
-
1668
- if attributes.key?(:'object_size_100m')
1669
- self.object_size_100m = attributes[:'object_size_100m']
1670
- end
1671
-
1672
- if attributes.key?(:'object_size_1g')
1673
- self.object_size_1g = attributes[:'object_size_1g']
1674
- end
1675
-
1676
- if attributes.key?(:'recv_sub_time')
1677
- self.recv_sub_time = attributes[:'recv_sub_time']
1678
- end
1679
-
1680
- if attributes.key?(:'recv_sub_count')
1681
- self.recv_sub_count = attributes[:'recv_sub_count']
1682
- end
1683
-
1684
- if attributes.key?(:'hash_sub_time')
1685
- self.hash_sub_time = attributes[:'hash_sub_time']
1686
- end
1687
-
1688
- if attributes.key?(:'hash_sub_count')
1689
- self.hash_sub_count = attributes[:'hash_sub_count']
1690
- end
1691
-
1692
- if attributes.key?(:'miss_sub_time')
1693
- self.miss_sub_time = attributes[:'miss_sub_time']
1694
- end
1695
-
1696
- if attributes.key?(:'miss_sub_count')
1697
- self.miss_sub_count = attributes[:'miss_sub_count']
1698
- end
1699
-
1700
- if attributes.key?(:'fetch_sub_time')
1701
- self.fetch_sub_time = attributes[:'fetch_sub_time']
1702
- end
1703
-
1704
- if attributes.key?(:'fetch_sub_count')
1705
- self.fetch_sub_count = attributes[:'fetch_sub_count']
1706
- end
1707
-
1708
- if attributes.key?(:'pass_sub_time')
1709
- self.pass_sub_time = attributes[:'pass_sub_time']
1710
- end
1711
-
1712
- if attributes.key?(:'pass_sub_count')
1713
- self.pass_sub_count = attributes[:'pass_sub_count']
1714
- end
1715
-
1716
- if attributes.key?(:'pipe_sub_time')
1717
- self.pipe_sub_time = attributes[:'pipe_sub_time']
1718
- end
1719
-
1720
- if attributes.key?(:'pipe_sub_count')
1721
- self.pipe_sub_count = attributes[:'pipe_sub_count']
1722
- end
1723
-
1724
- if attributes.key?(:'deliver_sub_time')
1725
- self.deliver_sub_time = attributes[:'deliver_sub_time']
1726
- end
1727
-
1728
- if attributes.key?(:'deliver_sub_count')
1729
- self.deliver_sub_count = attributes[:'deliver_sub_count']
1730
- end
1731
-
1732
- if attributes.key?(:'error_sub_time')
1733
- self.error_sub_time = attributes[:'error_sub_time']
1734
- end
1735
-
1736
- if attributes.key?(:'error_sub_count')
1737
- self.error_sub_count = attributes[:'error_sub_count']
1738
- end
1739
-
1740
- if attributes.key?(:'hit_sub_time')
1741
- self.hit_sub_time = attributes[:'hit_sub_time']
1742
- end
1743
-
1744
- if attributes.key?(:'hit_sub_count')
1745
- self.hit_sub_count = attributes[:'hit_sub_count']
1746
- end
1747
-
1748
- if attributes.key?(:'prehash_sub_time')
1749
- self.prehash_sub_time = attributes[:'prehash_sub_time']
1750
- end
1751
-
1752
- if attributes.key?(:'prehash_sub_count')
1753
- self.prehash_sub_count = attributes[:'prehash_sub_count']
1754
- end
1755
-
1756
- if attributes.key?(:'predeliver_sub_time')
1757
- self.predeliver_sub_time = attributes[:'predeliver_sub_time']
1758
- end
1759
-
1760
- if attributes.key?(:'predeliver_sub_count')
1761
- self.predeliver_sub_count = attributes[:'predeliver_sub_count']
1762
- end
1763
-
1764
- if attributes.key?(:'tls_handshake_sent_bytes')
1765
- self.tls_handshake_sent_bytes = attributes[:'tls_handshake_sent_bytes']
1766
- end
1767
-
1768
- if attributes.key?(:'hit_resp_body_bytes')
1769
- self.hit_resp_body_bytes = attributes[:'hit_resp_body_bytes']
1770
- end
1771
-
1772
- if attributes.key?(:'miss_resp_body_bytes')
1773
- self.miss_resp_body_bytes = attributes[:'miss_resp_body_bytes']
1774
- end
1775
-
1776
- if attributes.key?(:'pass_resp_body_bytes')
1777
- self.pass_resp_body_bytes = attributes[:'pass_resp_body_bytes']
1778
- end
1779
-
1780
- if attributes.key?(:'segblock_origin_fetches')
1781
- self.segblock_origin_fetches = attributes[:'segblock_origin_fetches']
1782
- end
1783
-
1784
- if attributes.key?(:'segblock_shield_fetches')
1785
- self.segblock_shield_fetches = attributes[:'segblock_shield_fetches']
1786
- end
1787
-
1788
- if attributes.key?(:'compute_requests')
1789
- self.compute_requests = attributes[:'compute_requests']
1790
- end
1791
-
1792
- if attributes.key?(:'compute_request_time_ms')
1793
- self.compute_request_time_ms = attributes[:'compute_request_time_ms']
1794
- end
1795
-
1796
- if attributes.key?(:'compute_request_time_billed_ms')
1797
- self.compute_request_time_billed_ms = attributes[:'compute_request_time_billed_ms']
1798
- end
1799
-
1800
- if attributes.key?(:'compute_ram_used')
1801
- self.compute_ram_used = attributes[:'compute_ram_used']
1802
- end
1803
-
1804
- if attributes.key?(:'compute_execution_time_ms')
1805
- self.compute_execution_time_ms = attributes[:'compute_execution_time_ms']
1806
- end
1807
-
1808
- if attributes.key?(:'compute_req_header_bytes')
1809
- self.compute_req_header_bytes = attributes[:'compute_req_header_bytes']
1810
- end
1811
-
1812
- if attributes.key?(:'compute_req_body_bytes')
1813
- self.compute_req_body_bytes = attributes[:'compute_req_body_bytes']
1814
- end
1815
-
1816
- if attributes.key?(:'compute_resp_header_bytes')
1817
- self.compute_resp_header_bytes = attributes[:'compute_resp_header_bytes']
1818
- end
1819
-
1820
- if attributes.key?(:'compute_resp_body_bytes')
1821
- self.compute_resp_body_bytes = attributes[:'compute_resp_body_bytes']
1822
- end
1823
-
1824
- if attributes.key?(:'compute_resp_status_1xx')
1825
- self.compute_resp_status_1xx = attributes[:'compute_resp_status_1xx']
1826
- end
1827
-
1828
- if attributes.key?(:'compute_resp_status_2xx')
1829
- self.compute_resp_status_2xx = attributes[:'compute_resp_status_2xx']
1830
- end
1831
-
1832
- if attributes.key?(:'compute_resp_status_3xx')
1833
- self.compute_resp_status_3xx = attributes[:'compute_resp_status_3xx']
1834
- end
1835
-
1836
- if attributes.key?(:'compute_resp_status_4xx')
1837
- self.compute_resp_status_4xx = attributes[:'compute_resp_status_4xx']
1838
- end
1839
-
1840
- if attributes.key?(:'compute_resp_status_5xx')
1841
- self.compute_resp_status_5xx = attributes[:'compute_resp_status_5xx']
1842
- end
1843
-
1844
- if attributes.key?(:'compute_bereq_header_bytes')
1845
- self.compute_bereq_header_bytes = attributes[:'compute_bereq_header_bytes']
1846
- end
1847
-
1848
- if attributes.key?(:'compute_bereq_body_bytes')
1849
- self.compute_bereq_body_bytes = attributes[:'compute_bereq_body_bytes']
1850
- end
1851
-
1852
- if attributes.key?(:'compute_beresp_header_bytes')
1853
- self.compute_beresp_header_bytes = attributes[:'compute_beresp_header_bytes']
1854
- end
1855
-
1856
- if attributes.key?(:'compute_beresp_body_bytes')
1857
- self.compute_beresp_body_bytes = attributes[:'compute_beresp_body_bytes']
1858
- end
1859
-
1860
- if attributes.key?(:'compute_bereqs')
1861
- self.compute_bereqs = attributes[:'compute_bereqs']
1862
- end
1863
-
1864
- if attributes.key?(:'compute_bereq_errors')
1865
- self.compute_bereq_errors = attributes[:'compute_bereq_errors']
1866
- end
1867
-
1868
- if attributes.key?(:'compute_resource_limit_exceeded')
1869
- self.compute_resource_limit_exceeded = attributes[:'compute_resource_limit_exceeded']
1870
- end
1871
-
1872
- if attributes.key?(:'compute_heap_limit_exceeded')
1873
- self.compute_heap_limit_exceeded = attributes[:'compute_heap_limit_exceeded']
1874
- end
1875
-
1876
- if attributes.key?(:'compute_stack_limit_exceeded')
1877
- self.compute_stack_limit_exceeded = attributes[:'compute_stack_limit_exceeded']
1878
- end
1879
-
1880
- if attributes.key?(:'compute_globals_limit_exceeded')
1881
- self.compute_globals_limit_exceeded = attributes[:'compute_globals_limit_exceeded']
1882
- end
1883
-
1884
- if attributes.key?(:'compute_guest_errors')
1885
- self.compute_guest_errors = attributes[:'compute_guest_errors']
1886
- end
1887
-
1888
- if attributes.key?(:'compute_runtime_errors')
1889
- self.compute_runtime_errors = attributes[:'compute_runtime_errors']
1890
- end
1891
-
1892
- if attributes.key?(:'edge_hit_resp_body_bytes')
1893
- self.edge_hit_resp_body_bytes = attributes[:'edge_hit_resp_body_bytes']
1894
- end
1895
-
1896
- if attributes.key?(:'edge_hit_resp_header_bytes')
1897
- self.edge_hit_resp_header_bytes = attributes[:'edge_hit_resp_header_bytes']
1898
- end
1899
-
1900
- if attributes.key?(:'edge_miss_resp_body_bytes')
1901
- self.edge_miss_resp_body_bytes = attributes[:'edge_miss_resp_body_bytes']
1902
- end
1903
-
1904
- if attributes.key?(:'edge_miss_resp_header_bytes')
1905
- self.edge_miss_resp_header_bytes = attributes[:'edge_miss_resp_header_bytes']
1906
- end
1907
-
1908
- if attributes.key?(:'origin_cache_fetch_resp_body_bytes')
1909
- self.origin_cache_fetch_resp_body_bytes = attributes[:'origin_cache_fetch_resp_body_bytes']
1910
- end
1911
-
1912
- if attributes.key?(:'origin_cache_fetch_resp_header_bytes')
1913
- self.origin_cache_fetch_resp_header_bytes = attributes[:'origin_cache_fetch_resp_header_bytes']
1914
- end
1915
-
1916
- if attributes.key?(:'shield_hit_requests')
1917
- self.shield_hit_requests = attributes[:'shield_hit_requests']
1918
- end
1919
-
1920
- if attributes.key?(:'shield_miss_requests')
1921
- self.shield_miss_requests = attributes[:'shield_miss_requests']
1922
- end
1923
-
1924
- if attributes.key?(:'shield_hit_resp_header_bytes')
1925
- self.shield_hit_resp_header_bytes = attributes[:'shield_hit_resp_header_bytes']
1926
- end
1927
-
1928
- if attributes.key?(:'shield_hit_resp_body_bytes')
1929
- self.shield_hit_resp_body_bytes = attributes[:'shield_hit_resp_body_bytes']
1930
- end
1931
-
1932
- if attributes.key?(:'shield_miss_resp_header_bytes')
1933
- self.shield_miss_resp_header_bytes = attributes[:'shield_miss_resp_header_bytes']
1934
- end
1935
-
1936
- if attributes.key?(:'shield_miss_resp_body_bytes')
1937
- self.shield_miss_resp_body_bytes = attributes[:'shield_miss_resp_body_bytes']
1938
- end
1939
-
1940
- if attributes.key?(:'websocket_req_header_bytes')
1941
- self.websocket_req_header_bytes = attributes[:'websocket_req_header_bytes']
1942
- end
1943
-
1944
- if attributes.key?(:'websocket_req_body_bytes')
1945
- self.websocket_req_body_bytes = attributes[:'websocket_req_body_bytes']
1946
- end
1947
-
1948
- if attributes.key?(:'websocket_resp_header_bytes')
1949
- self.websocket_resp_header_bytes = attributes[:'websocket_resp_header_bytes']
1950
- end
1951
-
1952
- if attributes.key?(:'websocket_resp_body_bytes')
1953
- self.websocket_resp_body_bytes = attributes[:'websocket_resp_body_bytes']
1954
- end
1955
-
1956
- if attributes.key?(:'websocket_bereq_header_bytes')
1957
- self.websocket_bereq_header_bytes = attributes[:'websocket_bereq_header_bytes']
1958
- end
1959
-
1960
- if attributes.key?(:'websocket_bereq_body_bytes')
1961
- self.websocket_bereq_body_bytes = attributes[:'websocket_bereq_body_bytes']
1962
- end
1963
-
1964
- if attributes.key?(:'websocket_beresp_header_bytes')
1965
- self.websocket_beresp_header_bytes = attributes[:'websocket_beresp_header_bytes']
1966
- end
1967
-
1968
- if attributes.key?(:'websocket_beresp_body_bytes')
1969
- self.websocket_beresp_body_bytes = attributes[:'websocket_beresp_body_bytes']
1970
- end
1971
-
1972
- if attributes.key?(:'websocket_conn_time_ms')
1973
- self.websocket_conn_time_ms = attributes[:'websocket_conn_time_ms']
1974
- end
1975
-
1976
- if attributes.key?(:'fanout_recv_publishes')
1977
- self.fanout_recv_publishes = attributes[:'fanout_recv_publishes']
1978
- end
1979
-
1980
- if attributes.key?(:'fanout_send_publishes')
1981
- self.fanout_send_publishes = attributes[:'fanout_send_publishes']
1982
- end
1983
-
1984
- if attributes.key?(:'kv_store_class_a_operations')
1985
- self.kv_store_class_a_operations = attributes[:'kv_store_class_a_operations']
1986
- end
1987
-
1988
- if attributes.key?(:'kv_store_class_b_operations')
1989
- self.kv_store_class_b_operations = attributes[:'kv_store_class_b_operations']
1990
- end
1991
-
1992
- if attributes.key?(:'object_store_class_a_operations')
1993
- self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1994
- end
1995
-
1996
- if attributes.key?(:'object_store_class_b_operations')
1997
- self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1998
- end
1999
-
2000
- if attributes.key?(:'fanout_req_header_bytes')
2001
- self.fanout_req_header_bytes = attributes[:'fanout_req_header_bytes']
2002
- end
2003
-
2004
- if attributes.key?(:'fanout_req_body_bytes')
2005
- self.fanout_req_body_bytes = attributes[:'fanout_req_body_bytes']
2006
- end
2007
-
2008
- if attributes.key?(:'fanout_resp_header_bytes')
2009
- self.fanout_resp_header_bytes = attributes[:'fanout_resp_header_bytes']
2010
- end
2011
-
2012
- if attributes.key?(:'fanout_resp_body_bytes')
2013
- self.fanout_resp_body_bytes = attributes[:'fanout_resp_body_bytes']
2014
- end
2015
-
2016
- if attributes.key?(:'fanout_bereq_header_bytes')
2017
- self.fanout_bereq_header_bytes = attributes[:'fanout_bereq_header_bytes']
2018
- end
2019
-
2020
- if attributes.key?(:'fanout_bereq_body_bytes')
2021
- self.fanout_bereq_body_bytes = attributes[:'fanout_bereq_body_bytes']
2022
- end
2023
-
2024
- if attributes.key?(:'fanout_beresp_header_bytes')
2025
- self.fanout_beresp_header_bytes = attributes[:'fanout_beresp_header_bytes']
2026
- end
2027
-
2028
- if attributes.key?(:'fanout_beresp_body_bytes')
2029
- self.fanout_beresp_body_bytes = attributes[:'fanout_beresp_body_bytes']
2030
- end
2031
-
2032
- if attributes.key?(:'fanout_conn_time_ms')
2033
- self.fanout_conn_time_ms = attributes[:'fanout_conn_time_ms']
2034
- end
2035
-
2036
- if attributes.key?(:'ddos_action_limit_streams_connections')
2037
- self.ddos_action_limit_streams_connections = attributes[:'ddos_action_limit_streams_connections']
2038
- end
2039
-
2040
- if attributes.key?(:'ddos_action_limit_streams_requests')
2041
- self.ddos_action_limit_streams_requests = attributes[:'ddos_action_limit_streams_requests']
2042
- end
2043
-
2044
- if attributes.key?(:'ddos_action_tarpit_accept')
2045
- self.ddos_action_tarpit_accept = attributes[:'ddos_action_tarpit_accept']
2046
- end
2047
-
2048
- if attributes.key?(:'ddos_action_tarpit')
2049
- self.ddos_action_tarpit = attributes[:'ddos_action_tarpit']
2050
- end
2051
-
2052
- if attributes.key?(:'ddos_action_close')
2053
- self.ddos_action_close = attributes[:'ddos_action_close']
2054
- end
2055
-
2056
- if attributes.key?(:'ddos_action_blackhole')
2057
- self.ddos_action_blackhole = attributes[:'ddos_action_blackhole']
2058
- end
2059
-
2060
- if attributes.key?(:'bot_challenge_starts')
2061
- self.bot_challenge_starts = attributes[:'bot_challenge_starts']
2062
- end
2063
-
2064
- if attributes.key?(:'bot_challenge_complete_tokens_passed')
2065
- self.bot_challenge_complete_tokens_passed = attributes[:'bot_challenge_complete_tokens_passed']
2066
- end
2067
-
2068
- if attributes.key?(:'bot_challenge_complete_tokens_failed')
2069
- self.bot_challenge_complete_tokens_failed = attributes[:'bot_challenge_complete_tokens_failed']
2070
- end
2071
-
2072
- if attributes.key?(:'bot_challenge_complete_tokens_checked')
2073
- self.bot_challenge_complete_tokens_checked = attributes[:'bot_challenge_complete_tokens_checked']
2074
- end
2075
-
2076
- if attributes.key?(:'bot_challenge_complete_tokens_disabled')
2077
- self.bot_challenge_complete_tokens_disabled = attributes[:'bot_challenge_complete_tokens_disabled']
2078
- end
2079
-
2080
- if attributes.key?(:'bot_challenge_complete_tokens_issued')
2081
- self.bot_challenge_complete_tokens_issued = attributes[:'bot_challenge_complete_tokens_issued']
2082
- end
2083
-
2084
- if attributes.key?(:'bot_challenges_issued')
2085
- self.bot_challenges_issued = attributes[:'bot_challenges_issued']
2086
- end
2087
-
2088
- if attributes.key?(:'bot_challenges_succeeded')
2089
- self.bot_challenges_succeeded = attributes[:'bot_challenges_succeeded']
2090
- end
2091
-
2092
- if attributes.key?(:'bot_challenges_failed')
2093
- self.bot_challenges_failed = attributes[:'bot_challenges_failed']
2094
- end
2095
-
2096
- if attributes.key?(:'service_id')
2097
- self.service_id = attributes[:'service_id']
2098
- end
2099
-
2100
- if attributes.key?(:'start_time')
2101
- self.start_time = attributes[:'start_time']
2102
- end
2103
- end
2104
-
2105
- # Show invalid properties with the reasons. Usually used together with valid?
2106
- # @return Array for valid properties with the reasons
2107
- def list_invalid_properties
2108
- invalid_properties = Array.new
2109
- invalid_properties
2110
- end
2111
-
2112
- # Check to see if the all the properties in the model are valid
2113
- # @return true if the model is valid
2114
- def valid?
2115
- true
2116
- end
2117
-
2118
- # Checks equality by comparing each attribute.
2119
- # @param [Object] Object to be compared
2120
- def ==(o)
2121
- return true if self.equal?(o)
2122
- self.class == o.class &&
2123
- requests == o.requests &&
2124
- hits == o.hits &&
2125
- hits_time == o.hits_time &&
2126
- miss == o.miss &&
2127
- miss_time == o.miss_time &&
2128
- pass == o.pass &&
2129
- pass_time == o.pass_time &&
2130
- errors == o.errors &&
2131
- restarts == o.restarts &&
2132
- hit_ratio == o.hit_ratio &&
2133
- bandwidth == o.bandwidth &&
2134
- body_size == o.body_size &&
2135
- header_size == o.header_size &&
2136
- req_body_bytes == o.req_body_bytes &&
2137
- req_header_bytes == o.req_header_bytes &&
2138
- resp_body_bytes == o.resp_body_bytes &&
2139
- resp_header_bytes == o.resp_header_bytes &&
2140
- bereq_body_bytes == o.bereq_body_bytes &&
2141
- bereq_header_bytes == o.bereq_header_bytes &&
2142
- uncacheable == o.uncacheable &&
2143
- pipe == o.pipe &&
2144
- synth == o.synth &&
2145
- tls == o.tls &&
2146
- tls_v10 == o.tls_v10 &&
2147
- tls_v11 == o.tls_v11 &&
2148
- tls_v12 == o.tls_v12 &&
2149
- tls_v13 == o.tls_v13 &&
2150
- edge_requests == o.edge_requests &&
2151
- edge_resp_header_bytes == o.edge_resp_header_bytes &&
2152
- edge_resp_body_bytes == o.edge_resp_body_bytes &&
2153
- edge_hit_requests == o.edge_hit_requests &&
2154
- edge_miss_requests == o.edge_miss_requests &&
2155
- origin_fetches == o.origin_fetches &&
2156
- origin_fetch_header_bytes == o.origin_fetch_header_bytes &&
2157
- origin_fetch_body_bytes == o.origin_fetch_body_bytes &&
2158
- origin_fetch_resp_header_bytes == o.origin_fetch_resp_header_bytes &&
2159
- origin_fetch_resp_body_bytes == o.origin_fetch_resp_body_bytes &&
2160
- origin_revalidations == o.origin_revalidations &&
2161
- origin_cache_fetches == o.origin_cache_fetches &&
2162
- shield == o.shield &&
2163
- shield_resp_body_bytes == o.shield_resp_body_bytes &&
2164
- shield_resp_header_bytes == o.shield_resp_header_bytes &&
2165
- shield_fetches == o.shield_fetches &&
2166
- shield_fetch_header_bytes == o.shield_fetch_header_bytes &&
2167
- shield_fetch_body_bytes == o.shield_fetch_body_bytes &&
2168
- shield_fetch_resp_header_bytes == o.shield_fetch_resp_header_bytes &&
2169
- shield_fetch_resp_body_bytes == o.shield_fetch_resp_body_bytes &&
2170
- shield_revalidations == o.shield_revalidations &&
2171
- shield_cache_fetches == o.shield_cache_fetches &&
2172
- ipv6 == o.ipv6 &&
2173
- otfp == o.otfp &&
2174
- otfp_resp_body_bytes == o.otfp_resp_body_bytes &&
2175
- otfp_resp_header_bytes == o.otfp_resp_header_bytes &&
2176
- otfp_shield_resp_body_bytes == o.otfp_shield_resp_body_bytes &&
2177
- otfp_shield_resp_header_bytes == o.otfp_shield_resp_header_bytes &&
2178
- otfp_manifests == o.otfp_manifests &&
2179
- otfp_deliver_time == o.otfp_deliver_time &&
2180
- otfp_shield_time == o.otfp_shield_time &&
2181
- video == o.video &&
2182
- pci == o.pci &&
2183
- log == o.log &&
2184
- log_bytes == o.log_bytes &&
2185
- http2 == o.http2 &&
2186
- http3 == o.http3 &&
2187
- waf_logged == o.waf_logged &&
2188
- waf_blocked == o.waf_blocked &&
2189
- waf_passed == o.waf_passed &&
2190
- attack_req_body_bytes == o.attack_req_body_bytes &&
2191
- attack_req_header_bytes == o.attack_req_header_bytes &&
2192
- attack_logged_req_body_bytes == o.attack_logged_req_body_bytes &&
2193
- attack_logged_req_header_bytes == o.attack_logged_req_header_bytes &&
2194
- attack_blocked_req_body_bytes == o.attack_blocked_req_body_bytes &&
2195
- attack_blocked_req_header_bytes == o.attack_blocked_req_header_bytes &&
2196
- attack_passed_req_body_bytes == o.attack_passed_req_body_bytes &&
2197
- attack_passed_req_header_bytes == o.attack_passed_req_header_bytes &&
2198
- attack_resp_synth_bytes == o.attack_resp_synth_bytes &&
2199
- imgopto == o.imgopto &&
2200
- imgopto_resp_body_bytes == o.imgopto_resp_body_bytes &&
2201
- imgopto_resp_header_bytes == o.imgopto_resp_header_bytes &&
2202
- imgopto_shield_resp_body_bytes == o.imgopto_shield_resp_body_bytes &&
2203
- imgopto_shield_resp_header_bytes == o.imgopto_shield_resp_header_bytes &&
2204
- imgvideo == o.imgvideo &&
2205
- imgvideo_frames == o.imgvideo_frames &&
2206
- imgvideo_resp_header_bytes == o.imgvideo_resp_header_bytes &&
2207
- imgvideo_resp_body_bytes == o.imgvideo_resp_body_bytes &&
2208
- imgvideo_shield_resp_header_bytes == o.imgvideo_shield_resp_header_bytes &&
2209
- imgvideo_shield_resp_body_bytes == o.imgvideo_shield_resp_body_bytes &&
2210
- imgvideo_shield == o.imgvideo_shield &&
2211
- imgvideo_shield_frames == o.imgvideo_shield_frames &&
2212
- status_200 == o.status_200 &&
2213
- status_204 == o.status_204 &&
2214
- status_206 == o.status_206 &&
2215
- status_301 == o.status_301 &&
2216
- status_302 == o.status_302 &&
2217
- status_304 == o.status_304 &&
2218
- status_400 == o.status_400 &&
2219
- status_401 == o.status_401 &&
2220
- status_403 == o.status_403 &&
2221
- status_404 == o.status_404 &&
2222
- status_406 == o.status_406 &&
2223
- status_416 == o.status_416 &&
2224
- status_429 == o.status_429 &&
2225
- status_500 == o.status_500 &&
2226
- status_501 == o.status_501 &&
2227
- status_502 == o.status_502 &&
2228
- status_503 == o.status_503 &&
2229
- status_504 == o.status_504 &&
2230
- status_505 == o.status_505 &&
2231
- status_1xx == o.status_1xx &&
2232
- status_2xx == o.status_2xx &&
2233
- status_3xx == o.status_3xx &&
2234
- status_4xx == o.status_4xx &&
2235
- status_5xx == o.status_5xx &&
2236
- object_size_1k == o.object_size_1k &&
2237
- object_size_10k == o.object_size_10k &&
2238
- object_size_100k == o.object_size_100k &&
2239
- object_size_1m == o.object_size_1m &&
2240
- object_size_10m == o.object_size_10m &&
2241
- object_size_100m == o.object_size_100m &&
2242
- object_size_1g == o.object_size_1g &&
2243
- recv_sub_time == o.recv_sub_time &&
2244
- recv_sub_count == o.recv_sub_count &&
2245
- hash_sub_time == o.hash_sub_time &&
2246
- hash_sub_count == o.hash_sub_count &&
2247
- miss_sub_time == o.miss_sub_time &&
2248
- miss_sub_count == o.miss_sub_count &&
2249
- fetch_sub_time == o.fetch_sub_time &&
2250
- fetch_sub_count == o.fetch_sub_count &&
2251
- pass_sub_time == o.pass_sub_time &&
2252
- pass_sub_count == o.pass_sub_count &&
2253
- pipe_sub_time == o.pipe_sub_time &&
2254
- pipe_sub_count == o.pipe_sub_count &&
2255
- deliver_sub_time == o.deliver_sub_time &&
2256
- deliver_sub_count == o.deliver_sub_count &&
2257
- error_sub_time == o.error_sub_time &&
2258
- error_sub_count == o.error_sub_count &&
2259
- hit_sub_time == o.hit_sub_time &&
2260
- hit_sub_count == o.hit_sub_count &&
2261
- prehash_sub_time == o.prehash_sub_time &&
2262
- prehash_sub_count == o.prehash_sub_count &&
2263
- predeliver_sub_time == o.predeliver_sub_time &&
2264
- predeliver_sub_count == o.predeliver_sub_count &&
2265
- tls_handshake_sent_bytes == o.tls_handshake_sent_bytes &&
2266
- hit_resp_body_bytes == o.hit_resp_body_bytes &&
2267
- miss_resp_body_bytes == o.miss_resp_body_bytes &&
2268
- pass_resp_body_bytes == o.pass_resp_body_bytes &&
2269
- segblock_origin_fetches == o.segblock_origin_fetches &&
2270
- segblock_shield_fetches == o.segblock_shield_fetches &&
2271
- compute_requests == o.compute_requests &&
2272
- compute_request_time_ms == o.compute_request_time_ms &&
2273
- compute_request_time_billed_ms == o.compute_request_time_billed_ms &&
2274
- compute_ram_used == o.compute_ram_used &&
2275
- compute_execution_time_ms == o.compute_execution_time_ms &&
2276
- compute_req_header_bytes == o.compute_req_header_bytes &&
2277
- compute_req_body_bytes == o.compute_req_body_bytes &&
2278
- compute_resp_header_bytes == o.compute_resp_header_bytes &&
2279
- compute_resp_body_bytes == o.compute_resp_body_bytes &&
2280
- compute_resp_status_1xx == o.compute_resp_status_1xx &&
2281
- compute_resp_status_2xx == o.compute_resp_status_2xx &&
2282
- compute_resp_status_3xx == o.compute_resp_status_3xx &&
2283
- compute_resp_status_4xx == o.compute_resp_status_4xx &&
2284
- compute_resp_status_5xx == o.compute_resp_status_5xx &&
2285
- compute_bereq_header_bytes == o.compute_bereq_header_bytes &&
2286
- compute_bereq_body_bytes == o.compute_bereq_body_bytes &&
2287
- compute_beresp_header_bytes == o.compute_beresp_header_bytes &&
2288
- compute_beresp_body_bytes == o.compute_beresp_body_bytes &&
2289
- compute_bereqs == o.compute_bereqs &&
2290
- compute_bereq_errors == o.compute_bereq_errors &&
2291
- compute_resource_limit_exceeded == o.compute_resource_limit_exceeded &&
2292
- compute_heap_limit_exceeded == o.compute_heap_limit_exceeded &&
2293
- compute_stack_limit_exceeded == o.compute_stack_limit_exceeded &&
2294
- compute_globals_limit_exceeded == o.compute_globals_limit_exceeded &&
2295
- compute_guest_errors == o.compute_guest_errors &&
2296
- compute_runtime_errors == o.compute_runtime_errors &&
2297
- edge_hit_resp_body_bytes == o.edge_hit_resp_body_bytes &&
2298
- edge_hit_resp_header_bytes == o.edge_hit_resp_header_bytes &&
2299
- edge_miss_resp_body_bytes == o.edge_miss_resp_body_bytes &&
2300
- edge_miss_resp_header_bytes == o.edge_miss_resp_header_bytes &&
2301
- origin_cache_fetch_resp_body_bytes == o.origin_cache_fetch_resp_body_bytes &&
2302
- origin_cache_fetch_resp_header_bytes == o.origin_cache_fetch_resp_header_bytes &&
2303
- shield_hit_requests == o.shield_hit_requests &&
2304
- shield_miss_requests == o.shield_miss_requests &&
2305
- shield_hit_resp_header_bytes == o.shield_hit_resp_header_bytes &&
2306
- shield_hit_resp_body_bytes == o.shield_hit_resp_body_bytes &&
2307
- shield_miss_resp_header_bytes == o.shield_miss_resp_header_bytes &&
2308
- shield_miss_resp_body_bytes == o.shield_miss_resp_body_bytes &&
2309
- websocket_req_header_bytes == o.websocket_req_header_bytes &&
2310
- websocket_req_body_bytes == o.websocket_req_body_bytes &&
2311
- websocket_resp_header_bytes == o.websocket_resp_header_bytes &&
2312
- websocket_resp_body_bytes == o.websocket_resp_body_bytes &&
2313
- websocket_bereq_header_bytes == o.websocket_bereq_header_bytes &&
2314
- websocket_bereq_body_bytes == o.websocket_bereq_body_bytes &&
2315
- websocket_beresp_header_bytes == o.websocket_beresp_header_bytes &&
2316
- websocket_beresp_body_bytes == o.websocket_beresp_body_bytes &&
2317
- websocket_conn_time_ms == o.websocket_conn_time_ms &&
2318
- fanout_recv_publishes == o.fanout_recv_publishes &&
2319
- fanout_send_publishes == o.fanout_send_publishes &&
2320
- kv_store_class_a_operations == o.kv_store_class_a_operations &&
2321
- kv_store_class_b_operations == o.kv_store_class_b_operations &&
2322
- object_store_class_a_operations == o.object_store_class_a_operations &&
2323
- object_store_class_b_operations == o.object_store_class_b_operations &&
2324
- fanout_req_header_bytes == o.fanout_req_header_bytes &&
2325
- fanout_req_body_bytes == o.fanout_req_body_bytes &&
2326
- fanout_resp_header_bytes == o.fanout_resp_header_bytes &&
2327
- fanout_resp_body_bytes == o.fanout_resp_body_bytes &&
2328
- fanout_bereq_header_bytes == o.fanout_bereq_header_bytes &&
2329
- fanout_bereq_body_bytes == o.fanout_bereq_body_bytes &&
2330
- fanout_beresp_header_bytes == o.fanout_beresp_header_bytes &&
2331
- fanout_beresp_body_bytes == o.fanout_beresp_body_bytes &&
2332
- fanout_conn_time_ms == o.fanout_conn_time_ms &&
2333
- ddos_action_limit_streams_connections == o.ddos_action_limit_streams_connections &&
2334
- ddos_action_limit_streams_requests == o.ddos_action_limit_streams_requests &&
2335
- ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
2336
- ddos_action_tarpit == o.ddos_action_tarpit &&
2337
- ddos_action_close == o.ddos_action_close &&
2338
- ddos_action_blackhole == o.ddos_action_blackhole &&
2339
- bot_challenge_starts == o.bot_challenge_starts &&
2340
- bot_challenge_complete_tokens_passed == o.bot_challenge_complete_tokens_passed &&
2341
- bot_challenge_complete_tokens_failed == o.bot_challenge_complete_tokens_failed &&
2342
- bot_challenge_complete_tokens_checked == o.bot_challenge_complete_tokens_checked &&
2343
- bot_challenge_complete_tokens_disabled == o.bot_challenge_complete_tokens_disabled &&
2344
- bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued &&
2345
- bot_challenges_issued == o.bot_challenges_issued &&
2346
- bot_challenges_succeeded == o.bot_challenges_succeeded &&
2347
- bot_challenges_failed == o.bot_challenges_failed &&
2348
- service_id == o.service_id &&
2349
- start_time == o.start_time
2350
- end
2351
-
2352
- # @see the `==` method
2353
- # @param [Object] Object to be compared
2354
- def eql?(o)
2355
- self == o
2356
- end
2357
-
2358
- # Calculates hash code according to all attributes.
2359
- # @return [Integer] Hash code
2360
- def hash
2361
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, service_id, start_time].hash
2362
- end
2363
-
2364
- # Builds the object from hash
2365
- # @param [Hash] attributes Model attributes in the form of hash
2366
- # @return [Object] Returns the model itself
2367
- def self.build_from_hash(attributes)
2368
- new.build_from_hash(attributes)
2369
- end
2370
-
2371
- # Builds the object from hash
2372
- # @param [Hash] attributes Model attributes in the form of hash
2373
- # @return [Object] Returns the model itself
2374
- def build_from_hash(attributes)
2375
- return nil unless attributes.is_a?(Hash)
2376
- self.class.fastly_types.each_pair do |key, type|
2377
- if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
2378
- self.send("#{key}=", nil)
2379
- elsif type =~ /\AArray<(.*)>/i
2380
- # check to ensure the input is an array given that the attribute
2381
- # is documented as an array but the input is not
2382
- if attributes[self.class.attribute_map[key]].is_a?(Array)
2383
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
2384
- end
2385
- elsif !attributes[self.class.attribute_map[key]].nil?
2386
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
2387
- end
2388
- end
2389
-
2390
- self
2391
- end
2392
-
2393
- # Deserializes the data based on type
2394
- # @param string type Data type
2395
- # @param string value Value to be deserialized
2396
- # @return [Object] Deserialized data
2397
- def _deserialize(type, value)
2398
- case type.to_sym
2399
- when :Time
2400
- Time.parse(value)
2401
- when :Date
2402
- Date.parse(value)
2403
- when :String
2404
- value.to_s
2405
- when :Integer
2406
- value.to_i
2407
- when :Float
2408
- value.to_f
2409
- when :Boolean
2410
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
2411
- true
2412
- else
2413
- false
2414
- end
2415
- when :Object
2416
- # generic object (usually a Hash), return directly
2417
- value
2418
- when /\AArray<(?<inner_type>.+)>\z/
2419
- inner_type = Regexp.last_match[:inner_type]
2420
- value.map { |v| _deserialize(inner_type, v) }
2421
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
2422
- k_type = Regexp.last_match[:k_type]
2423
- v_type = Regexp.last_match[:v_type]
2424
- {}.tap do |hash|
2425
- value.each do |k, v|
2426
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
2427
- end
2428
- end
2429
- else # model
2430
- # models (e.g. Pet) or oneOf
2431
- klass = Fastly.const_get(type)
2432
- klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
2433
- end
2434
- end
2435
-
2436
- # Returns the string representation of the object
2437
- # @return [String] String presentation of the object
2438
- def to_s
2439
- to_hash.to_s
2440
- end
2441
-
2442
- # to_body is an alias to to_hash (backward compatibility)
2443
- # @return [Hash] Returns the object in the form of hash
2444
- def to_body
2445
- to_hash
2446
- end
2447
-
2448
- # Returns the object in the form of hash
2449
- # @return [Hash] Returns the object in the form of hash
2450
- def to_hash
2451
- hash = {}
2452
- self.class.attribute_map.each_pair do |attr, param|
2453
- value = self.send(attr)
2454
- if value.nil?
2455
- is_nullable = self.class.fastly_nullable.include?(attr)
2456
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
2457
- end
2458
-
2459
- hash[param] = _to_hash(value)
2460
- end
2461
- hash
2462
- end
2463
-
2464
- # Outputs non-array value in the form of hash
2465
- # For object, use to_hash. Otherwise, just return the value
2466
- # @param [Object] value Any valid value
2467
- # @return [Hash] Returns the value in the form of hash
2468
- def _to_hash(value)
2469
- if value.is_a?(Array)
2470
- value.compact.map { |v| _to_hash(v) }
2471
- elsif value.is_a?(Hash)
2472
- {}.tap do |hash|
2473
- value.each { |k, v| hash[k] = _to_hash(v) }
2474
- end
2475
- elsif value.respond_to? :to_hash
2476
- value.to_hash
2477
- else
2478
- value
2479
- end
2480
- end
2481
-
2482
- end
2483
-
2484
- end