Class: Fastly::Values

Inherits:
Object
  • Object
show all
Defined in:
lib/fastly/models/values.rb

Overview

The results of the query, optionally filtered and grouped over the requested timespan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Values

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
# File 'lib/fastly/models/values.rb', line 677

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::Values` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::Values`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'edge_requests')
    self.edge_requests = attributes[:'edge_requests']
  end

  if attributes.key?(:'edge_resp_header_bytes')
    self.edge_resp_header_bytes = attributes[:'edge_resp_header_bytes']
  end

  if attributes.key?(:'edge_resp_body_bytes')
    self.edge_resp_body_bytes = attributes[:'edge_resp_body_bytes']
  end

  if attributes.key?(:'status_1xx')
    self.status_1xx = attributes[:'status_1xx']
  end

  if attributes.key?(:'status_2xx')
    self.status_2xx = attributes[:'status_2xx']
  end

  if attributes.key?(:'status_3xx')
    self.status_3xx = attributes[:'status_3xx']
  end

  if attributes.key?(:'status_4xx')
    self.status_4xx = attributes[:'status_4xx']
  end

  if attributes.key?(:'status_5xx')
    self.status_5xx = attributes[:'status_5xx']
  end

  if attributes.key?(:'status_200')
    self.status_200 = attributes[:'status_200']
  end

  if attributes.key?(:'status_204')
    self.status_204 = attributes[:'status_204']
  end

  if attributes.key?(:'status_206')
    self.status_206 = attributes[:'status_206']
  end

  if attributes.key?(:'status_301')
    self.status_301 = attributes[:'status_301']
  end

  if attributes.key?(:'status_302')
    self.status_302 = attributes[:'status_302']
  end

  if attributes.key?(:'status_304')
    self.status_304 = attributes[:'status_304']
  end

  if attributes.key?(:'status_400')
    self.status_400 = attributes[:'status_400']
  end

  if attributes.key?(:'status_401')
    self.status_401 = attributes[:'status_401']
  end

  if attributes.key?(:'status_403')
    self.status_403 = attributes[:'status_403']
  end

  if attributes.key?(:'status_404')
    self.status_404 = attributes[:'status_404']
  end

  if attributes.key?(:'status_416')
    self.status_416 = attributes[:'status_416']
  end

  if attributes.key?(:'status_429')
    self.status_429 = attributes[:'status_429']
  end

  if attributes.key?(:'status_500')
    self.status_500 = attributes[:'status_500']
  end

  if attributes.key?(:'status_501')
    self.status_501 = attributes[:'status_501']
  end

  if attributes.key?(:'status_502')
    self.status_502 = attributes[:'status_502']
  end

  if attributes.key?(:'status_503')
    self.status_503 = attributes[:'status_503']
  end

  if attributes.key?(:'status_504')
    self.status_504 = attributes[:'status_504']
  end

  if attributes.key?(:'status_505')
    self.status_505 = attributes[:'status_505']
  end

  if attributes.key?(:'status_530')
    self.status_530 = attributes[:'status_530']
  end

  if attributes.key?(:'requests')
    self.requests = attributes[:'requests']
  end

  if attributes.key?(:'resp_header_bytes')
    self.resp_header_bytes = attributes[:'resp_header_bytes']
  end

  if attributes.key?(:'resp_body_bytes')
    self.resp_body_bytes = attributes[:'resp_body_bytes']
  end

  if attributes.key?(:'bereq_header_bytes')
    self.bereq_header_bytes = attributes[:'bereq_header_bytes']
  end

  if attributes.key?(:'bereq_body_bytes')
    self.bereq_body_bytes = attributes[:'bereq_body_bytes']
  end

  if attributes.key?(:'edge_hit_requests')
    self.edge_hit_requests = attributes[:'edge_hit_requests']
  end

  if attributes.key?(:'edge_miss_requests')
    self.edge_miss_requests = attributes[:'edge_miss_requests']
  end

  if attributes.key?(:'origin_fetches')
    self.origin_fetches = attributes[:'origin_fetches']
  end

  if attributes.key?(:'origin_fetch_resp_header_bytes')
    self.origin_fetch_resp_header_bytes = attributes[:'origin_fetch_resp_header_bytes']
  end

  if attributes.key?(:'origin_fetch_resp_body_bytes')
    self.origin_fetch_resp_body_bytes = attributes[:'origin_fetch_resp_body_bytes']
  end

  if attributes.key?(:'bandwidth')
    self.bandwidth = attributes[:'bandwidth']
  end

  if attributes.key?(:'edge_hit_ratio')
    self.edge_hit_ratio = attributes[:'edge_hit_ratio']
  end

  if attributes.key?(:'origin_offload')
    self.origin_offload = attributes[:'origin_offload']
  end

  if attributes.key?(:'origin_status_200')
    self.origin_status_200 = attributes[:'origin_status_200']
  end

  if attributes.key?(:'origin_status_204')
    self.origin_status_204 = attributes[:'origin_status_204']
  end

  if attributes.key?(:'origin_status_206')
    self.origin_status_206 = attributes[:'origin_status_206']
  end

  if attributes.key?(:'origin_status_301')
    self.origin_status_301 = attributes[:'origin_status_301']
  end

  if attributes.key?(:'origin_status_302')
    self.origin_status_302 = attributes[:'origin_status_302']
  end

  if attributes.key?(:'origin_status_304')
    self.origin_status_304 = attributes[:'origin_status_304']
  end

  if attributes.key?(:'origin_status_400')
    self.origin_status_400 = attributes[:'origin_status_400']
  end

  if attributes.key?(:'origin_status_401')
    self.origin_status_401 = attributes[:'origin_status_401']
  end

  if attributes.key?(:'origin_status_403')
    self.origin_status_403 = attributes[:'origin_status_403']
  end

  if attributes.key?(:'origin_status_404')
    self.origin_status_404 = attributes[:'origin_status_404']
  end

  if attributes.key?(:'origin_status_416')
    self.origin_status_416 = attributes[:'origin_status_416']
  end

  if attributes.key?(:'origin_status_429')
    self.origin_status_429 = attributes[:'origin_status_429']
  end

  if attributes.key?(:'origin_status_500')
    self.origin_status_500 = attributes[:'origin_status_500']
  end

  if attributes.key?(:'origin_status_501')
    self.origin_status_501 = attributes[:'origin_status_501']
  end

  if attributes.key?(:'origin_status_502')
    self.origin_status_502 = attributes[:'origin_status_502']
  end

  if attributes.key?(:'origin_status_503')
    self.origin_status_503 = attributes[:'origin_status_503']
  end

  if attributes.key?(:'origin_status_504')
    self.origin_status_504 = attributes[:'origin_status_504']
  end

  if attributes.key?(:'origin_status_505')
    self.origin_status_505 = attributes[:'origin_status_505']
  end

  if attributes.key?(:'origin_status_530')
    self.origin_status_530 = attributes[:'origin_status_530']
  end

  if attributes.key?(:'origin_status_1xx')
    self.origin_status_1xx = attributes[:'origin_status_1xx']
  end

  if attributes.key?(:'origin_status_2xx')
    self.origin_status_2xx = attributes[:'origin_status_2xx']
  end

  if attributes.key?(:'origin_status_3xx')
    self.origin_status_3xx = attributes[:'origin_status_3xx']
  end

  if attributes.key?(:'origin_status_4xx')
    self.origin_status_4xx = attributes[:'origin_status_4xx']
  end

  if attributes.key?(:'origin_status_5xx')
    self.origin_status_5xx = attributes[:'origin_status_5xx']
  end

  if attributes.key?(:'compute_bereq_body_bytes')
    self.compute_bereq_body_bytes = attributes[:'compute_bereq_body_bytes']
  end

  if attributes.key?(:'compute_bereq_errors')
    self.compute_bereq_errors = attributes[:'compute_bereq_errors']
  end

  if attributes.key?(:'compute_bereq_header_bytes')
    self.compute_bereq_header_bytes = attributes[:'compute_bereq_header_bytes']
  end

  if attributes.key?(:'compute_bereqs')
    self.compute_bereqs = attributes[:'compute_bereqs']
  end

  if attributes.key?(:'compute_beresp_body_bytes')
    self.compute_beresp_body_bytes = attributes[:'compute_beresp_body_bytes']
  end

  if attributes.key?(:'compute_beresp_header_bytes')
    self.compute_beresp_header_bytes = attributes[:'compute_beresp_header_bytes']
  end

  if attributes.key?(:'compute_execution_time_ms')
    self.compute_execution_time_ms = attributes[:'compute_execution_time_ms']
  end

  if attributes.key?(:'compute_origin_status_1xx')
    self.compute_origin_status_1xx = attributes[:'compute_origin_status_1xx']
  end

  if attributes.key?(:'compute_origin_status_200')
    self.compute_origin_status_200 = attributes[:'compute_origin_status_200']
  end

  if attributes.key?(:'compute_origin_status_204')
    self.compute_origin_status_204 = attributes[:'compute_origin_status_204']
  end

  if attributes.key?(:'compute_origin_status_206')
    self.compute_origin_status_206 = attributes[:'compute_origin_status_206']
  end

  if attributes.key?(:'compute_origin_status_2xx')
    self.compute_origin_status_2xx = attributes[:'compute_origin_status_2xx']
  end

  if attributes.key?(:'compute_origin_status_301')
    self.compute_origin_status_301 = attributes[:'compute_origin_status_301']
  end

  if attributes.key?(:'compute_origin_status_302')
    self.compute_origin_status_302 = attributes[:'compute_origin_status_302']
  end

  if attributes.key?(:'compute_origin_status_304')
    self.compute_origin_status_304 = attributes[:'compute_origin_status_304']
  end

  if attributes.key?(:'compute_origin_status_3xx')
    self.compute_origin_status_3xx = attributes[:'compute_origin_status_3xx']
  end

  if attributes.key?(:'compute_origin_status_400')
    self.compute_origin_status_400 = attributes[:'compute_origin_status_400']
  end

  if attributes.key?(:'compute_origin_status_401')
    self.compute_origin_status_401 = attributes[:'compute_origin_status_401']
  end

  if attributes.key?(:'compute_origin_status_403')
    self.compute_origin_status_403 = attributes[:'compute_origin_status_403']
  end

  if attributes.key?(:'compute_origin_status_404')
    self.compute_origin_status_404 = attributes[:'compute_origin_status_404']
  end

  if attributes.key?(:'compute_origin_status_416')
    self.compute_origin_status_416 = attributes[:'compute_origin_status_416']
  end

  if attributes.key?(:'compute_origin_status_429')
    self.compute_origin_status_429 = attributes[:'compute_origin_status_429']
  end

  if attributes.key?(:'compute_origin_status_4xx')
    self.compute_origin_status_4xx = attributes[:'compute_origin_status_4xx']
  end

  if attributes.key?(:'compute_origin_status_500')
    self.compute_origin_status_500 = attributes[:'compute_origin_status_500']
  end

  if attributes.key?(:'compute_origin_status_501')
    self.compute_origin_status_501 = attributes[:'compute_origin_status_501']
  end

  if attributes.key?(:'compute_origin_status_502')
    self.compute_origin_status_502 = attributes[:'compute_origin_status_502']
  end

  if attributes.key?(:'compute_origin_status_503')
    self.compute_origin_status_503 = attributes[:'compute_origin_status_503']
  end

  if attributes.key?(:'compute_origin_status_504')
    self.compute_origin_status_504 = attributes[:'compute_origin_status_504']
  end

  if attributes.key?(:'compute_origin_status_505')
    self.compute_origin_status_505 = attributes[:'compute_origin_status_505']
  end

  if attributes.key?(:'compute_origin_status_530')
    self.compute_origin_status_530 = attributes[:'compute_origin_status_530']
  end

  if attributes.key?(:'compute_origin_status_5xx')
    self.compute_origin_status_5xx = attributes[:'compute_origin_status_5xx']
  end

  if attributes.key?(:'compute_req_body_bytes')
    self.compute_req_body_bytes = attributes[:'compute_req_body_bytes']
  end

  if attributes.key?(:'compute_req_header_bytes')
    self.compute_req_header_bytes = attributes[:'compute_req_header_bytes']
  end

  if attributes.key?(:'compute_request_time_billed_ms')
    self.compute_request_time_billed_ms = attributes[:'compute_request_time_billed_ms']
  end

  if attributes.key?(:'compute_request_time_ms')
    self.compute_request_time_ms = attributes[:'compute_request_time_ms']
  end

  if attributes.key?(:'compute_request')
    self.compute_request = attributes[:'compute_request']
  end

  if attributes.key?(:'compute_resp_body_bytes')
    self.compute_resp_body_bytes = attributes[:'compute_resp_body_bytes']
  end

  if attributes.key?(:'compute_resp_header_bytes')
    self.compute_resp_header_bytes = attributes[:'compute_resp_header_bytes']
  end

  if attributes.key?(:'compute_resp_status_103')
    self.compute_resp_status_103 = attributes[:'compute_resp_status_103']
  end

  if attributes.key?(:'compute_resp_status_1xx')
    self.compute_resp_status_1xx = attributes[:'compute_resp_status_1xx']
  end

  if attributes.key?(:'compute_resp_status_200')
    self.compute_resp_status_200 = attributes[:'compute_resp_status_200']
  end

  if attributes.key?(:'compute_resp_status_204')
    self.compute_resp_status_204 = attributes[:'compute_resp_status_204']
  end

  if attributes.key?(:'compute_resp_status_206')
    self.compute_resp_status_206 = attributes[:'compute_resp_status_206']
  end

  if attributes.key?(:'compute_resp_status_2xx')
    self.compute_resp_status_2xx = attributes[:'compute_resp_status_2xx']
  end

  if attributes.key?(:'compute_resp_status_301')
    self.compute_resp_status_301 = attributes[:'compute_resp_status_301']
  end

  if attributes.key?(:'compute_resp_status_302')
    self.compute_resp_status_302 = attributes[:'compute_resp_status_302']
  end

  if attributes.key?(:'compute_resp_status_304')
    self.compute_resp_status_304 = attributes[:'compute_resp_status_304']
  end

  if attributes.key?(:'compute_resp_status_3xx')
    self.compute_resp_status_3xx = attributes[:'compute_resp_status_3xx']
  end

  if attributes.key?(:'compute_resp_status_400')
    self.compute_resp_status_400 = attributes[:'compute_resp_status_400']
  end

  if attributes.key?(:'compute_resp_status_401')
    self.compute_resp_status_401 = attributes[:'compute_resp_status_401']
  end

  if attributes.key?(:'compute_resp_status_403')
    self.compute_resp_status_403 = attributes[:'compute_resp_status_403']
  end

  if attributes.key?(:'compute_resp_status_404')
    self.compute_resp_status_404 = attributes[:'compute_resp_status_404']
  end

  if attributes.key?(:'compute_resp_status_416')
    self.compute_resp_status_416 = attributes[:'compute_resp_status_416']
  end

  if attributes.key?(:'compute_resp_status_429')
    self.compute_resp_status_429 = attributes[:'compute_resp_status_429']
  end

  if attributes.key?(:'compute_resp_status_4xx')
    self.compute_resp_status_4xx = attributes[:'compute_resp_status_4xx']
  end

  if attributes.key?(:'compute_resp_status_500')
    self.compute_resp_status_500 = attributes[:'compute_resp_status_500']
  end

  if attributes.key?(:'compute_resp_status_501')
    self.compute_resp_status_501 = attributes[:'compute_resp_status_501']
  end

  if attributes.key?(:'compute_resp_status_502')
    self.compute_resp_status_502 = attributes[:'compute_resp_status_502']
  end

  if attributes.key?(:'compute_resp_status_503')
    self.compute_resp_status_503 = attributes[:'compute_resp_status_503']
  end

  if attributes.key?(:'compute_resp_status_504')
    self.compute_resp_status_504 = attributes[:'compute_resp_status_504']
  end

  if attributes.key?(:'compute_resp_status_505')
    self.compute_resp_status_505 = attributes[:'compute_resp_status_505']
  end

  if attributes.key?(:'compute_resp_status_530')
    self.compute_resp_status_530 = attributes[:'compute_resp_status_530']
  end

  if attributes.key?(:'compute_resp_status_5xx')
    self.compute_resp_status_5xx = attributes[:'compute_resp_status_5xx']
  end
end

Instance Attribute Details

#bandwidthObject

Total bytes delivered (resp_header_bytes + resp_body_bytes + bereq_header_bytes + bereq_body_bytes).



129
130
131
# File 'lib/fastly/models/values.rb', line 129

def bandwidth
  @bandwidth
end

#bereq_body_bytesObject

Total body bytes sent to origin.



111
112
113
# File 'lib/fastly/models/values.rb', line 111

def bereq_body_bytes
  @bereq_body_bytes
end

#bereq_header_bytesObject

Total header bytes sent to origin.



108
109
110
# File 'lib/fastly/models/values.rb', line 108

def bereq_header_bytes
  @bereq_header_bytes
end

#compute_bereq_body_bytesObject

Total body bytes sent to backends (origins) by the Compute platform.



210
211
212
# File 'lib/fastly/models/values.rb', line 210

def compute_bereq_body_bytes
  @compute_bereq_body_bytes
end

#compute_bereq_errorsObject

Number of backend request errors, including timeouts, by the Compute platform.



213
214
215
# File 'lib/fastly/models/values.rb', line 213

def compute_bereq_errors
  @compute_bereq_errors
end

#compute_bereq_header_bytesObject

Total header bytes sent to backends (origins) by the Compute platform.



216
217
218
# File 'lib/fastly/models/values.rb', line 216

def compute_bereq_header_bytes
  @compute_bereq_header_bytes
end

#compute_bereqsObject

Number of backend requests started by the Compute platform.



219
220
221
# File 'lib/fastly/models/values.rb', line 219

def compute_bereqs
  @compute_bereqs
end

#compute_beresp_body_bytesObject

Total body bytes received from backends (origins) by the Compute platform.



222
223
224
# File 'lib/fastly/models/values.rb', line 222

def compute_beresp_body_bytes
  @compute_beresp_body_bytes
end

#compute_beresp_header_bytesObject

Total header bytes received from backends (origins) by the Compute platform.



225
226
227
# File 'lib/fastly/models/values.rb', line 225

def compute_beresp_header_bytes
  @compute_beresp_header_bytes
end

#compute_execution_time_msObject

The amount of active CPU time used to process your requests (in milliseconds).



228
229
230
# File 'lib/fastly/models/values.rb', line 228

def compute_execution_time_ms
  @compute_execution_time_ms
end

#compute_origin_status_1xxObject

Number of \“Informational\” category status codes received from origin by the Compute platform.



231
232
233
# File 'lib/fastly/models/values.rb', line 231

def compute_origin_status_1xx
  @compute_origin_status_1xx
end

#compute_origin_status_200Object

Number of responses received from origin with status code 200 (Success) by the Compute platform.



234
235
236
# File 'lib/fastly/models/values.rb', line 234

def compute_origin_status_200
  @compute_origin_status_200
end

#compute_origin_status_204Object

Number of responses received from origin with status code 204 (No Content) by the Compute platform.



237
238
239
# File 'lib/fastly/models/values.rb', line 237

def compute_origin_status_204
  @compute_origin_status_204
end

#compute_origin_status_206Object

Number of responses received from origin with status code 206 (Partial Content) by the Compute platform.



240
241
242
# File 'lib/fastly/models/values.rb', line 240

def compute_origin_status_206
  @compute_origin_status_206
end

#compute_origin_status_2xxObject

Number of \“Success\” status codes received from origin by the Compute platform.



243
244
245
# File 'lib/fastly/models/values.rb', line 243

def compute_origin_status_2xx
  @compute_origin_status_2xx
end

#compute_origin_status_301Object

Number of responses received from origin with status code 301 (Moved Permanently) by the Compute platform.



246
247
248
# File 'lib/fastly/models/values.rb', line 246

def compute_origin_status_301
  @compute_origin_status_301
end

#compute_origin_status_302Object

Number of responses received from origin with status code 302 (Found) by the Compute platform.



249
250
251
# File 'lib/fastly/models/values.rb', line 249

def compute_origin_status_302
  @compute_origin_status_302
end

#compute_origin_status_304Object

Number of responses received from origin with status code 304 (Not Modified) by the Compute platform.



252
253
254
# File 'lib/fastly/models/values.rb', line 252

def compute_origin_status_304
  @compute_origin_status_304
end

#compute_origin_status_3xxObject

Number of \“Redirection\” codes received from origin by the Compute platform.



255
256
257
# File 'lib/fastly/models/values.rb', line 255

def compute_origin_status_3xx
  @compute_origin_status_3xx
end

#compute_origin_status_400Object

Number of responses received from origin with status code 400 (Bad Request) by the Compute platform.



258
259
260
# File 'lib/fastly/models/values.rb', line 258

def compute_origin_status_400
  @compute_origin_status_400
end

#compute_origin_status_401Object

Number of responses received from origin with status code 401 (Unauthorized) by the Compute platform.



261
262
263
# File 'lib/fastly/models/values.rb', line 261

def compute_origin_status_401
  @compute_origin_status_401
end

#compute_origin_status_403Object

Number of responses received from origin with status code 403 (Forbidden) by the Compute platform.



264
265
266
# File 'lib/fastly/models/values.rb', line 264

def compute_origin_status_403
  @compute_origin_status_403
end

#compute_origin_status_404Object

Number of responses received from origin with status code 404 (Not Found) by the Compute platform.



267
268
269
# File 'lib/fastly/models/values.rb', line 267

def compute_origin_status_404
  @compute_origin_status_404
end

#compute_origin_status_416Object

Number of responses received from origin with status code 416 (Range Not Satisfiable) by the Compute platform.



270
271
272
# File 'lib/fastly/models/values.rb', line 270

def compute_origin_status_416
  @compute_origin_status_416
end

#compute_origin_status_429Object

Number of responses received from origin with status code 429 (Too Many Requests) by the Compute platform.



273
274
275
# File 'lib/fastly/models/values.rb', line 273

def compute_origin_status_429
  @compute_origin_status_429
end

#compute_origin_status_4xxObject

Number of \“Client Error\” codes received from origin by the Compute platform.



276
277
278
# File 'lib/fastly/models/values.rb', line 276

def compute_origin_status_4xx
  @compute_origin_status_4xx
end

#compute_origin_status_500Object

Number of responses received from origin with status code 500 (Internal Server Error) by the Compute platform.



279
280
281
# File 'lib/fastly/models/values.rb', line 279

def compute_origin_status_500
  @compute_origin_status_500
end

#compute_origin_status_501Object

Number of responses received from origin with status code 501 (Not Implemented) by the Compute platform.



282
283
284
# File 'lib/fastly/models/values.rb', line 282

def compute_origin_status_501
  @compute_origin_status_501
end

#compute_origin_status_502Object

Number of responses received from origin with status code 502 (Bad Gateway) by the Compute platform.



285
286
287
# File 'lib/fastly/models/values.rb', line 285

def compute_origin_status_502
  @compute_origin_status_502
end

#compute_origin_status_503Object

Number of responses received from origin with status code 503 (Service Unavailable) by the Compute platform.



288
289
290
# File 'lib/fastly/models/values.rb', line 288

def compute_origin_status_503
  @compute_origin_status_503
end

#compute_origin_status_504Object

Number of responses received from origin with status code 504 (Gateway Timeout) by the Compute platform.



291
292
293
# File 'lib/fastly/models/values.rb', line 291

def compute_origin_status_504
  @compute_origin_status_504
end

#compute_origin_status_505Object

Number of responses received from origin with status code 505 (HTTP Version Not Supported) by the Compute platform.



294
295
296
# File 'lib/fastly/models/values.rb', line 294

def compute_origin_status_505
  @compute_origin_status_505
end

#compute_origin_status_530Object

Number of responses received from origin with status code 530 by the Compute platform.



297
298
299
# File 'lib/fastly/models/values.rb', line 297

def compute_origin_status_530
  @compute_origin_status_530
end

#compute_origin_status_5xxObject

Number of \“Server Error\” codes received from origin by the Compute platform.



300
301
302
# File 'lib/fastly/models/values.rb', line 300

def compute_origin_status_5xx
  @compute_origin_status_5xx
end

#compute_req_body_bytesObject

Total body bytes received by the Compute platform.



303
304
305
# File 'lib/fastly/models/values.rb', line 303

def compute_req_body_bytes
  @compute_req_body_bytes
end

#compute_req_header_bytesObject

Total header bytes received by the Compute platform.



306
307
308
# File 'lib/fastly/models/values.rb', line 306

def compute_req_header_bytes
  @compute_req_header_bytes
end

#compute_requestObject

The total number of requests that were received by the Compute platform.



315
316
317
# File 'lib/fastly/models/values.rb', line 315

def compute_request
  @compute_request
end

#compute_request_time_billed_msObject

The total amount of request processing time you will be billed for, measured in 50 millisecond increments.



309
310
311
# File 'lib/fastly/models/values.rb', line 309

def compute_request_time_billed_ms
  @compute_request_time_billed_ms
end

#compute_request_time_msObject

The total amount of time used to process your requests, including active CPU time (in milliseconds).



312
313
314
# File 'lib/fastly/models/values.rb', line 312

def compute_request_time_ms
  @compute_request_time_ms
end

#compute_resp_body_bytesObject

Total body bytes sent from Compute to the end user.



318
319
320
# File 'lib/fastly/models/values.rb', line 318

def compute_resp_body_bytes
  @compute_resp_body_bytes
end

#compute_resp_header_bytesObject

Total header bytes sent from Compute to the end user.



321
322
323
# File 'lib/fastly/models/values.rb', line 321

def compute_resp_header_bytes
  @compute_resp_header_bytes
end

#compute_resp_status_103Object

Number of responses delivered with status code 103 (Early Hints) by the Compute platform.



324
325
326
# File 'lib/fastly/models/values.rb', line 324

def compute_resp_status_103
  @compute_resp_status_103
end

#compute_resp_status_1xxObject

Number of 1xx \“Informational\” category status codes delivered by the Compute platform.



327
328
329
# File 'lib/fastly/models/values.rb', line 327

def compute_resp_status_1xx
  @compute_resp_status_1xx
end

#compute_resp_status_200Object

Number of responses delivered with status code 200 (Success) by the Compute platform.



330
331
332
# File 'lib/fastly/models/values.rb', line 330

def compute_resp_status_200
  @compute_resp_status_200
end

#compute_resp_status_204Object

Number of responses delivered with status code 204 (No Content) by the Compute platform.



333
334
335
# File 'lib/fastly/models/values.rb', line 333

def compute_resp_status_204
  @compute_resp_status_204
end

#compute_resp_status_206Object

Number of responses delivered with status code 206 (Partial Content) by the Compute platform.



336
337
338
# File 'lib/fastly/models/values.rb', line 336

def compute_resp_status_206
  @compute_resp_status_206
end

#compute_resp_status_2xxObject

Number of 2xx \“Success\” status codes delivered by the Compute platform.



339
340
341
# File 'lib/fastly/models/values.rb', line 339

def compute_resp_status_2xx
  @compute_resp_status_2xx
end

#compute_resp_status_301Object

Number of responses delivered with status code 301 (Moved Permanently) by the Compute platform.



342
343
344
# File 'lib/fastly/models/values.rb', line 342

def compute_resp_status_301
  @compute_resp_status_301
end

#compute_resp_status_302Object

Number of responses delivered with status code 302 (Found) by the Compute platform.



345
346
347
# File 'lib/fastly/models/values.rb', line 345

def compute_resp_status_302
  @compute_resp_status_302
end

#compute_resp_status_304Object

Number of responses delivered with status code 304 (Not Modified) by the Compute platform.



348
349
350
# File 'lib/fastly/models/values.rb', line 348

def compute_resp_status_304
  @compute_resp_status_304
end

#compute_resp_status_3xxObject

Number of 3xx \“Redirection\” codes delivered by the Compute platform.



351
352
353
# File 'lib/fastly/models/values.rb', line 351

def compute_resp_status_3xx
  @compute_resp_status_3xx
end

#compute_resp_status_400Object

Number of responses delivered with status code 400 (Bad Request) by the Compute platform.



354
355
356
# File 'lib/fastly/models/values.rb', line 354

def compute_resp_status_400
  @compute_resp_status_400
end

#compute_resp_status_401Object

Number of responses delivered with status code 401 (Unauthorized) by the Compute platform.



357
358
359
# File 'lib/fastly/models/values.rb', line 357

def compute_resp_status_401
  @compute_resp_status_401
end

#compute_resp_status_403Object

Number of responses delivered with status code 403 (Forbidden) by the Compute platform.



360
361
362
# File 'lib/fastly/models/values.rb', line 360

def compute_resp_status_403
  @compute_resp_status_403
end

#compute_resp_status_404Object

Number of responses delivered with status code 404 (Not Found) by the Compute platform.



363
364
365
# File 'lib/fastly/models/values.rb', line 363

def compute_resp_status_404
  @compute_resp_status_404
end

#compute_resp_status_416Object

Number of responses delivered with status code 416 (Range Not Satisfiable) by the Compute platform.



366
367
368
# File 'lib/fastly/models/values.rb', line 366

def compute_resp_status_416
  @compute_resp_status_416
end

#compute_resp_status_429Object

Number of responses delivered with status code 429 (Too Many Requests) by the Compute platform.



369
370
371
# File 'lib/fastly/models/values.rb', line 369

def compute_resp_status_429
  @compute_resp_status_429
end

#compute_resp_status_4xxObject

Number of 4xx \“Client Error\” codes delivered by the Compute platform.



372
373
374
# File 'lib/fastly/models/values.rb', line 372

def compute_resp_status_4xx
  @compute_resp_status_4xx
end

#compute_resp_status_500Object

Number of responses delivered with status code 500 (Internal Server Error) by the Compute platform.



375
376
377
# File 'lib/fastly/models/values.rb', line 375

def compute_resp_status_500
  @compute_resp_status_500
end

#compute_resp_status_501Object

Number of responses delivered with status code 501 (Not Implemented) by the Compute platform.



378
379
380
# File 'lib/fastly/models/values.rb', line 378

def compute_resp_status_501
  @compute_resp_status_501
end

#compute_resp_status_502Object

Number of responses delivered with status code 502 (Bad Gateway) by the Compute platform.



381
382
383
# File 'lib/fastly/models/values.rb', line 381

def compute_resp_status_502
  @compute_resp_status_502
end

#compute_resp_status_503Object

Number of responses delivered with status code 503 (Service Unavailable) by the Compute platform.



384
385
386
# File 'lib/fastly/models/values.rb', line 384

def compute_resp_status_503
  @compute_resp_status_503
end

#compute_resp_status_504Object

Number of responses delivered with status code 504 (Gateway Timeout) by the Compute platform.



387
388
389
# File 'lib/fastly/models/values.rb', line 387

def compute_resp_status_504
  @compute_resp_status_504
end

#compute_resp_status_505Object

Number of responses delivered with status code 505 (HTTP Version Not Supported) by the Compute platform.



390
391
392
# File 'lib/fastly/models/values.rb', line 390

def compute_resp_status_505
  @compute_resp_status_505
end

#compute_resp_status_530Object

Number of responses delivered with status code 530 by the Compute platform.



393
394
395
# File 'lib/fastly/models/values.rb', line 393

def compute_resp_status_530
  @compute_resp_status_530
end

#compute_resp_status_5xxObject

Number of \“Server Error\” category status codes delivered by the Compute platform.



396
397
398
# File 'lib/fastly/models/values.rb', line 396

def compute_resp_status_5xx
  @compute_resp_status_5xx
end

#edge_hit_ratioObject

Ratio of cache hits to cache misses at the edge, between 0 and 1 (edge_hit_requests / (edge_hit_requests + edge_miss_requests)).



132
133
134
# File 'lib/fastly/models/values.rb', line 132

def edge_hit_ratio
  @edge_hit_ratio
end

#edge_hit_requestsObject

Number of requests sent by end users to Fastly that resulted in a hit at the edge.



114
115
116
# File 'lib/fastly/models/values.rb', line 114

def edge_hit_requests
  @edge_hit_requests
end

#edge_miss_requestsObject

Number of requests sent by end users to Fastly that resulted in a miss at the edge.



117
118
119
# File 'lib/fastly/models/values.rb', line 117

def edge_miss_requests
  @edge_miss_requests
end

#edge_requestsObject

Number of requests sent by end users to Fastly.



18
19
20
# File 'lib/fastly/models/values.rb', line 18

def edge_requests
  @edge_requests
end

#edge_resp_body_bytesObject

Total body bytes delivered from Fastly to the end user.



24
25
26
# File 'lib/fastly/models/values.rb', line 24

def edge_resp_body_bytes
  @edge_resp_body_bytes
end

#edge_resp_header_bytesObject

Total header bytes delivered from Fastly to the end user.



21
22
23
# File 'lib/fastly/models/values.rb', line 21

def edge_resp_header_bytes
  @edge_resp_header_bytes
end

#origin_fetch_resp_body_bytesObject

Total body bytes received from origin.



126
127
128
# File 'lib/fastly/models/values.rb', line 126

def origin_fetch_resp_body_bytes
  @origin_fetch_resp_body_bytes
end

#origin_fetch_resp_header_bytesObject

Total header bytes received from origin.



123
124
125
# File 'lib/fastly/models/values.rb', line 123

def origin_fetch_resp_header_bytes
  @origin_fetch_resp_header_bytes
end

#origin_fetchesObject

Number of requests sent to origin.



120
121
122
# File 'lib/fastly/models/values.rb', line 120

def origin_fetches
  @origin_fetches
end

#origin_offloadObject

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). Previously, Origin Offload used a different formula. [Learn more](www.fastly.com/documentation/reference/changes/2024/06/add-origin_offload-metric).



135
136
137
# File 'lib/fastly/models/values.rb', line 135

def origin_offload
  @origin_offload
end

#origin_status_1xxObject

Number of \“Informational\” category status codes received from origin.



195
196
197
# File 'lib/fastly/models/values.rb', line 195

def origin_status_1xx
  @origin_status_1xx
end

#origin_status_200Object

Number of responses received from origin with status code 200 (Success).



138
139
140
# File 'lib/fastly/models/values.rb', line 138

def origin_status_200
  @origin_status_200
end

#origin_status_204Object

Number of responses received from origin with status code 204 (No Content).



141
142
143
# File 'lib/fastly/models/values.rb', line 141

def origin_status_204
  @origin_status_204
end

#origin_status_206Object

Number of responses received from origin with status code 206 (Partial Content).



144
145
146
# File 'lib/fastly/models/values.rb', line 144

def origin_status_206
  @origin_status_206
end

#origin_status_2xxObject

Number of \“Success\” status codes received from origin.



198
199
200
# File 'lib/fastly/models/values.rb', line 198

def origin_status_2xx
  @origin_status_2xx
end

#origin_status_301Object

Number of responses received from origin with status code 301 (Moved Permanently).



147
148
149
# File 'lib/fastly/models/values.rb', line 147

def origin_status_301
  @origin_status_301
end

#origin_status_302Object

Number of responses received from origin with status code 302 (Found).



150
151
152
# File 'lib/fastly/models/values.rb', line 150

def origin_status_302
  @origin_status_302
end

#origin_status_304Object

Number of responses received from origin with status code 304 (Not Modified).



153
154
155
# File 'lib/fastly/models/values.rb', line 153

def origin_status_304
  @origin_status_304
end

#origin_status_3xxObject

Number of \“Redirection\” codes received from origin.



201
202
203
# File 'lib/fastly/models/values.rb', line 201

def origin_status_3xx
  @origin_status_3xx
end

#origin_status_400Object

Number of responses received from origin with status code 400 (Bad Request).



156
157
158
# File 'lib/fastly/models/values.rb', line 156

def origin_status_400
  @origin_status_400
end

#origin_status_401Object

Number of responses received from origin with status code 401 (Unauthorized).



159
160
161
# File 'lib/fastly/models/values.rb', line 159

def origin_status_401
  @origin_status_401
end

#origin_status_403Object

Number of responses received from origin with status code 403 (Forbidden).



162
163
164
# File 'lib/fastly/models/values.rb', line 162

def origin_status_403
  @origin_status_403
end

#origin_status_404Object

Number of responses received from origin with status code 404 (Not Found).



165
166
167
# File 'lib/fastly/models/values.rb', line 165

def origin_status_404
  @origin_status_404
end

#origin_status_416Object

Number of responses received from origin with status code 416 (Range Not Satisfiable).



168
169
170
# File 'lib/fastly/models/values.rb', line 168

def origin_status_416
  @origin_status_416
end

#origin_status_429Object

Number of responses received from origin with status code 429 (Too Many Requests).



171
172
173
# File 'lib/fastly/models/values.rb', line 171

def origin_status_429
  @origin_status_429
end

#origin_status_4xxObject

Number of \“Client Error\” codes received from origin.



204
205
206
# File 'lib/fastly/models/values.rb', line 204

def origin_status_4xx
  @origin_status_4xx
end

#origin_status_500Object

Number of responses received from origin with status code 500 (Internal Server Error).



174
175
176
# File 'lib/fastly/models/values.rb', line 174

def origin_status_500
  @origin_status_500
end

#origin_status_501Object

Number of responses received from origin with status code 501 (Not Implemented).



177
178
179
# File 'lib/fastly/models/values.rb', line 177

def origin_status_501
  @origin_status_501
end

#origin_status_502Object

Number of responses received from origin with status code 502 (Bad Gateway).



180
181
182
# File 'lib/fastly/models/values.rb', line 180

def origin_status_502
  @origin_status_502
end

#origin_status_503Object

Number of responses received from origin with status code 503 (Service Unavailable).



183
184
185
# File 'lib/fastly/models/values.rb', line 183

def origin_status_503
  @origin_status_503
end

#origin_status_504Object

Number of responses received from origin with status code 504 (Gateway Timeout).



186
187
188
# File 'lib/fastly/models/values.rb', line 186

def origin_status_504
  @origin_status_504
end

#origin_status_505Object

Number of responses received from origin with status code 505 (HTTP Version Not Supported).



189
190
191
# File 'lib/fastly/models/values.rb', line 189

def origin_status_505
  @origin_status_505
end

#origin_status_530Object

Number of responses received from origin with status code 530.



192
193
194
# File 'lib/fastly/models/values.rb', line 192

def origin_status_530
  @origin_status_530
end

#origin_status_5xxObject

Number of \“Server Error\” codes received from origin.



207
208
209
# File 'lib/fastly/models/values.rb', line 207

def origin_status_5xx
  @origin_status_5xx
end

#requestsObject

Number of requests processed.



99
100
101
# File 'lib/fastly/models/values.rb', line 99

def requests
  @requests
end

#resp_body_bytesObject

Total body bytes delivered.



105
106
107
# File 'lib/fastly/models/values.rb', line 105

def resp_body_bytes
  @resp_body_bytes
end

#resp_header_bytesObject

Total header bytes delivered.



102
103
104
# File 'lib/fastly/models/values.rb', line 102

def resp_header_bytes
  @resp_header_bytes
end

#status_1xxObject

Number of 1xx \“Informational\” category status codes delivered.



27
28
29
# File 'lib/fastly/models/values.rb', line 27

def status_1xx
  @status_1xx
end

#status_200Object

Number of responses delivered with status code 200 (Success).



42
43
44
# File 'lib/fastly/models/values.rb', line 42

def status_200
  @status_200
end

#status_204Object

Number of responses delivered with status code 204 (No Content).



45
46
47
# File 'lib/fastly/models/values.rb', line 45

def status_204
  @status_204
end

#status_206Object

Number of responses delivered with status code 206 (Partial Content).



48
49
50
# File 'lib/fastly/models/values.rb', line 48

def status_206
  @status_206
end

#status_2xxObject

Number of 2xx \“Success\” status codes delivered.



30
31
32
# File 'lib/fastly/models/values.rb', line 30

def status_2xx
  @status_2xx
end

#status_301Object

Number of responses delivered with status code 301 (Moved Permanently).



51
52
53
# File 'lib/fastly/models/values.rb', line 51

def status_301
  @status_301
end

#status_302Object

Number of responses delivered with status code 302 (Found).



54
55
56
# File 'lib/fastly/models/values.rb', line 54

def status_302
  @status_302
end

#status_304Object

Number of responses delivered with status code 304 (Not Modified).



57
58
59
# File 'lib/fastly/models/values.rb', line 57

def status_304
  @status_304
end

#status_3xxObject

Number of 3xx \“Redirection\” codes delivered.



33
34
35
# File 'lib/fastly/models/values.rb', line 33

def status_3xx
  @status_3xx
end

#status_400Object

Number of responses delivered with status code 400 (Bad Request).



60
61
62
# File 'lib/fastly/models/values.rb', line 60

def status_400
  @status_400
end

#status_401Object

Number of responses delivered with status code 401 (Unauthorized).



63
64
65
# File 'lib/fastly/models/values.rb', line 63

def status_401
  @status_401
end

#status_403Object

Number of responses delivered with status code 403 (Forbidden).



66
67
68
# File 'lib/fastly/models/values.rb', line 66

def status_403
  @status_403
end

#status_404Object

Number of responses delivered with status code 404 (Not Found).



69
70
71
# File 'lib/fastly/models/values.rb', line 69

def status_404
  @status_404
end

#status_416Object

Number of responses delivered with status code 416 (Range Not Satisfiable).



72
73
74
# File 'lib/fastly/models/values.rb', line 72

def status_416
  @status_416
end

#status_429Object

Number of responses delivered with status code 429 (Too Many Requests).



75
76
77
# File 'lib/fastly/models/values.rb', line 75

def status_429
  @status_429
end

#status_4xxObject

Number of 4xx \“Client Error\” codes delivered.



36
37
38
# File 'lib/fastly/models/values.rb', line 36

def status_4xx
  @status_4xx
end

#status_500Object

Number of responses delivered with status code 500 (Internal Server Error).



78
79
80
# File 'lib/fastly/models/values.rb', line 78

def status_500
  @status_500
end

#status_501Object

Number of responses delivered with status code 501 (Not Implemented).



81
82
83
# File 'lib/fastly/models/values.rb', line 81

def status_501
  @status_501
end

#status_502Object

Number of responses delivered with status code 502 (Bad Gateway).



84
85
86
# File 'lib/fastly/models/values.rb', line 84

def status_502
  @status_502
end

#status_503Object

Number of responses delivered with status code 503 (Service Unavailable).



87
88
89
# File 'lib/fastly/models/values.rb', line 87

def status_503
  @status_503
end

#status_504Object

Number of responses delivered with status code 504 (Gateway Timeout).



90
91
92
# File 'lib/fastly/models/values.rb', line 90

def status_504
  @status_504
end

#status_505Object

Number of responses delivered with status code 505 (HTTP Version Not Supported).



93
94
95
# File 'lib/fastly/models/values.rb', line 93

def status_505
  @status_505
end

#status_530Object

Number of responses delivered with status code 530.



96
97
98
# File 'lib/fastly/models/values.rb', line 96

def status_530
  @status_530
end

#status_5xxObject

Number of 5xx \“Server Error\” codes delivered.



39
40
41
# File 'lib/fastly/models/values.rb', line 39

def status_5xx
  @status_5xx
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



532
533
534
# File 'lib/fastly/models/values.rb', line 532

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



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
# File 'lib/fastly/models/values.rb', line 399

def self.attribute_map
  {
    :'edge_requests' => :'edge_requests',
    :'edge_resp_header_bytes' => :'edge_resp_header_bytes',
    :'edge_resp_body_bytes' => :'edge_resp_body_bytes',
    :'status_1xx' => :'status_1xx',
    :'status_2xx' => :'status_2xx',
    :'status_3xx' => :'status_3xx',
    :'status_4xx' => :'status_4xx',
    :'status_5xx' => :'status_5xx',
    :'status_200' => :'status_200',
    :'status_204' => :'status_204',
    :'status_206' => :'status_206',
    :'status_301' => :'status_301',
    :'status_302' => :'status_302',
    :'status_304' => :'status_304',
    :'status_400' => :'status_400',
    :'status_401' => :'status_401',
    :'status_403' => :'status_403',
    :'status_404' => :'status_404',
    :'status_416' => :'status_416',
    :'status_429' => :'status_429',
    :'status_500' => :'status_500',
    :'status_501' => :'status_501',
    :'status_502' => :'status_502',
    :'status_503' => :'status_503',
    :'status_504' => :'status_504',
    :'status_505' => :'status_505',
    :'status_530' => :'status_530',
    :'requests' => :'requests',
    :'resp_header_bytes' => :'resp_header_bytes',
    :'resp_body_bytes' => :'resp_body_bytes',
    :'bereq_header_bytes' => :'bereq_header_bytes',
    :'bereq_body_bytes' => :'bereq_body_bytes',
    :'edge_hit_requests' => :'edge_hit_requests',
    :'edge_miss_requests' => :'edge_miss_requests',
    :'origin_fetches' => :'origin_fetches',
    :'origin_fetch_resp_header_bytes' => :'origin_fetch_resp_header_bytes',
    :'origin_fetch_resp_body_bytes' => :'origin_fetch_resp_body_bytes',
    :'bandwidth' => :'bandwidth',
    :'edge_hit_ratio' => :'edge_hit_ratio',
    :'origin_offload' => :'origin_offload',
    :'origin_status_200' => :'origin_status_200',
    :'origin_status_204' => :'origin_status_204',
    :'origin_status_206' => :'origin_status_206',
    :'origin_status_301' => :'origin_status_301',
    :'origin_status_302' => :'origin_status_302',
    :'origin_status_304' => :'origin_status_304',
    :'origin_status_400' => :'origin_status_400',
    :'origin_status_401' => :'origin_status_401',
    :'origin_status_403' => :'origin_status_403',
    :'origin_status_404' => :'origin_status_404',
    :'origin_status_416' => :'origin_status_416',
    :'origin_status_429' => :'origin_status_429',
    :'origin_status_500' => :'origin_status_500',
    :'origin_status_501' => :'origin_status_501',
    :'origin_status_502' => :'origin_status_502',
    :'origin_status_503' => :'origin_status_503',
    :'origin_status_504' => :'origin_status_504',
    :'origin_status_505' => :'origin_status_505',
    :'origin_status_530' => :'origin_status_530',
    :'origin_status_1xx' => :'origin_status_1xx',
    :'origin_status_2xx' => :'origin_status_2xx',
    :'origin_status_3xx' => :'origin_status_3xx',
    :'origin_status_4xx' => :'origin_status_4xx',
    :'origin_status_5xx' => :'origin_status_5xx',
    :'compute_bereq_body_bytes' => :'compute_bereq_body_bytes',
    :'compute_bereq_errors' => :'compute_bereq_errors',
    :'compute_bereq_header_bytes' => :'compute_bereq_header_bytes',
    :'compute_bereqs' => :'compute_bereqs',
    :'compute_beresp_body_bytes' => :'compute_beresp_body_bytes',
    :'compute_beresp_header_bytes' => :'compute_beresp_header_bytes',
    :'compute_execution_time_ms' => :'compute_execution_time_ms',
    :'compute_origin_status_1xx' => :'compute_origin_status_1xx',
    :'compute_origin_status_200' => :'compute_origin_status_200',
    :'compute_origin_status_204' => :'compute_origin_status_204',
    :'compute_origin_status_206' => :'compute_origin_status_206',
    :'compute_origin_status_2xx' => :'compute_origin_status_2xx',
    :'compute_origin_status_301' => :'compute_origin_status_301',
    :'compute_origin_status_302' => :'compute_origin_status_302',
    :'compute_origin_status_304' => :'compute_origin_status_304',
    :'compute_origin_status_3xx' => :'compute_origin_status_3xx',
    :'compute_origin_status_400' => :'compute_origin_status_400',
    :'compute_origin_status_401' => :'compute_origin_status_401',
    :'compute_origin_status_403' => :'compute_origin_status_403',
    :'compute_origin_status_404' => :'compute_origin_status_404',
    :'compute_origin_status_416' => :'compute_origin_status_416',
    :'compute_origin_status_429' => :'compute_origin_status_429',
    :'compute_origin_status_4xx' => :'compute_origin_status_4xx',
    :'compute_origin_status_500' => :'compute_origin_status_500',
    :'compute_origin_status_501' => :'compute_origin_status_501',
    :'compute_origin_status_502' => :'compute_origin_status_502',
    :'compute_origin_status_503' => :'compute_origin_status_503',
    :'compute_origin_status_504' => :'compute_origin_status_504',
    :'compute_origin_status_505' => :'compute_origin_status_505',
    :'compute_origin_status_530' => :'compute_origin_status_530',
    :'compute_origin_status_5xx' => :'compute_origin_status_5xx',
    :'compute_req_body_bytes' => :'compute_req_body_bytes',
    :'compute_req_header_bytes' => :'compute_req_header_bytes',
    :'compute_request_time_billed_ms' => :'compute_request_time_billed_ms',
    :'compute_request_time_ms' => :'compute_request_time_ms',
    :'compute_request' => :'compute_request',
    :'compute_resp_body_bytes' => :'compute_resp_body_bytes',
    :'compute_resp_header_bytes' => :'compute_resp_header_bytes',
    :'compute_resp_status_103' => :'compute_resp_status_103',
    :'compute_resp_status_1xx' => :'compute_resp_status_1xx',
    :'compute_resp_status_200' => :'compute_resp_status_200',
    :'compute_resp_status_204' => :'compute_resp_status_204',
    :'compute_resp_status_206' => :'compute_resp_status_206',
    :'compute_resp_status_2xx' => :'compute_resp_status_2xx',
    :'compute_resp_status_301' => :'compute_resp_status_301',
    :'compute_resp_status_302' => :'compute_resp_status_302',
    :'compute_resp_status_304' => :'compute_resp_status_304',
    :'compute_resp_status_3xx' => :'compute_resp_status_3xx',
    :'compute_resp_status_400' => :'compute_resp_status_400',
    :'compute_resp_status_401' => :'compute_resp_status_401',
    :'compute_resp_status_403' => :'compute_resp_status_403',
    :'compute_resp_status_404' => :'compute_resp_status_404',
    :'compute_resp_status_416' => :'compute_resp_status_416',
    :'compute_resp_status_429' => :'compute_resp_status_429',
    :'compute_resp_status_4xx' => :'compute_resp_status_4xx',
    :'compute_resp_status_500' => :'compute_resp_status_500',
    :'compute_resp_status_501' => :'compute_resp_status_501',
    :'compute_resp_status_502' => :'compute_resp_status_502',
    :'compute_resp_status_503' => :'compute_resp_status_503',
    :'compute_resp_status_504' => :'compute_resp_status_504',
    :'compute_resp_status_505' => :'compute_resp_status_505',
    :'compute_resp_status_530' => :'compute_resp_status_530',
    :'compute_resp_status_5xx' => :'compute_resp_status_5xx'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1361
1362
1363
# File 'lib/fastly/models/values.rb', line 1361

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

.fastly_nullableObject

List of attributes with nullable: true



670
671
672
673
# File 'lib/fastly/models/values.rb', line 670

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

.fastly_typesObject

Attribute type mapping.



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
# File 'lib/fastly/models/values.rb', line 537

def self.fastly_types
  {
    :'edge_requests' => :'Integer',
    :'edge_resp_header_bytes' => :'Integer',
    :'edge_resp_body_bytes' => :'Integer',
    :'status_1xx' => :'Integer',
    :'status_2xx' => :'Integer',
    :'status_3xx' => :'Integer',
    :'status_4xx' => :'Integer',
    :'status_5xx' => :'Integer',
    :'status_200' => :'Integer',
    :'status_204' => :'Integer',
    :'status_206' => :'Integer',
    :'status_301' => :'Integer',
    :'status_302' => :'Integer',
    :'status_304' => :'Integer',
    :'status_400' => :'Integer',
    :'status_401' => :'Integer',
    :'status_403' => :'Integer',
    :'status_404' => :'Integer',
    :'status_416' => :'Integer',
    :'status_429' => :'Integer',
    :'status_500' => :'Integer',
    :'status_501' => :'Integer',
    :'status_502' => :'Integer',
    :'status_503' => :'Integer',
    :'status_504' => :'Integer',
    :'status_505' => :'Integer',
    :'status_530' => :'Integer',
    :'requests' => :'Integer',
    :'resp_header_bytes' => :'Integer',
    :'resp_body_bytes' => :'Integer',
    :'bereq_header_bytes' => :'Integer',
    :'bereq_body_bytes' => :'Integer',
    :'edge_hit_requests' => :'Integer',
    :'edge_miss_requests' => :'Integer',
    :'origin_fetches' => :'Integer',
    :'origin_fetch_resp_header_bytes' => :'Integer',
    :'origin_fetch_resp_body_bytes' => :'Integer',
    :'bandwidth' => :'Integer',
    :'edge_hit_ratio' => :'Float',
    :'origin_offload' => :'Float',
    :'origin_status_200' => :'Integer',
    :'origin_status_204' => :'Integer',
    :'origin_status_206' => :'Integer',
    :'origin_status_301' => :'Integer',
    :'origin_status_302' => :'Integer',
    :'origin_status_304' => :'Integer',
    :'origin_status_400' => :'Integer',
    :'origin_status_401' => :'Integer',
    :'origin_status_403' => :'Integer',
    :'origin_status_404' => :'Integer',
    :'origin_status_416' => :'Integer',
    :'origin_status_429' => :'Integer',
    :'origin_status_500' => :'Integer',
    :'origin_status_501' => :'Integer',
    :'origin_status_502' => :'Integer',
    :'origin_status_503' => :'Integer',
    :'origin_status_504' => :'Integer',
    :'origin_status_505' => :'Integer',
    :'origin_status_530' => :'Integer',
    :'origin_status_1xx' => :'Integer',
    :'origin_status_2xx' => :'Integer',
    :'origin_status_3xx' => :'Integer',
    :'origin_status_4xx' => :'Integer',
    :'origin_status_5xx' => :'Integer',
    :'compute_bereq_body_bytes' => :'Integer',
    :'compute_bereq_errors' => :'Integer',
    :'compute_bereq_header_bytes' => :'Integer',
    :'compute_bereqs' => :'Integer',
    :'compute_beresp_body_bytes' => :'Integer',
    :'compute_beresp_header_bytes' => :'Integer',
    :'compute_execution_time_ms' => :'Integer',
    :'compute_origin_status_1xx' => :'Integer',
    :'compute_origin_status_200' => :'Integer',
    :'compute_origin_status_204' => :'Integer',
    :'compute_origin_status_206' => :'Integer',
    :'compute_origin_status_2xx' => :'Integer',
    :'compute_origin_status_301' => :'Integer',
    :'compute_origin_status_302' => :'Integer',
    :'compute_origin_status_304' => :'Integer',
    :'compute_origin_status_3xx' => :'Integer',
    :'compute_origin_status_400' => :'Integer',
    :'compute_origin_status_401' => :'Integer',
    :'compute_origin_status_403' => :'Integer',
    :'compute_origin_status_404' => :'Integer',
    :'compute_origin_status_416' => :'Integer',
    :'compute_origin_status_429' => :'Integer',
    :'compute_origin_status_4xx' => :'Integer',
    :'compute_origin_status_500' => :'Integer',
    :'compute_origin_status_501' => :'Integer',
    :'compute_origin_status_502' => :'Integer',
    :'compute_origin_status_503' => :'Integer',
    :'compute_origin_status_504' => :'Integer',
    :'compute_origin_status_505' => :'Integer',
    :'compute_origin_status_530' => :'Integer',
    :'compute_origin_status_5xx' => :'Integer',
    :'compute_req_body_bytes' => :'Integer',
    :'compute_req_header_bytes' => :'Integer',
    :'compute_request_time_billed_ms' => :'Integer',
    :'compute_request_time_ms' => :'Integer',
    :'compute_request' => :'Integer',
    :'compute_resp_body_bytes' => :'Integer',
    :'compute_resp_header_bytes' => :'Integer',
    :'compute_resp_status_103' => :'Integer',
    :'compute_resp_status_1xx' => :'Integer',
    :'compute_resp_status_200' => :'Integer',
    :'compute_resp_status_204' => :'Integer',
    :'compute_resp_status_206' => :'Integer',
    :'compute_resp_status_2xx' => :'Integer',
    :'compute_resp_status_301' => :'Integer',
    :'compute_resp_status_302' => :'Integer',
    :'compute_resp_status_304' => :'Integer',
    :'compute_resp_status_3xx' => :'Integer',
    :'compute_resp_status_400' => :'Integer',
    :'compute_resp_status_401' => :'Integer',
    :'compute_resp_status_403' => :'Integer',
    :'compute_resp_status_404' => :'Integer',
    :'compute_resp_status_416' => :'Integer',
    :'compute_resp_status_429' => :'Integer',
    :'compute_resp_status_4xx' => :'Integer',
    :'compute_resp_status_500' => :'Integer',
    :'compute_resp_status_501' => :'Integer',
    :'compute_resp_status_502' => :'Integer',
    :'compute_resp_status_503' => :'Integer',
    :'compute_resp_status_504' => :'Integer',
    :'compute_resp_status_505' => :'Integer',
    :'compute_resp_status_530' => :'Integer',
    :'compute_resp_status_5xx' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
# File 'lib/fastly/models/values.rb', line 1214

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      edge_requests == o.edge_requests &&
      edge_resp_header_bytes == o.edge_resp_header_bytes &&
      edge_resp_body_bytes == o.edge_resp_body_bytes &&
      status_1xx == o.status_1xx &&
      status_2xx == o.status_2xx &&
      status_3xx == o.status_3xx &&
      status_4xx == o.status_4xx &&
      status_5xx == o.status_5xx &&
      status_200 == o.status_200 &&
      status_204 == o.status_204 &&
      status_206 == o.status_206 &&
      status_301 == o.status_301 &&
      status_302 == o.status_302 &&
      status_304 == o.status_304 &&
      status_400 == o.status_400 &&
      status_401 == o.status_401 &&
      status_403 == o.status_403 &&
      status_404 == o.status_404 &&
      status_416 == o.status_416 &&
      status_429 == o.status_429 &&
      status_500 == o.status_500 &&
      status_501 == o.status_501 &&
      status_502 == o.status_502 &&
      status_503 == o.status_503 &&
      status_504 == o.status_504 &&
      status_505 == o.status_505 &&
      status_530 == o.status_530 &&
      requests == o.requests &&
      resp_header_bytes == o.resp_header_bytes &&
      resp_body_bytes == o.resp_body_bytes &&
      bereq_header_bytes == o.bereq_header_bytes &&
      bereq_body_bytes == o.bereq_body_bytes &&
      edge_hit_requests == o.edge_hit_requests &&
      edge_miss_requests == o.edge_miss_requests &&
      origin_fetches == o.origin_fetches &&
      origin_fetch_resp_header_bytes == o.origin_fetch_resp_header_bytes &&
      origin_fetch_resp_body_bytes == o.origin_fetch_resp_body_bytes &&
      bandwidth == o.bandwidth &&
      edge_hit_ratio == o.edge_hit_ratio &&
      origin_offload == o.origin_offload &&
      origin_status_200 == o.origin_status_200 &&
      origin_status_204 == o.origin_status_204 &&
      origin_status_206 == o.origin_status_206 &&
      origin_status_301 == o.origin_status_301 &&
      origin_status_302 == o.origin_status_302 &&
      origin_status_304 == o.origin_status_304 &&
      origin_status_400 == o.origin_status_400 &&
      origin_status_401 == o.origin_status_401 &&
      origin_status_403 == o.origin_status_403 &&
      origin_status_404 == o.origin_status_404 &&
      origin_status_416 == o.origin_status_416 &&
      origin_status_429 == o.origin_status_429 &&
      origin_status_500 == o.origin_status_500 &&
      origin_status_501 == o.origin_status_501 &&
      origin_status_502 == o.origin_status_502 &&
      origin_status_503 == o.origin_status_503 &&
      origin_status_504 == o.origin_status_504 &&
      origin_status_505 == o.origin_status_505 &&
      origin_status_530 == o.origin_status_530 &&
      origin_status_1xx == o.origin_status_1xx &&
      origin_status_2xx == o.origin_status_2xx &&
      origin_status_3xx == o.origin_status_3xx &&
      origin_status_4xx == o.origin_status_4xx &&
      origin_status_5xx == o.origin_status_5xx &&
      compute_bereq_body_bytes == o.compute_bereq_body_bytes &&
      compute_bereq_errors == o.compute_bereq_errors &&
      compute_bereq_header_bytes == o.compute_bereq_header_bytes &&
      compute_bereqs == o.compute_bereqs &&
      compute_beresp_body_bytes == o.compute_beresp_body_bytes &&
      compute_beresp_header_bytes == o.compute_beresp_header_bytes &&
      compute_execution_time_ms == o.compute_execution_time_ms &&
      compute_origin_status_1xx == o.compute_origin_status_1xx &&
      compute_origin_status_200 == o.compute_origin_status_200 &&
      compute_origin_status_204 == o.compute_origin_status_204 &&
      compute_origin_status_206 == o.compute_origin_status_206 &&
      compute_origin_status_2xx == o.compute_origin_status_2xx &&
      compute_origin_status_301 == o.compute_origin_status_301 &&
      compute_origin_status_302 == o.compute_origin_status_302 &&
      compute_origin_status_304 == o.compute_origin_status_304 &&
      compute_origin_status_3xx == o.compute_origin_status_3xx &&
      compute_origin_status_400 == o.compute_origin_status_400 &&
      compute_origin_status_401 == o.compute_origin_status_401 &&
      compute_origin_status_403 == o.compute_origin_status_403 &&
      compute_origin_status_404 == o.compute_origin_status_404 &&
      compute_origin_status_416 == o.compute_origin_status_416 &&
      compute_origin_status_429 == o.compute_origin_status_429 &&
      compute_origin_status_4xx == o.compute_origin_status_4xx &&
      compute_origin_status_500 == o.compute_origin_status_500 &&
      compute_origin_status_501 == o.compute_origin_status_501 &&
      compute_origin_status_502 == o.compute_origin_status_502 &&
      compute_origin_status_503 == o.compute_origin_status_503 &&
      compute_origin_status_504 == o.compute_origin_status_504 &&
      compute_origin_status_505 == o.compute_origin_status_505 &&
      compute_origin_status_530 == o.compute_origin_status_530 &&
      compute_origin_status_5xx == o.compute_origin_status_5xx &&
      compute_req_body_bytes == o.compute_req_body_bytes &&
      compute_req_header_bytes == o.compute_req_header_bytes &&
      compute_request_time_billed_ms == o.compute_request_time_billed_ms &&
      compute_request_time_ms == o.compute_request_time_ms &&
      compute_request == o.compute_request &&
      compute_resp_body_bytes == o.compute_resp_body_bytes &&
      compute_resp_header_bytes == o.compute_resp_header_bytes &&
      compute_resp_status_103 == o.compute_resp_status_103 &&
      compute_resp_status_1xx == o.compute_resp_status_1xx &&
      compute_resp_status_200 == o.compute_resp_status_200 &&
      compute_resp_status_204 == o.compute_resp_status_204 &&
      compute_resp_status_206 == o.compute_resp_status_206 &&
      compute_resp_status_2xx == o.compute_resp_status_2xx &&
      compute_resp_status_301 == o.compute_resp_status_301 &&
      compute_resp_status_302 == o.compute_resp_status_302 &&
      compute_resp_status_304 == o.compute_resp_status_304 &&
      compute_resp_status_3xx == o.compute_resp_status_3xx &&
      compute_resp_status_400 == o.compute_resp_status_400 &&
      compute_resp_status_401 == o.compute_resp_status_401 &&
      compute_resp_status_403 == o.compute_resp_status_403 &&
      compute_resp_status_404 == o.compute_resp_status_404 &&
      compute_resp_status_416 == o.compute_resp_status_416 &&
      compute_resp_status_429 == o.compute_resp_status_429 &&
      compute_resp_status_4xx == o.compute_resp_status_4xx &&
      compute_resp_status_500 == o.compute_resp_status_500 &&
      compute_resp_status_501 == o.compute_resp_status_501 &&
      compute_resp_status_502 == o.compute_resp_status_502 &&
      compute_resp_status_503 == o.compute_resp_status_503 &&
      compute_resp_status_504 == o.compute_resp_status_504 &&
      compute_resp_status_505 == o.compute_resp_status_505 &&
      compute_resp_status_530 == o.compute_resp_status_530 &&
      compute_resp_status_5xx == o.compute_resp_status_5xx
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
# File 'lib/fastly/models/values.rb', line 1391

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

#_to_hash(value) ⇒ Hash

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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
# File 'lib/fastly/models/values.rb', line 1462

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

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
# File 'lib/fastly/models/values.rb', line 1368

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

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1348
1349
1350
# File 'lib/fastly/models/values.rb', line 1348

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



1354
1355
1356
# File 'lib/fastly/models/values.rb', line 1354

def hash
  [edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, requests, resp_header_bytes, resp_body_bytes, bereq_header_bytes, bereq_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, bandwidth, edge_hit_ratio, origin_offload, origin_status_200, origin_status_204, origin_status_206, origin_status_301, origin_status_302, origin_status_304, origin_status_400, origin_status_401, origin_status_403, origin_status_404, origin_status_416, origin_status_429, origin_status_500, origin_status_501, origin_status_502, origin_status_503, origin_status_504, origin_status_505, origin_status_530, origin_status_1xx, origin_status_2xx, origin_status_3xx, origin_status_4xx, origin_status_5xx, compute_bereq_body_bytes, compute_bereq_errors, compute_bereq_header_bytes, compute_bereqs, compute_beresp_body_bytes, compute_beresp_header_bytes, compute_execution_time_ms, compute_origin_status_1xx, compute_origin_status_200, compute_origin_status_204, compute_origin_status_206, compute_origin_status_2xx, compute_origin_status_301, compute_origin_status_302, compute_origin_status_304, compute_origin_status_3xx, compute_origin_status_400, compute_origin_status_401, compute_origin_status_403, compute_origin_status_404, compute_origin_status_416, compute_origin_status_429, compute_origin_status_4xx, compute_origin_status_500, compute_origin_status_501, compute_origin_status_502, compute_origin_status_503, compute_origin_status_504, compute_origin_status_505, compute_origin_status_530, compute_origin_status_5xx, compute_req_body_bytes, compute_req_header_bytes, compute_request_time_billed_ms, compute_request_time_ms, compute_request, compute_resp_body_bytes, compute_resp_header_bytes, compute_resp_status_103, compute_resp_status_1xx, compute_resp_status_200, compute_resp_status_204, compute_resp_status_206, compute_resp_status_2xx, compute_resp_status_301, compute_resp_status_302, compute_resp_status_304, compute_resp_status_3xx, compute_resp_status_400, compute_resp_status_401, compute_resp_status_403, compute_resp_status_404, compute_resp_status_416, compute_resp_status_429, compute_resp_status_4xx, compute_resp_status_500, compute_resp_status_501, compute_resp_status_502, compute_resp_status_503, compute_resp_status_504, compute_resp_status_505, compute_resp_status_530, compute_resp_status_5xx].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



1201
1202
1203
1204
# File 'lib/fastly/models/values.rb', line 1201

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



1438
1439
1440
# File 'lib/fastly/models/values.rb', line 1438

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
# File 'lib/fastly/models/values.rb', line 1444

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

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

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



1432
1433
1434
# File 'lib/fastly/models/values.rb', line 1432

def to_s
  to_hash.to_s
end

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



1208
1209
1210
# File 'lib/fastly/models/values.rb', line 1208

def valid?
  true
end