fastly-api 11.0.0

Fastly API client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
/*
 * Fastly API
 *
 * 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://www.fastly.com/documentation/reference/api/) 
 *
 */

/// Results : The results of stats queries, may be grouped by service depending on endpoint, and aggregated over the appropriate time span.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Results {
    /// Number of requests processed.
    #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
    pub requests: Option<i64>,
    /// Number of cache hits.
    #[serde(rename = "hits", skip_serializing_if = "Option::is_none")]
    pub hits: Option<i64>,
    /// Total amount of time spent processing cache hits (in seconds).
    #[serde(rename = "hits_time", skip_serializing_if = "Option::is_none")]
    pub hits_time: Option<f32>,
    /// Number of cache misses.
    #[serde(rename = "miss", skip_serializing_if = "Option::is_none")]
    pub miss: Option<i64>,
    /// Total amount of time spent processing cache misses (in seconds).
    #[serde(rename = "miss_time", skip_serializing_if = "Option::is_none")]
    pub miss_time: Option<f32>,
    /// Number of requests that passed through the CDN without being cached.
    #[serde(rename = "pass", skip_serializing_if = "Option::is_none")]
    pub pass: Option<i64>,
    /// Total amount of time spent processing cache passes (in seconds).
    #[serde(rename = "pass_time", skip_serializing_if = "Option::is_none")]
    pub pass_time: Option<f32>,
    /// Number of cache errors.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<i64>,
    /// Number of restarts performed.
    #[serde(rename = "restarts", skip_serializing_if = "Option::is_none")]
    pub restarts: Option<i64>,
    /// Ratio of cache hits to cache misses (between 0 and 1).
    #[serde(rename = "hit_ratio", skip_serializing_if = "Option::is_none")]
    pub hit_ratio: Option<f32>,
    /// 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`).
    #[serde(rename = "bandwidth", skip_serializing_if = "Option::is_none")]
    pub bandwidth: Option<i64>,
    /// Total body bytes delivered (alias for resp_body_bytes).
    #[serde(rename = "body_size", skip_serializing_if = "Option::is_none")]
    pub body_size: Option<i64>,
    /// Total header bytes delivered (alias for resp_header_bytes).
    #[serde(rename = "header_size", skip_serializing_if = "Option::is_none")]
    pub header_size: Option<i64>,
    /// Total body bytes received.
    #[serde(rename = "req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub req_body_bytes: Option<i64>,
    /// Total header bytes received.
    #[serde(rename = "req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub req_header_bytes: Option<i64>,
    /// Total body bytes delivered (edge_resp_body_bytes + shield_resp_body_bytes).
    #[serde(rename = "resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub resp_body_bytes: Option<i64>,
    /// Total header bytes delivered (edge_resp_header_bytes + shield_resp_header_bytes).
    #[serde(rename = "resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub resp_header_bytes: Option<i64>,
    /// Total body bytes sent to origin.
    #[serde(rename = "bereq_body_bytes", skip_serializing_if = "Option::is_none")]
    pub bereq_body_bytes: Option<i64>,
    /// Total header bytes sent to origin.
    #[serde(rename = "bereq_header_bytes", skip_serializing_if = "Option::is_none")]
    pub bereq_header_bytes: Option<i64>,
    /// Number of requests that were designated uncachable.
    #[serde(rename = "uncacheable", skip_serializing_if = "Option::is_none")]
    pub uncacheable: Option<i64>,
    /// Optional. Pipe operations performed (legacy feature).
    #[serde(rename = "pipe", skip_serializing_if = "Option::is_none")]
    pub pipe: Option<i64>,
    /// Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement).
    #[serde(rename = "synth", skip_serializing_if = "Option::is_none")]
    pub synth: Option<i64>,
    /// Number of requests that were received over TLS.
    #[serde(rename = "tls", skip_serializing_if = "Option::is_none")]
    pub tls: Option<i64>,
    /// Number of requests received over TLS 1.0.
    #[serde(rename = "tls_v10", skip_serializing_if = "Option::is_none")]
    pub tls_v10: Option<i64>,
    /// Number of requests received over TLS 1.1.
    #[serde(rename = "tls_v11", skip_serializing_if = "Option::is_none")]
    pub tls_v11: Option<i64>,
    /// Number of requests received over TLS 1.2.
    #[serde(rename = "tls_v12", skip_serializing_if = "Option::is_none")]
    pub tls_v12: Option<i64>,
    /// Number of requests received over TLS 1.3.
    #[serde(rename = "tls_v13", skip_serializing_if = "Option::is_none")]
    pub tls_v13: Option<i64>,
    /// Number of requests sent by end users to Fastly.
    #[serde(rename = "edge_requests", skip_serializing_if = "Option::is_none")]
    pub edge_requests: Option<i64>,
    /// Total header bytes delivered from Fastly to the end user.
    #[serde(rename = "edge_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_resp_header_bytes: Option<i64>,
    /// Total body bytes delivered from Fastly to the end user.
    #[serde(rename = "edge_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_resp_body_bytes: Option<i64>,
    /// Number of requests sent by end users to Fastly that resulted in a hit at the edge.
    #[serde(rename = "edge_hit_requests", skip_serializing_if = "Option::is_none")]
    pub edge_hit_requests: Option<i64>,
    /// Number of requests sent by end users to Fastly that resulted in a miss at the edge.
    #[serde(rename = "edge_miss_requests", skip_serializing_if = "Option::is_none")]
    pub edge_miss_requests: Option<i64>,
    /// Number of requests sent to origin.
    #[serde(rename = "origin_fetches", skip_serializing_if = "Option::is_none")]
    pub origin_fetches: Option<i64>,
    /// Total request header bytes sent to origin.
    #[serde(rename = "origin_fetch_header_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_fetch_header_bytes: Option<i64>,
    /// Total request body bytes sent to origin.
    #[serde(rename = "origin_fetch_body_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_fetch_body_bytes: Option<i64>,
    /// Total header bytes received from origin.
    #[serde(rename = "origin_fetch_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_fetch_resp_header_bytes: Option<i64>,
    /// Total body bytes received from origin.
    #[serde(rename = "origin_fetch_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_fetch_resp_body_bytes: Option<i64>,
    /// 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.
    #[serde(rename = "origin_revalidations", skip_serializing_if = "Option::is_none")]
    pub origin_revalidations: Option<i64>,
    /// The total number of completed requests made to backends (origins) that returned cacheable content.
    #[serde(rename = "origin_cache_fetches", skip_serializing_if = "Option::is_none")]
    pub origin_cache_fetches: Option<i64>,
    /// Number of requests from edge to the shield POP.
    #[serde(rename = "shield", skip_serializing_if = "Option::is_none")]
    pub shield: Option<i64>,
    /// Total body bytes delivered via a shield.
    #[serde(rename = "shield_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_resp_body_bytes: Option<i64>,
    /// Total header bytes delivered via a shield.
    #[serde(rename = "shield_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_resp_header_bytes: Option<i64>,
    /// Number of requests made from one Fastly POP to another, as part of shielding.
    #[serde(rename = "shield_fetches", skip_serializing_if = "Option::is_none")]
    pub shield_fetches: Option<i64>,
    /// Total request header bytes sent to a shield.
    #[serde(rename = "shield_fetch_header_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_fetch_header_bytes: Option<i64>,
    /// Total request body bytes sent to a shield.
    #[serde(rename = "shield_fetch_body_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_fetch_body_bytes: Option<i64>,
    /// Total response header bytes sent from a shield to the edge.
    #[serde(rename = "shield_fetch_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_fetch_resp_header_bytes: Option<i64>,
    /// Total response body bytes sent from a shield to the edge.
    #[serde(rename = "shield_fetch_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_fetch_resp_body_bytes: Option<i64>,
    /// 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.
    #[serde(rename = "shield_revalidations", skip_serializing_if = "Option::is_none")]
    pub shield_revalidations: Option<i64>,
    /// The total number of completed requests made to shields that returned cacheable content.
    #[serde(rename = "shield_cache_fetches", skip_serializing_if = "Option::is_none")]
    pub shield_cache_fetches: Option<i64>,
    /// Number of requests that were received over IPv6.
    #[serde(rename = "ipv6", skip_serializing_if = "Option::is_none")]
    pub ipv6: Option<i64>,
    /// Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp", skip_serializing_if = "Option::is_none")]
    pub otfp: Option<i64>,
    /// Total body bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub otfp_resp_body_bytes: Option<i64>,
    /// Total header bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub otfp_resp_header_bytes: Option<i64>,
    /// Total body bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp_shield_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub otfp_shield_resp_body_bytes: Option<i64>,
    /// Total header bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp_shield_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub otfp_shield_resp_header_bytes: Option<i64>,
    /// Number of responses that were manifest files from the Fastly On-the-Fly Packaging service for video-on-demand.
    #[serde(rename = "otfp_manifests", skip_serializing_if = "Option::is_none")]
    pub otfp_manifests: Option<i64>,
    /// Total amount of time spent delivering a response from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds).
    #[serde(rename = "otfp_deliver_time", skip_serializing_if = "Option::is_none")]
    pub otfp_deliver_time: Option<f32>,
    /// 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).
    #[serde(rename = "otfp_shield_time", skip_serializing_if = "Option::is_none")]
    pub otfp_shield_time: Option<f32>,
    /// 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).
    #[serde(rename = "video", skip_serializing_if = "Option::is_none")]
    pub video: Option<i64>,
    /// Number of responses with the PCI flag turned on.
    #[serde(rename = "pci", skip_serializing_if = "Option::is_none")]
    pub pci: Option<i64>,
    /// Number of log lines sent.
    #[serde(rename = "log", skip_serializing_if = "Option::is_none")]
    pub log: Option<i64>,
    /// Total log bytes sent.
    #[serde(rename = "log_bytes", skip_serializing_if = "Option::is_none")]
    pub log_bytes: Option<i64>,
    /// Number of requests received over HTTP/2.
    #[serde(rename = "http2", skip_serializing_if = "Option::is_none")]
    pub http2: Option<i64>,
    /// Number of requests received over HTTP/3.
    #[serde(rename = "http3", skip_serializing_if = "Option::is_none")]
    pub http3: Option<i64>,
    /// Number of requests that triggered a WAF rule and were logged.
    #[serde(rename = "waf_logged", skip_serializing_if = "Option::is_none")]
    pub waf_logged: Option<i64>,
    /// Number of requests that triggered a WAF rule and were blocked.
    #[serde(rename = "waf_blocked", skip_serializing_if = "Option::is_none")]
    pub waf_blocked: Option<i64>,
    /// Number of requests that triggered a WAF rule and were passed.
    #[serde(rename = "waf_passed", skip_serializing_if = "Option::is_none")]
    pub waf_passed: Option<i64>,
    /// Total body bytes received from requests that triggered a WAF rule.
    #[serde(rename = "attack_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_req_body_bytes: Option<i64>,
    /// Total header bytes received from requests that triggered a WAF rule.
    #[serde(rename = "attack_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_req_header_bytes: Option<i64>,
    /// Total body bytes received from requests that triggered a WAF rule that was logged.
    #[serde(rename = "attack_logged_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_logged_req_body_bytes: Option<i64>,
    /// Total header bytes received from requests that triggered a WAF rule that was logged.
    #[serde(rename = "attack_logged_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_logged_req_header_bytes: Option<i64>,
    /// Total body bytes received from requests that triggered a WAF rule that was blocked.
    #[serde(rename = "attack_blocked_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_blocked_req_body_bytes: Option<i64>,
    /// Total header bytes received from requests that triggered a WAF rule that was blocked.
    #[serde(rename = "attack_blocked_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_blocked_req_header_bytes: Option<i64>,
    /// Total body bytes received from requests that triggered a WAF rule that was passed.
    #[serde(rename = "attack_passed_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_passed_req_body_bytes: Option<i64>,
    /// Total header bytes received from requests that triggered a WAF rule that was passed.
    #[serde(rename = "attack_passed_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_passed_req_header_bytes: Option<i64>,
    /// Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response.
    #[serde(rename = "attack_resp_synth_bytes", skip_serializing_if = "Option::is_none")]
    pub attack_resp_synth_bytes: Option<i64>,
    /// 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.
    #[serde(rename = "imgopto", skip_serializing_if = "Option::is_none")]
    pub imgopto: Option<i64>,
    /// Total body bytes delivered from the Fastly Image Optimizer service, including shield traffic.
    #[serde(rename = "imgopto_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub imgopto_resp_body_bytes: Option<i64>,
    /// Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic.
    #[serde(rename = "imgopto_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub imgopto_resp_header_bytes: Option<i64>,
    /// Number of responses that came from the Fastly Image Optimizer service via a shield.
    #[serde(rename = "imgopto_shield", skip_serializing_if = "Option::is_none")]
    pub imgopto_shield: Option<i64>,
    /// Total body bytes delivered via a shield from the Fastly Image Optimizer service.
    #[serde(rename = "imgopto_shield_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub imgopto_shield_resp_body_bytes: Option<i64>,
    /// Total header bytes delivered via a shield from the Fastly Image Optimizer service.
    #[serde(rename = "imgopto_shield_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub imgopto_shield_resp_header_bytes: Option<i64>,
    /// Number of transforms performed by the Fastly Image Optimizer service.
    #[serde(rename = "imgopto_transforms", skip_serializing_if = "Option::is_none")]
    pub imgopto_transforms: Option<i64>,
    /// Number of video responses that came from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo", skip_serializing_if = "Option::is_none")]
    pub imgvideo: Option<i64>,
    /// Number of video frames that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video.
    #[serde(rename = "imgvideo_frames", skip_serializing_if = "Option::is_none")]
    pub imgvideo_frames: Option<i64>,
    /// Total header bytes of video delivered from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub imgvideo_resp_header_bytes: Option<i64>,
    /// Total body bytes of video delivered from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub imgvideo_resp_body_bytes: Option<i64>,
    /// Total header bytes of video delivered via a shield from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo_shield_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub imgvideo_shield_resp_header_bytes: Option<i64>,
    /// Total body bytes of video delivered via a shield from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo_shield_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub imgvideo_shield_resp_body_bytes: Option<i64>,
    /// Number of video responses delivered via a shield that came from the Fastly Image Optimizer service.
    #[serde(rename = "imgvideo_shield", skip_serializing_if = "Option::is_none")]
    pub imgvideo_shield: Option<i64>,
    /// 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.
    #[serde(rename = "imgvideo_shield_frames", skip_serializing_if = "Option::is_none")]
    pub imgvideo_shield_frames: Option<i64>,
    /// Number of responses sent with status code 200 (Success).
    #[serde(rename = "status_200", skip_serializing_if = "Option::is_none")]
    pub status_200: Option<i64>,
    /// Number of responses sent with status code 204 (No Content).
    #[serde(rename = "status_204", skip_serializing_if = "Option::is_none")]
    pub status_204: Option<i64>,
    /// Number of responses sent with status code 206 (Partial Content).
    #[serde(rename = "status_206", skip_serializing_if = "Option::is_none")]
    pub status_206: Option<i64>,
    /// Number of responses sent with status code 301 (Moved Permanently).
    #[serde(rename = "status_301", skip_serializing_if = "Option::is_none")]
    pub status_301: Option<i64>,
    /// Number of responses sent with status code 302 (Found).
    #[serde(rename = "status_302", skip_serializing_if = "Option::is_none")]
    pub status_302: Option<i64>,
    /// Number of responses sent with status code 304 (Not Modified).
    #[serde(rename = "status_304", skip_serializing_if = "Option::is_none")]
    pub status_304: Option<i64>,
    /// Number of responses sent with status code 400 (Bad Request).
    #[serde(rename = "status_400", skip_serializing_if = "Option::is_none")]
    pub status_400: Option<i64>,
    /// Number of responses sent with status code 401 (Unauthorized).
    #[serde(rename = "status_401", skip_serializing_if = "Option::is_none")]
    pub status_401: Option<i64>,
    /// Number of responses sent with status code 403 (Forbidden).
    #[serde(rename = "status_403", skip_serializing_if = "Option::is_none")]
    pub status_403: Option<i64>,
    /// Number of responses sent with status code 404 (Not Found).
    #[serde(rename = "status_404", skip_serializing_if = "Option::is_none")]
    pub status_404: Option<i64>,
    /// Number of responses sent with status code 406 (Not Acceptable).
    #[serde(rename = "status_406", skip_serializing_if = "Option::is_none")]
    pub status_406: Option<i64>,
    /// Number of responses sent with status code 416 (Range Not Satisfiable).
    #[serde(rename = "status_416", skip_serializing_if = "Option::is_none")]
    pub status_416: Option<i64>,
    /// Number of responses sent with status code 429 (Too Many Requests).
    #[serde(rename = "status_429", skip_serializing_if = "Option::is_none")]
    pub status_429: Option<i64>,
    /// Number of responses sent with status code 500 (Internal Server Error).
    #[serde(rename = "status_500", skip_serializing_if = "Option::is_none")]
    pub status_500: Option<i64>,
    /// Number of responses sent with status code 501 (Not Implemented).
    #[serde(rename = "status_501", skip_serializing_if = "Option::is_none")]
    pub status_501: Option<i64>,
    /// Number of responses sent with status code 502 (Bad Gateway).
    #[serde(rename = "status_502", skip_serializing_if = "Option::is_none")]
    pub status_502: Option<i64>,
    /// Number of responses sent with status code 503 (Service Unavailable).
    #[serde(rename = "status_503", skip_serializing_if = "Option::is_none")]
    pub status_503: Option<i64>,
    /// Number of responses sent with status code 504 (Gateway Timeout).
    #[serde(rename = "status_504", skip_serializing_if = "Option::is_none")]
    pub status_504: Option<i64>,
    /// Number of responses sent with status code 505 (HTTP Version Not Supported).
    #[serde(rename = "status_505", skip_serializing_if = "Option::is_none")]
    pub status_505: Option<i64>,
    /// Number of responses sent with status code 530.
    #[serde(rename = "status_530", skip_serializing_if = "Option::is_none")]
    pub status_530: Option<i64>,
    /// Number of \"Informational\" category status codes delivered.
    #[serde(rename = "status_1xx", skip_serializing_if = "Option::is_none")]
    pub status_1xx: Option<i64>,
    /// Number of \"Success\" status codes delivered.
    #[serde(rename = "status_2xx", skip_serializing_if = "Option::is_none")]
    pub status_2xx: Option<i64>,
    /// Number of \"Redirection\" codes delivered.
    #[serde(rename = "status_3xx", skip_serializing_if = "Option::is_none")]
    pub status_3xx: Option<i64>,
    /// Number of \"Client Error\" codes delivered.
    #[serde(rename = "status_4xx", skip_serializing_if = "Option::is_none")]
    pub status_4xx: Option<i64>,
    /// Number of \"Server Error\" codes delivered.
    #[serde(rename = "status_5xx", skip_serializing_if = "Option::is_none")]
    pub status_5xx: Option<i64>,
    /// Number of objects served that were under 1KB in size.
    #[serde(rename = "object_size_1k", skip_serializing_if = "Option::is_none")]
    pub object_size_1k: Option<i64>,
    /// Number of objects served that were between 1KB and 10KB in size.
    #[serde(rename = "object_size_10k", skip_serializing_if = "Option::is_none")]
    pub object_size_10k: Option<i64>,
    /// Number of objects served that were between 10KB and 100KB in size.
    #[serde(rename = "object_size_100k", skip_serializing_if = "Option::is_none")]
    pub object_size_100k: Option<i64>,
    /// Number of objects served that were between 100KB and 1MB in size.
    #[serde(rename = "object_size_1m", skip_serializing_if = "Option::is_none")]
    pub object_size_1m: Option<i64>,
    /// Number of objects served that were between 1MB and 10MB in size.
    #[serde(rename = "object_size_10m", skip_serializing_if = "Option::is_none")]
    pub object_size_10m: Option<i64>,
    /// Number of objects served that were between 10MB and 100MB in size.
    #[serde(rename = "object_size_100m", skip_serializing_if = "Option::is_none")]
    pub object_size_100m: Option<i64>,
    /// Number of objects served that were between 100MB and 1GB in size.
    #[serde(rename = "object_size_1g", skip_serializing_if = "Option::is_none")]
    pub object_size_1g: Option<i64>,
    /// Time spent inside the `vcl_recv` Varnish subroutine (in seconds).
    #[serde(rename = "recv_sub_time", skip_serializing_if = "Option::is_none")]
    pub recv_sub_time: Option<f32>,
    /// Number of executions of the `vcl_recv` Varnish subroutine.
    #[serde(rename = "recv_sub_count", skip_serializing_if = "Option::is_none")]
    pub recv_sub_count: Option<i64>,
    /// Time spent inside the `vcl_hash` Varnish subroutine (in seconds).
    #[serde(rename = "hash_sub_time", skip_serializing_if = "Option::is_none")]
    pub hash_sub_time: Option<f32>,
    /// Number of executions of the `vcl_hash` Varnish subroutine.
    #[serde(rename = "hash_sub_count", skip_serializing_if = "Option::is_none")]
    pub hash_sub_count: Option<i64>,
    /// Time spent inside the `vcl_miss` Varnish subroutine (in seconds).
    #[serde(rename = "miss_sub_time", skip_serializing_if = "Option::is_none")]
    pub miss_sub_time: Option<f32>,
    /// Number of executions of the `vcl_miss` Varnish subroutine.
    #[serde(rename = "miss_sub_count", skip_serializing_if = "Option::is_none")]
    pub miss_sub_count: Option<i64>,
    /// Time spent inside the `vcl_fetch` Varnish subroutine (in seconds).
    #[serde(rename = "fetch_sub_time", skip_serializing_if = "Option::is_none")]
    pub fetch_sub_time: Option<f32>,
    /// Number of executions of the `vcl_fetch` Varnish subroutine.
    #[serde(rename = "fetch_sub_count", skip_serializing_if = "Option::is_none")]
    pub fetch_sub_count: Option<i64>,
    /// Time spent inside the `vcl_pass` Varnish subroutine (in seconds).
    #[serde(rename = "pass_sub_time", skip_serializing_if = "Option::is_none")]
    pub pass_sub_time: Option<f32>,
    /// Number of executions of the `vcl_pass` Varnish subroutine.
    #[serde(rename = "pass_sub_count", skip_serializing_if = "Option::is_none")]
    pub pass_sub_count: Option<i64>,
    /// Time spent inside the `vcl_pipe` Varnish subroutine (in seconds).
    #[serde(rename = "pipe_sub_time", skip_serializing_if = "Option::is_none")]
    pub pipe_sub_time: Option<f32>,
    /// Number of executions of the `vcl_pipe` Varnish subroutine.
    #[serde(rename = "pipe_sub_count", skip_serializing_if = "Option::is_none")]
    pub pipe_sub_count: Option<i64>,
    /// Time spent inside the `vcl_deliver` Varnish subroutine (in seconds).
    #[serde(rename = "deliver_sub_time", skip_serializing_if = "Option::is_none")]
    pub deliver_sub_time: Option<f32>,
    /// Number of executions of the `vcl_deliver` Varnish subroutine.
    #[serde(rename = "deliver_sub_count", skip_serializing_if = "Option::is_none")]
    pub deliver_sub_count: Option<i64>,
    /// Time spent inside the `vcl_error` Varnish subroutine (in seconds).
    #[serde(rename = "error_sub_time", skip_serializing_if = "Option::is_none")]
    pub error_sub_time: Option<f32>,
    /// Number of executions of the `vcl_error` Varnish subroutine.
    #[serde(rename = "error_sub_count", skip_serializing_if = "Option::is_none")]
    pub error_sub_count: Option<i64>,
    /// Time spent inside the `vcl_hit` Varnish subroutine (in seconds).
    #[serde(rename = "hit_sub_time", skip_serializing_if = "Option::is_none")]
    pub hit_sub_time: Option<f32>,
    /// Number of executions of the `vcl_hit` Varnish subroutine.
    #[serde(rename = "hit_sub_count", skip_serializing_if = "Option::is_none")]
    pub hit_sub_count: Option<i64>,
    /// Time spent inside the `vcl_prehash` Varnish subroutine (in seconds).
    #[serde(rename = "prehash_sub_time", skip_serializing_if = "Option::is_none")]
    pub prehash_sub_time: Option<f32>,
    /// Number of executions of the `vcl_prehash` Varnish subroutine.
    #[serde(rename = "prehash_sub_count", skip_serializing_if = "Option::is_none")]
    pub prehash_sub_count: Option<i64>,
    /// Time spent inside the `vcl_predeliver` Varnish subroutine (in seconds).
    #[serde(rename = "predeliver_sub_time", skip_serializing_if = "Option::is_none")]
    pub predeliver_sub_time: Option<f32>,
    /// Number of executions of the `vcl_predeliver` Varnish subroutine.
    #[serde(rename = "predeliver_sub_count", skip_serializing_if = "Option::is_none")]
    pub predeliver_sub_count: Option<i64>,
    /// Number of bytes transferred during TLS handshake.
    #[serde(rename = "tls_handshake_sent_bytes", skip_serializing_if = "Option::is_none")]
    pub tls_handshake_sent_bytes: Option<i64>,
    /// Total body bytes delivered for cache hits.
    #[serde(rename = "hit_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub hit_resp_body_bytes: Option<i64>,
    /// Total body bytes delivered for cache misses.
    #[serde(rename = "miss_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub miss_resp_body_bytes: Option<i64>,
    /// Total body bytes delivered for cache passes.
    #[serde(rename = "pass_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub pass_resp_body_bytes: Option<i64>,
    /// Number of `Range` requests to origin for segments of resources when using segmented caching.
    #[serde(rename = "segblock_origin_fetches", skip_serializing_if = "Option::is_none")]
    pub segblock_origin_fetches: Option<i64>,
    /// Number of `Range` requests to a shield for segments of resources when using segmented caching.
    #[serde(rename = "segblock_shield_fetches", skip_serializing_if = "Option::is_none")]
    pub segblock_shield_fetches: Option<i64>,
    /// The total number of requests that were received for your service by Fastly.
    #[serde(rename = "compute_requests", skip_serializing_if = "Option::is_none")]
    pub compute_requests: Option<i64>,
    /// The total, actual amount of time used to process your requests, including active CPU time (in milliseconds).
    #[serde(rename = "compute_request_time_ms", skip_serializing_if = "Option::is_none")]
    pub compute_request_time_ms: Option<f32>,
    /// The total amount of request processing time you will be billed for, measured in 50 millisecond increments.
    #[serde(rename = "compute_request_time_billed_ms", skip_serializing_if = "Option::is_none")]
    pub compute_request_time_billed_ms: Option<f32>,
    /// The amount of RAM used for your service by Fastly (in bytes).
    #[serde(rename = "compute_ram_used", skip_serializing_if = "Option::is_none")]
    pub compute_ram_used: Option<i64>,
    /// The amount of active CPU time used to process your requests (in milliseconds).
    #[serde(rename = "compute_execution_time_ms", skip_serializing_if = "Option::is_none")]
    pub compute_execution_time_ms: Option<f32>,
    /// Total header bytes received by the Compute platform.
    #[serde(rename = "compute_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_req_header_bytes: Option<i64>,
    /// Total body bytes received by the Compute platform.
    #[serde(rename = "compute_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_req_body_bytes: Option<i64>,
    /// Total header bytes sent from Compute to end user.
    #[serde(rename = "compute_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_resp_header_bytes: Option<i64>,
    /// Total body bytes sent from Compute to end user.
    #[serde(rename = "compute_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_resp_body_bytes: Option<i64>,
    /// Number of \"Informational\" category status codes delivered by the Compute platform.
    #[serde(rename = "compute_resp_status_1xx", skip_serializing_if = "Option::is_none")]
    pub compute_resp_status_1xx: Option<i64>,
    /// Number of \"Success\" category status codes delivered by the Compute platform.
    #[serde(rename = "compute_resp_status_2xx", skip_serializing_if = "Option::is_none")]
    pub compute_resp_status_2xx: Option<i64>,
    /// Number of \"Redirection\" category status codes delivered by the Compute platform.
    #[serde(rename = "compute_resp_status_3xx", skip_serializing_if = "Option::is_none")]
    pub compute_resp_status_3xx: Option<i64>,
    /// Number of \"Client Error\" category status codes delivered by the Compute platform.
    #[serde(rename = "compute_resp_status_4xx", skip_serializing_if = "Option::is_none")]
    pub compute_resp_status_4xx: Option<i64>,
    /// Number of \"Server Error\" category status codes delivered by the Compute platform.
    #[serde(rename = "compute_resp_status_5xx", skip_serializing_if = "Option::is_none")]
    pub compute_resp_status_5xx: Option<i64>,
    /// Total header bytes sent to backends (origins) by the Compute platform.
    #[serde(rename = "compute_bereq_header_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_bereq_header_bytes: Option<i64>,
    /// Total body bytes sent to backends (origins) by the Compute platform.
    #[serde(rename = "compute_bereq_body_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_bereq_body_bytes: Option<i64>,
    /// Total header bytes received from backends (origins) by the Compute platform.
    #[serde(rename = "compute_beresp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_beresp_header_bytes: Option<i64>,
    /// Total body bytes received from backends (origins) by the Compute platform.
    #[serde(rename = "compute_beresp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub compute_beresp_body_bytes: Option<i64>,
    /// Number of backend requests started.
    #[serde(rename = "compute_bereqs", skip_serializing_if = "Option::is_none")]
    pub compute_bereqs: Option<i64>,
    /// Number of backend request errors, including timeouts.
    #[serde(rename = "compute_bereq_errors", skip_serializing_if = "Option::is_none")]
    pub compute_bereq_errors: Option<i64>,
    /// Number of times a guest exceeded its resource limit, includes heap, stack, globals, and code execution timeout.
    #[serde(rename = "compute_resource_limit_exceeded", skip_serializing_if = "Option::is_none")]
    pub compute_resource_limit_exceeded: Option<i64>,
    /// Number of times a guest exceeded its heap limit.
    #[serde(rename = "compute_heap_limit_exceeded", skip_serializing_if = "Option::is_none")]
    pub compute_heap_limit_exceeded: Option<i64>,
    /// Number of times a guest exceeded its stack limit.
    #[serde(rename = "compute_stack_limit_exceeded", skip_serializing_if = "Option::is_none")]
    pub compute_stack_limit_exceeded: Option<i64>,
    /// Number of times a guest exceeded its globals limit.
    #[serde(rename = "compute_globals_limit_exceeded", skip_serializing_if = "Option::is_none")]
    pub compute_globals_limit_exceeded: Option<i64>,
    /// Number of times a service experienced a guest code error.
    #[serde(rename = "compute_guest_errors", skip_serializing_if = "Option::is_none")]
    pub compute_guest_errors: Option<i64>,
    /// Number of times a service experienced a guest runtime error.
    #[serde(rename = "compute_runtime_errors", skip_serializing_if = "Option::is_none")]
    pub compute_runtime_errors: Option<i64>,
    /// Body bytes delivered for edge hits.
    #[serde(rename = "edge_hit_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_hit_resp_body_bytes: Option<i64>,
    /// Header bytes delivered for edge hits.
    #[serde(rename = "edge_hit_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_hit_resp_header_bytes: Option<i64>,
    /// Body bytes delivered for edge misses.
    #[serde(rename = "edge_miss_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_miss_resp_body_bytes: Option<i64>,
    /// Header bytes delivered for edge misses.
    #[serde(rename = "edge_miss_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub edge_miss_resp_header_bytes: Option<i64>,
    /// Body bytes received from origin for cacheable content.
    #[serde(rename = "origin_cache_fetch_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_cache_fetch_resp_body_bytes: Option<i64>,
    /// Header bytes received from an origin for cacheable content.
    #[serde(rename = "origin_cache_fetch_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub origin_cache_fetch_resp_header_bytes: Option<i64>,
    /// Number of requests that resulted in a hit at a shield.
    #[serde(rename = "shield_hit_requests", skip_serializing_if = "Option::is_none")]
    pub shield_hit_requests: Option<i64>,
    /// Number of requests that resulted in a miss at a shield.
    #[serde(rename = "shield_miss_requests", skip_serializing_if = "Option::is_none")]
    pub shield_miss_requests: Option<i64>,
    /// Header bytes delivered for shield hits.
    #[serde(rename = "shield_hit_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_hit_resp_header_bytes: Option<i64>,
    /// Body bytes delivered for shield hits.
    #[serde(rename = "shield_hit_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_hit_resp_body_bytes: Option<i64>,
    /// Header bytes delivered for shield misses.
    #[serde(rename = "shield_miss_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_miss_resp_header_bytes: Option<i64>,
    /// Body bytes delivered for shield misses.
    #[serde(rename = "shield_miss_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub shield_miss_resp_body_bytes: Option<i64>,
    /// Total header bytes received from end users over passthrough WebSocket connections.
    #[serde(rename = "websocket_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_req_header_bytes: Option<i64>,
    /// Total message content bytes received from end users over passthrough WebSocket connections.
    #[serde(rename = "websocket_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_req_body_bytes: Option<i64>,
    /// Total header bytes sent to end users over passthrough WebSocket connections.
    #[serde(rename = "websocket_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_resp_header_bytes: Option<i64>,
    /// Total message content bytes sent to end users over passthrough WebSocket connections.
    #[serde(rename = "websocket_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_resp_body_bytes: Option<i64>,
    /// Total header bytes sent to backends over passthrough WebSocket connections.
    #[serde(rename = "websocket_bereq_header_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_bereq_header_bytes: Option<i64>,
    /// Total message content bytes sent to backends over passthrough WebSocket connections.
    #[serde(rename = "websocket_bereq_body_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_bereq_body_bytes: Option<i64>,
    /// Total header bytes received from backends over passthrough WebSocket connections.
    #[serde(rename = "websocket_beresp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_beresp_header_bytes: Option<i64>,
    /// Total message content bytes received from backends over passthrough WebSocket connections.
    #[serde(rename = "websocket_beresp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub websocket_beresp_body_bytes: Option<i64>,
    /// Total duration of passthrough WebSocket connections with end users.
    #[serde(rename = "websocket_conn_time_ms", skip_serializing_if = "Option::is_none")]
    pub websocket_conn_time_ms: Option<i64>,
    /// Total published messages received from the publish API endpoint.
    #[serde(rename = "fanout_recv_publishes", skip_serializing_if = "Option::is_none")]
    pub fanout_recv_publishes: Option<i64>,
    /// Total published messages sent to end users.
    #[serde(rename = "fanout_send_publishes", skip_serializing_if = "Option::is_none")]
    pub fanout_send_publishes: Option<i64>,
    /// The total number of class a operations for the KV store.
    #[serde(rename = "kv_store_class_a_operations", skip_serializing_if = "Option::is_none")]
    pub kv_store_class_a_operations: Option<i64>,
    /// The total number of class b operations for the KV store.
    #[serde(rename = "kv_store_class_b_operations", skip_serializing_if = "Option::is_none")]
    pub kv_store_class_b_operations: Option<i64>,
    /// Use kv_store_class_a_operations.
    #[serde(rename = "object_store_class_a_operations", skip_serializing_if = "Option::is_none")]
    pub object_store_class_a_operations: Option<i64>,
    /// Use kv_store_class_b_operations.
    #[serde(rename = "object_store_class_b_operations", skip_serializing_if = "Option::is_none")]
    pub object_store_class_b_operations: Option<i64>,
    /// Total header bytes received from end users over Fanout connections.
    #[serde(rename = "fanout_req_header_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_req_header_bytes: Option<i64>,
    /// Total body or message content bytes received from end users over Fanout connections.
    #[serde(rename = "fanout_req_body_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_req_body_bytes: Option<i64>,
    /// Total header bytes sent to end users over Fanout connections.
    #[serde(rename = "fanout_resp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_resp_header_bytes: Option<i64>,
    /// Total body or message content bytes sent to end users over Fanout connections, excluding published message content.
    #[serde(rename = "fanout_resp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_resp_body_bytes: Option<i64>,
    /// Total header bytes sent to backends over Fanout connections.
    #[serde(rename = "fanout_bereq_header_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_bereq_header_bytes: Option<i64>,
    /// Total body or message content bytes sent to backends over Fanout connections.
    #[serde(rename = "fanout_bereq_body_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_bereq_body_bytes: Option<i64>,
    /// Total header bytes received from backends over Fanout connections.
    #[serde(rename = "fanout_beresp_header_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_beresp_header_bytes: Option<i64>,
    /// Total body or message content bytes received from backends over Fanout connections.
    #[serde(rename = "fanout_beresp_body_bytes", skip_serializing_if = "Option::is_none")]
    pub fanout_beresp_body_bytes: Option<i64>,
    /// Total duration of Fanout connections with end users.
    #[serde(rename = "fanout_conn_time_ms", skip_serializing_if = "Option::is_none")]
    pub fanout_conn_time_ms: Option<i64>,
    /// 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.
    #[serde(rename = "ddos_action_limit_streams_connections", skip_serializing_if = "Option::is_none")]
    pub ddos_action_limit_streams_connections: Option<i64>,
    /// 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.
    #[serde(rename = "ddos_action_limit_streams_requests", skip_serializing_if = "Option::is_none")]
    pub ddos_action_limit_streams_requests: Option<i64>,
    /// The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.
    #[serde(rename = "ddos_action_tarpit_accept", skip_serializing_if = "Option::is_none")]
    pub ddos_action_tarpit_accept: Option<i64>,
    /// The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.
    #[serde(rename = "ddos_action_tarpit", skip_serializing_if = "Option::is_none")]
    pub ddos_action_tarpit: Option<i64>,
    /// 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.
    #[serde(rename = "ddos_action_close", skip_serializing_if = "Option::is_none")]
    pub ddos_action_close: Option<i64>,
    /// 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).
    #[serde(rename = "ddos_action_blackhole", skip_serializing_if = "Option::is_none")]
    pub ddos_action_blackhole: Option<i64>,
    /// The number of challenge-start tokens created.
    #[serde(rename = "bot_challenge_starts", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_starts: Option<i64>,
    /// The number of challenge-complete tokens that passed validation.
    #[serde(rename = "bot_challenge_complete_tokens_passed", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_complete_tokens_passed: Option<i64>,
    /// The number of challenge-complete tokens that failed validation.
    #[serde(rename = "bot_challenge_complete_tokens_failed", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_complete_tokens_failed: Option<i64>,
    /// The number of challenge-complete tokens checked.
    #[serde(rename = "bot_challenge_complete_tokens_checked", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_complete_tokens_checked: Option<i64>,
    /// The number of challenge-complete tokens not checked because the feature was disabled.
    #[serde(rename = "bot_challenge_complete_tokens_disabled", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_complete_tokens_disabled: Option<i64>,
    /// The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.
    #[serde(rename = "bot_challenge_complete_tokens_issued", skip_serializing_if = "Option::is_none")]
    pub bot_challenge_complete_tokens_issued: Option<i64>,
    /// The number of challenges issued. For example, the issuance of a CAPTCHA challenge.
    #[serde(rename = "bot_challenges_issued", skip_serializing_if = "Option::is_none")]
    pub bot_challenges_issued: Option<i64>,
    /// The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.
    #[serde(rename = "bot_challenges_succeeded", skip_serializing_if = "Option::is_none")]
    pub bot_challenges_succeeded: Option<i64>,
    /// The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
    #[serde(rename = "bot_challenges_failed", skip_serializing_if = "Option::is_none")]
    pub bot_challenges_failed: Option<i64>,
    /// The number of times the downgrade action was taken. The downgrade action restricts the client to http1.
    #[serde(rename = "ddos_action_downgrade", skip_serializing_if = "Option::is_none")]
    pub ddos_action_downgrade: Option<i64>,
    /// The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.
    #[serde(rename = "ddos_action_downgraded_connections", skip_serializing_if = "Option::is_none")]
    pub ddos_action_downgraded_connections: Option<i64>,
    /// Number of cache hits for a VCL service.
    #[serde(rename = "all_hit_requests", skip_serializing_if = "Option::is_none")]
    pub all_hit_requests: Option<i64>,
    /// Number of cache misses for a VCL service.
    #[serde(rename = "all_miss_requests", skip_serializing_if = "Option::is_none")]
    pub all_miss_requests: Option<i64>,
    /// Number of requests that passed through the CDN without being cached for a VCL service.
    #[serde(rename = "all_pass_requests", skip_serializing_if = "Option::is_none")]
    pub all_pass_requests: Option<i64>,
    /// Number of cache errors for a VCL service.
    #[serde(rename = "all_error_requests", skip_serializing_if = "Option::is_none")]
    pub all_error_requests: Option<i64>,
    /// Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.
    #[serde(rename = "all_synth_requests", skip_serializing_if = "Option::is_none")]
    pub all_synth_requests: Option<i64>,
    /// Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.
    #[serde(rename = "all_edge_hit_requests", skip_serializing_if = "Option::is_none")]
    pub all_edge_hit_requests: Option<i64>,
    /// Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.
    #[serde(rename = "all_edge_miss_requests", skip_serializing_if = "Option::is_none")]
    pub all_edge_miss_requests: Option<i64>,
    /// Number of \"Informational\" category status codes delivered for all sources.
    #[serde(rename = "all_status_1xx", skip_serializing_if = "Option::is_none")]
    pub all_status_1xx: Option<i64>,
    /// Number of \"Success\" status codes delivered for all sources.
    #[serde(rename = "all_status_2xx", skip_serializing_if = "Option::is_none")]
    pub all_status_2xx: Option<i64>,
    /// Number of \"Redirection\" codes delivered for all sources.
    #[serde(rename = "all_status_3xx", skip_serializing_if = "Option::is_none")]
    pub all_status_3xx: Option<i64>,
    /// Number of \"Client Error\" codes delivered for all sources.
    #[serde(rename = "all_status_4xx", skip_serializing_if = "Option::is_none")]
    pub all_status_4xx: Option<i64>,
    /// Number of \"Server Error\" codes delivered for all sources.
    #[serde(rename = "all_status_5xx", skip_serializing_if = "Option::is_none")]
    pub all_status_5xx: Option<i64>,
    /// Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1. ((`edge_resp_body_bytes` + `edge_resp_header_bytes`) - (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes`)) / (`edge_resp_body_bytes` + `edge_resp_header_bytes`).
    #[serde(rename = "origin_offload", skip_serializing_if = "Option::is_none")]
    pub origin_offload: Option<f32>,
    /// Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body.
    #[serde(rename = "request_denied_get_head_body", skip_serializing_if = "Option::is_none")]
    pub request_denied_get_head_body: Option<i64>,
    /// Number of requests classified as a DDoS attack against a customer origin or service.
    #[serde(rename = "ddos_protection_requests_detect_count", skip_serializing_if = "Option::is_none")]
    pub ddos_protection_requests_detect_count: Option<i64>,
    /// Number of requests classified as a DDoS attack against a customer origin or service that were mitigated by the Fastly platform.
    #[serde(rename = "ddos_protection_requests_mitigate_count", skip_serializing_if = "Option::is_none")]
    pub ddos_protection_requests_mitigate_count: Option<i64>,
    /// Number of requests analyzed for DDoS attacks against a customer origin or service, but with no DDoS detected.
    #[serde(rename = "ddos_protection_requests_allow_count", skip_serializing_if = "Option::is_none")]
    pub ddos_protection_requests_allow_count: Option<i64>,
    /// A count of the number of Class A Object Storage operations.
    #[serde(rename = "object_storage_class_a_operations_count", skip_serializing_if = "Option::is_none")]
    pub object_storage_class_a_operations_count: Option<i64>,
    /// A count of the number of Class B Object Storage operations.
    #[serde(rename = "object_storage_class_b_operations_count", skip_serializing_if = "Option::is_none")]
    pub object_storage_class_b_operations_count: Option<i64>,
    /// Number of requests received by AI Accelerator.
    #[serde(rename = "aia_requests", skip_serializing_if = "Option::is_none")]
    pub aia_requests: Option<i64>,
    /// Number of \"Informational\" category status codes received from AI provider.
    #[serde(rename = "aia_status_1xx", skip_serializing_if = "Option::is_none")]
    pub aia_status_1xx: Option<i64>,
    /// Number of \"Success\" status codes received from AI provider.
    #[serde(rename = "aia_status_2xx", skip_serializing_if = "Option::is_none")]
    pub aia_status_2xx: Option<i64>,
    /// Number of \"Redirection\" received from AI provider.
    #[serde(rename = "aia_status_3xx", skip_serializing_if = "Option::is_none")]
    pub aia_status_3xx: Option<i64>,
    /// Number of \"Client Error\" received from AI provider.
    #[serde(rename = "aia_status_4xx", skip_serializing_if = "Option::is_none")]
    pub aia_status_4xx: Option<i64>,
    /// Number of \"Server Error\" received from AI provider.
    #[serde(rename = "aia_status_5xx", skip_serializing_if = "Option::is_none")]
    pub aia_status_5xx: Option<i64>,
    /// The usage tokens associated with the response returned from the AI Accelerator cache.
    #[serde(rename = "aia_response_usage_tokens", skip_serializing_if = "Option::is_none")]
    pub aia_response_usage_tokens: Option<i64>,
    /// The number of usage tokens reported by the request to the origin from AI Accelerator.
    #[serde(rename = "aia_origin_usage_tokens", skip_serializing_if = "Option::is_none")]
    pub aia_origin_usage_tokens: Option<i64>,
    /// The estimated amount of time saved by responses served from the AI Accelerator semantic cache.
    #[serde(rename = "aia_estimated_time_saved_ms", skip_serializing_if = "Option::is_none")]
    pub aia_estimated_time_saved_ms: Option<i64>,
    /// Number of requests that were collapsed and satisfied by a usable cache object.
    #[serde(rename = "request_collapse_usable_count", skip_serializing_if = "Option::is_none")]
    pub request_collapse_usable_count: Option<i64>,
    /// Number of requests that were collapsed and unable to be satisfied by the resulting cache object.
    #[serde(rename = "request_collapse_unusable_count", skip_serializing_if = "Option::is_none")]
    pub request_collapse_unusable_count: Option<i64>,
    /// Number of cache operations executed by the Compute platform.
    #[serde(rename = "compute_cache_operations_count", skip_serializing_if = "Option::is_none")]
    pub compute_cache_operations_count: Option<i64>,
    /// Total number of Next-Gen WAF (Edge WAF & Core WAF) requests.
    #[serde(rename = "ngwaf_requests_total_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_total_count: Option<i32>,
    /// Count of Edge WAF requests with an unknown outcome.
    #[serde(rename = "ngwaf_requests_unknown_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_unknown_count: Option<i32>,
    /// Count of Next-Gen WAF (Edge WAF & Core WAF) requests allowed.
    #[serde(rename = "ngwaf_requests_allowed_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_allowed_count: Option<i32>,
    /// Count of Edge WAF requests logged.
    #[serde(rename = "ngwaf_requests_logged_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_logged_count: Option<i32>,
    /// Count of Next-Gen WAF (Edge WAF & Core WAF) requests blocked.
    #[serde(rename = "ngwaf_requests_blocked_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_blocked_count: Option<i32>,
    /// Count of Edge WAF requests timed outcome.
    #[serde(rename = "ngwaf_requests_timeout_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_timeout_count: Option<i32>,
    /// Count of Edge WAF requests challenged.
    #[serde(rename = "ngwaf_requests_challenged_count", skip_serializing_if = "Option::is_none")]
    pub ngwaf_requests_challenged_count: Option<i32>,
    #[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
    pub service_id: Option<Box<String>>,
    /// Timestamp for the start of the time period being reported
    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
    pub start_time: Option<i64>,
}

impl Results {
    /// The results of stats queries, may be grouped by service depending on endpoint, and aggregated over the appropriate time span.
    pub fn new() -> Results {
        Results {
            requests: None,
            hits: None,
            hits_time: None,
            miss: None,
            miss_time: None,
            pass: None,
            pass_time: None,
            errors: None,
            restarts: None,
            hit_ratio: None,
            bandwidth: None,
            body_size: None,
            header_size: None,
            req_body_bytes: None,
            req_header_bytes: None,
            resp_body_bytes: None,
            resp_header_bytes: None,
            bereq_body_bytes: None,
            bereq_header_bytes: None,
            uncacheable: None,
            pipe: None,
            synth: None,
            tls: None,
            tls_v10: None,
            tls_v11: None,
            tls_v12: None,
            tls_v13: None,
            edge_requests: None,
            edge_resp_header_bytes: None,
            edge_resp_body_bytes: None,
            edge_hit_requests: None,
            edge_miss_requests: None,
            origin_fetches: None,
            origin_fetch_header_bytes: None,
            origin_fetch_body_bytes: None,
            origin_fetch_resp_header_bytes: None,
            origin_fetch_resp_body_bytes: None,
            origin_revalidations: None,
            origin_cache_fetches: None,
            shield: None,
            shield_resp_body_bytes: None,
            shield_resp_header_bytes: None,
            shield_fetches: None,
            shield_fetch_header_bytes: None,
            shield_fetch_body_bytes: None,
            shield_fetch_resp_header_bytes: None,
            shield_fetch_resp_body_bytes: None,
            shield_revalidations: None,
            shield_cache_fetches: None,
            ipv6: None,
            otfp: None,
            otfp_resp_body_bytes: None,
            otfp_resp_header_bytes: None,
            otfp_shield_resp_body_bytes: None,
            otfp_shield_resp_header_bytes: None,
            otfp_manifests: None,
            otfp_deliver_time: None,
            otfp_shield_time: None,
            video: None,
            pci: None,
            log: None,
            log_bytes: None,
            http2: None,
            http3: None,
            waf_logged: None,
            waf_blocked: None,
            waf_passed: None,
            attack_req_body_bytes: None,
            attack_req_header_bytes: None,
            attack_logged_req_body_bytes: None,
            attack_logged_req_header_bytes: None,
            attack_blocked_req_body_bytes: None,
            attack_blocked_req_header_bytes: None,
            attack_passed_req_body_bytes: None,
            attack_passed_req_header_bytes: None,
            attack_resp_synth_bytes: None,
            imgopto: None,
            imgopto_resp_body_bytes: None,
            imgopto_resp_header_bytes: None,
            imgopto_shield: None,
            imgopto_shield_resp_body_bytes: None,
            imgopto_shield_resp_header_bytes: None,
            imgopto_transforms: None,
            imgvideo: None,
            imgvideo_frames: None,
            imgvideo_resp_header_bytes: None,
            imgvideo_resp_body_bytes: None,
            imgvideo_shield_resp_header_bytes: None,
            imgvideo_shield_resp_body_bytes: None,
            imgvideo_shield: None,
            imgvideo_shield_frames: None,
            status_200: None,
            status_204: None,
            status_206: None,
            status_301: None,
            status_302: None,
            status_304: None,
            status_400: None,
            status_401: None,
            status_403: None,
            status_404: None,
            status_406: None,
            status_416: None,
            status_429: None,
            status_500: None,
            status_501: None,
            status_502: None,
            status_503: None,
            status_504: None,
            status_505: None,
            status_530: None,
            status_1xx: None,
            status_2xx: None,
            status_3xx: None,
            status_4xx: None,
            status_5xx: None,
            object_size_1k: None,
            object_size_10k: None,
            object_size_100k: None,
            object_size_1m: None,
            object_size_10m: None,
            object_size_100m: None,
            object_size_1g: None,
            recv_sub_time: None,
            recv_sub_count: None,
            hash_sub_time: None,
            hash_sub_count: None,
            miss_sub_time: None,
            miss_sub_count: None,
            fetch_sub_time: None,
            fetch_sub_count: None,
            pass_sub_time: None,
            pass_sub_count: None,
            pipe_sub_time: None,
            pipe_sub_count: None,
            deliver_sub_time: None,
            deliver_sub_count: None,
            error_sub_time: None,
            error_sub_count: None,
            hit_sub_time: None,
            hit_sub_count: None,
            prehash_sub_time: None,
            prehash_sub_count: None,
            predeliver_sub_time: None,
            predeliver_sub_count: None,
            tls_handshake_sent_bytes: None,
            hit_resp_body_bytes: None,
            miss_resp_body_bytes: None,
            pass_resp_body_bytes: None,
            segblock_origin_fetches: None,
            segblock_shield_fetches: None,
            compute_requests: None,
            compute_request_time_ms: None,
            compute_request_time_billed_ms: None,
            compute_ram_used: None,
            compute_execution_time_ms: None,
            compute_req_header_bytes: None,
            compute_req_body_bytes: None,
            compute_resp_header_bytes: None,
            compute_resp_body_bytes: None,
            compute_resp_status_1xx: None,
            compute_resp_status_2xx: None,
            compute_resp_status_3xx: None,
            compute_resp_status_4xx: None,
            compute_resp_status_5xx: None,
            compute_bereq_header_bytes: None,
            compute_bereq_body_bytes: None,
            compute_beresp_header_bytes: None,
            compute_beresp_body_bytes: None,
            compute_bereqs: None,
            compute_bereq_errors: None,
            compute_resource_limit_exceeded: None,
            compute_heap_limit_exceeded: None,
            compute_stack_limit_exceeded: None,
            compute_globals_limit_exceeded: None,
            compute_guest_errors: None,
            compute_runtime_errors: None,
            edge_hit_resp_body_bytes: None,
            edge_hit_resp_header_bytes: None,
            edge_miss_resp_body_bytes: None,
            edge_miss_resp_header_bytes: None,
            origin_cache_fetch_resp_body_bytes: None,
            origin_cache_fetch_resp_header_bytes: None,
            shield_hit_requests: None,
            shield_miss_requests: None,
            shield_hit_resp_header_bytes: None,
            shield_hit_resp_body_bytes: None,
            shield_miss_resp_header_bytes: None,
            shield_miss_resp_body_bytes: None,
            websocket_req_header_bytes: None,
            websocket_req_body_bytes: None,
            websocket_resp_header_bytes: None,
            websocket_resp_body_bytes: None,
            websocket_bereq_header_bytes: None,
            websocket_bereq_body_bytes: None,
            websocket_beresp_header_bytes: None,
            websocket_beresp_body_bytes: None,
            websocket_conn_time_ms: None,
            fanout_recv_publishes: None,
            fanout_send_publishes: None,
            kv_store_class_a_operations: None,
            kv_store_class_b_operations: None,
            object_store_class_a_operations: None,
            object_store_class_b_operations: None,
            fanout_req_header_bytes: None,
            fanout_req_body_bytes: None,
            fanout_resp_header_bytes: None,
            fanout_resp_body_bytes: None,
            fanout_bereq_header_bytes: None,
            fanout_bereq_body_bytes: None,
            fanout_beresp_header_bytes: None,
            fanout_beresp_body_bytes: None,
            fanout_conn_time_ms: None,
            ddos_action_limit_streams_connections: None,
            ddos_action_limit_streams_requests: None,
            ddos_action_tarpit_accept: None,
            ddos_action_tarpit: None,
            ddos_action_close: None,
            ddos_action_blackhole: None,
            bot_challenge_starts: None,
            bot_challenge_complete_tokens_passed: None,
            bot_challenge_complete_tokens_failed: None,
            bot_challenge_complete_tokens_checked: None,
            bot_challenge_complete_tokens_disabled: None,
            bot_challenge_complete_tokens_issued: None,
            bot_challenges_issued: None,
            bot_challenges_succeeded: None,
            bot_challenges_failed: None,
            ddos_action_downgrade: None,
            ddos_action_downgraded_connections: None,
            all_hit_requests: None,
            all_miss_requests: None,
            all_pass_requests: None,
            all_error_requests: None,
            all_synth_requests: None,
            all_edge_hit_requests: None,
            all_edge_miss_requests: None,
            all_status_1xx: None,
            all_status_2xx: None,
            all_status_3xx: None,
            all_status_4xx: None,
            all_status_5xx: None,
            origin_offload: None,
            request_denied_get_head_body: None,
            ddos_protection_requests_detect_count: None,
            ddos_protection_requests_mitigate_count: None,
            ddos_protection_requests_allow_count: None,
            object_storage_class_a_operations_count: None,
            object_storage_class_b_operations_count: None,
            aia_requests: None,
            aia_status_1xx: None,
            aia_status_2xx: None,
            aia_status_3xx: None,
            aia_status_4xx: None,
            aia_status_5xx: None,
            aia_response_usage_tokens: None,
            aia_origin_usage_tokens: None,
            aia_estimated_time_saved_ms: None,
            request_collapse_usable_count: None,
            request_collapse_unusable_count: None,
            compute_cache_operations_count: None,
            ngwaf_requests_total_count: None,
            ngwaf_requests_unknown_count: None,
            ngwaf_requests_allowed_count: None,
            ngwaf_requests_logged_count: None,
            ngwaf_requests_blocked_count: None,
            ngwaf_requests_timeout_count: None,
            ngwaf_requests_challenged_count: None,
            service_id: None,
            start_time: None,
        }
    }
}