Class: Fastly::RealtimeMeasurements

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

Overview

Statistics that have occurred since the last request.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ RealtimeMeasurements

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
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
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
# File 'lib/fastly/models/realtime_measurements.rb', line 1272

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::RealtimeMeasurements` 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::RealtimeMeasurements`. 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?(:'requests')
    self.requests = attributes[:'requests']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'miss_histogram')
    if (value = attributes[:'miss_histogram']).is_a?(Hash)
      self.miss_histogram = value
    end
  end

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

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

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

  if attributes.key?(:'compute_request_time_ms')
    self.compute_request_time_ms = attributes[:'compute_request_time_ms']
  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?(:'shield')
    self.shield = attributes[:'shield']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'req_body_bytes')
    self.req_body_bytes = attributes[:'req_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?(:'waf_blocked')
    self.waf_blocked = attributes[:'waf_blocked']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'imgopto_shield_resp_body_bytes')
    self.imgopto_shield_resp_body_bytes = attributes[:'imgopto_shield_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_406')
    self.status_406 = attributes[:'status_406']
  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?(:'uncacheable')
    self.uncacheable = attributes[:'uncacheable']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'pass_resp_body_bytes')
    self.pass_resp_body_bytes = attributes[:'pass_resp_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_req_body_bytes')
    self.compute_req_body_bytes = attributes[:'compute_req_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_body_bytes')
    self.compute_resp_body_bytes = attributes[:'compute_resp_body_bytes']
  end

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

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

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

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

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

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

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

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

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

  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?(:'origin_revalidations')
    self.origin_revalidations = attributes[:'origin_revalidations']
  end

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

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

  if attributes.key?(:'origin_fetch_body_bytes')
    self.origin_fetch_body_bytes = attributes[:'origin_fetch_body_bytes']
  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?(:'shield_revalidations')
    self.shield_revalidations = attributes[:'shield_revalidations']
  end

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

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

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

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

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

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

  if attributes.key?(:'segblock_shield_fetches')
    self.segblock_shield_fetches = attributes[:'segblock_shield_fetches']
  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_2xx')
    self.compute_resp_status_2xx = attributes[:'compute_resp_status_2xx']
  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_4xx')
    self.compute_resp_status_4xx = attributes[:'compute_resp_status_4xx']
  end

  if attributes.key?(:'compute_resp_status_5xx')
    self.compute_resp_status_5xx = attributes[:'compute_resp_status_5xx']
  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?(:'compute_bereq_header_bytes')
    self.compute_bereq_header_bytes = attributes[:'compute_bereq_header_bytes']
  end

  if attributes.key?(:'compute_bereq_body_bytes')
    self.compute_bereq_body_bytes = attributes[:'compute_bereq_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_beresp_body_bytes')
    self.compute_beresp_body_bytes = attributes[:'compute_beresp_body_bytes']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#all_edge_hit_requestsObject

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



720
721
722
# File 'lib/fastly/models/realtime_measurements.rb', line 720

def all_edge_hit_requests
  @all_edge_hit_requests
end

#all_edge_miss_requestsObject

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



723
724
725
# File 'lib/fastly/models/realtime_measurements.rb', line 723

def all_edge_miss_requests
  @all_edge_miss_requests
end

#all_error_requestsObject

Number of cache errors for a VCL service.



714
715
716
# File 'lib/fastly/models/realtime_measurements.rb', line 714

def all_error_requests
  @all_error_requests
end

#all_hit_requestsObject

Number of cache hits for a VCL service.



705
706
707
# File 'lib/fastly/models/realtime_measurements.rb', line 705

def all_hit_requests
  @all_hit_requests
end

#all_miss_requestsObject

Number of cache misses for a VCL service.



708
709
710
# File 'lib/fastly/models/realtime_measurements.rb', line 708

def all_miss_requests
  @all_miss_requests
end

#all_pass_requestsObject

Number of requests that passed through the CDN without being cached for a VCL service.



711
712
713
# File 'lib/fastly/models/realtime_measurements.rb', line 711

def all_pass_requests
  @all_pass_requests
end

#all_status_1xxObject

Number of "Informational" category status codes delivered for all sources.



726
727
728
# File 'lib/fastly/models/realtime_measurements.rb', line 726

def all_status_1xx
  @all_status_1xx
end

#all_status_2xxObject

Number of "Success" status codes delivered for all sources.



729
730
731
# File 'lib/fastly/models/realtime_measurements.rb', line 729

def all_status_2xx
  @all_status_2xx
end

#all_status_3xxObject

Number of "Redirection" codes delivered for all sources.



732
733
734
# File 'lib/fastly/models/realtime_measurements.rb', line 732

def all_status_3xx
  @all_status_3xx
end

#all_status_4xxObject

Number of "Client Error" codes delivered for all sources.



735
736
737
# File 'lib/fastly/models/realtime_measurements.rb', line 735

def all_status_4xx
  @all_status_4xx
end

#all_status_5xxObject

Number of "Server Error" codes delivered for all sources.



738
739
740
# File 'lib/fastly/models/realtime_measurements.rb', line 738

def all_status_5xx
  @all_status_5xx
end

#all_synth_requestsObject

Number of requests that returned a synthetic response (i.e., response objects created with the ‘synthetic` VCL statement) for a VCL service.



717
718
719
# File 'lib/fastly/models/realtime_measurements.rb', line 717

def all_synth_requests
  @all_synth_requests
end

#attack_blocked_req_body_bytesObject

Total body bytes received from requests that triggered a WAF rule that was blocked.



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

def attack_blocked_req_body_bytes
  @attack_blocked_req_body_bytes
end

#attack_blocked_req_header_bytesObject

Total header bytes received from requests that triggered a WAF rule that was blocked.



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

def attack_blocked_req_header_bytes
  @attack_blocked_req_header_bytes
end

#attack_logged_req_body_bytesObject

Total body bytes received from requests that triggered a WAF rule that was logged.



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

def attack_logged_req_body_bytes
  @attack_logged_req_body_bytes
end

#attack_logged_req_header_bytesObject

Total header bytes received from requests that triggered a WAF rule that was logged.



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

def attack_logged_req_header_bytes
  @attack_logged_req_header_bytes
end

#attack_passed_req_body_bytesObject

Total body bytes received from requests that triggered a WAF rule that was passed.



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

def attack_passed_req_body_bytes
  @attack_passed_req_body_bytes
end

#attack_passed_req_header_bytesObject

Total header bytes received from requests that triggered a WAF rule that was passed.



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

def attack_passed_req_header_bytes
  @attack_passed_req_header_bytes
end

#attack_req_body_bytesObject

Total body bytes received from requests that triggered a WAF rule.



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

def attack_req_body_bytes
  @attack_req_body_bytes
end

#attack_req_header_bytesObject

Total header bytes received from requests that triggered a WAF rule.



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

def attack_req_header_bytes
  @attack_req_header_bytes
end

#attack_resp_synth_bytesObject

Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response.



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

def attack_resp_synth_bytes
  @attack_resp_synth_bytes
end

#bereq_body_bytesObject

Total body bytes sent to origin.



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

def bereq_body_bytes
  @bereq_body_bytes
end

#bereq_header_bytesObject

Total header bytes sent to origin.



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

def bereq_header_bytes
  @bereq_header_bytes
end

#body_sizeObject

Total body bytes delivered (alias for resp_body_bytes).



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

def body_size
  @body_size
end

#bot_challenge_complete_tokens_checkedObject

The number of challenge-complete tokens checked.



681
682
683
# File 'lib/fastly/models/realtime_measurements.rb', line 681

def bot_challenge_complete_tokens_checked
  @bot_challenge_complete_tokens_checked
end

#bot_challenge_complete_tokens_disabledObject

The number of challenge-complete tokens not checked because the feature was disabled.



684
685
686
# File 'lib/fastly/models/realtime_measurements.rb', line 684

def bot_challenge_complete_tokens_disabled
  @bot_challenge_complete_tokens_disabled
end

#bot_challenge_complete_tokens_failedObject

The number of challenge-complete tokens that failed validation.



678
679
680
# File 'lib/fastly/models/realtime_measurements.rb', line 678

def bot_challenge_complete_tokens_failed
  @bot_challenge_complete_tokens_failed
end

#bot_challenge_complete_tokens_issuedObject

The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.



696
697
698
# File 'lib/fastly/models/realtime_measurements.rb', line 696

def bot_challenge_complete_tokens_issued
  @bot_challenge_complete_tokens_issued
end

#bot_challenge_complete_tokens_passedObject

The number of challenge-complete tokens that passed validation.



675
676
677
# File 'lib/fastly/models/realtime_measurements.rb', line 675

def bot_challenge_complete_tokens_passed
  @bot_challenge_complete_tokens_passed
end

#bot_challenge_startsObject

The number of challenge-start tokens created.



672
673
674
# File 'lib/fastly/models/realtime_measurements.rb', line 672

def bot_challenge_starts
  @bot_challenge_starts
end

#bot_challenges_failedObject

The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.



693
694
695
# File 'lib/fastly/models/realtime_measurements.rb', line 693

def bot_challenges_failed
  @bot_challenges_failed
end

#bot_challenges_issuedObject

The number of challenges issued. For example, the issuance of a CAPTCHA challenge.



687
688
689
# File 'lib/fastly/models/realtime_measurements.rb', line 687

def bot_challenges_issued
  @bot_challenges_issued
end

#bot_challenges_succeededObject

The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.



690
691
692
# File 'lib/fastly/models/realtime_measurements.rb', line 690

def bot_challenges_succeeded
  @bot_challenges_succeeded
end

#compute_bereq_body_bytesObject

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



507
508
509
# File 'lib/fastly/models/realtime_measurements.rb', line 507

def compute_bereq_body_bytes
  @compute_bereq_body_bytes
end

#compute_bereq_errorsObject

Number of backend request errors, including timeouts.



525
526
527
# File 'lib/fastly/models/realtime_measurements.rb', line 525

def compute_bereq_errors
  @compute_bereq_errors
end

#compute_bereq_header_bytesObject

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



504
505
506
# File 'lib/fastly/models/realtime_measurements.rb', line 504

def compute_bereq_header_bytes
  @compute_bereq_header_bytes
end

#compute_bereqsObject

Number of backend requests started.



522
523
524
# File 'lib/fastly/models/realtime_measurements.rb', line 522

def compute_bereqs
  @compute_bereqs
end

#compute_beresp_body_bytesObject

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



513
514
515
# File 'lib/fastly/models/realtime_measurements.rb', line 513

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.



510
511
512
# File 'lib/fastly/models/realtime_measurements.rb', line 510

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).



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

def compute_execution_time_ms
  @compute_execution_time_ms
end

#compute_globals_limit_exceededObject

Number of times a guest exceeded its globals limit.



537
538
539
# File 'lib/fastly/models/realtime_measurements.rb', line 537

def compute_globals_limit_exceeded
  @compute_globals_limit_exceeded
end

#compute_guest_errorsObject

Number of times a service experienced a guest code error.



540
541
542
# File 'lib/fastly/models/realtime_measurements.rb', line 540

def compute_guest_errors
  @compute_guest_errors
end

#compute_heap_limit_exceededObject

Number of times a guest exceeded its heap limit.



531
532
533
# File 'lib/fastly/models/realtime_measurements.rb', line 531

def compute_heap_limit_exceeded
  @compute_heap_limit_exceeded
end

#compute_ram_usedObject

The amount of RAM used for your service by Fastly (in bytes).



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

def compute_ram_used
  @compute_ram_used
end

#compute_req_body_bytesObject

Total body bytes received by the Compute platform.



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

def compute_req_body_bytes
  @compute_req_body_bytes
end

#compute_req_header_bytesObject

Total header bytes received by the Compute platform.



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

def compute_req_header_bytes
  @compute_req_header_bytes
end

#compute_request_time_billed_msObject

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



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

def compute_request_time_billed_ms
  @compute_request_time_billed_ms
end

#compute_request_time_msObject

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



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

def compute_request_time_ms
  @compute_request_time_ms
end

#compute_requestsObject

The total number of requests that were received for your service by Fastly.



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

def compute_requests
  @compute_requests
end

#compute_resource_limit_exceededObject

Number of times a guest exceeded its resource limit, includes heap, stack, globals, and code execution timeout.



528
529
530
# File 'lib/fastly/models/realtime_measurements.rb', line 528

def compute_resource_limit_exceeded
  @compute_resource_limit_exceeded
end

#compute_resp_body_bytesObject

Total body bytes sent from Compute to end user.



402
403
404
# File 'lib/fastly/models/realtime_measurements.rb', line 402

def compute_resp_body_bytes
  @compute_resp_body_bytes
end

#compute_resp_header_bytesObject

Total header bytes sent from Compute to end user.



399
400
401
# File 'lib/fastly/models/realtime_measurements.rb', line 399

def compute_resp_header_bytes
  @compute_resp_header_bytes
end

#compute_resp_status_1xxObject

Number of "Informational" category status codes delivered by the Compute platform.



483
484
485
# File 'lib/fastly/models/realtime_measurements.rb', line 483

def compute_resp_status_1xx
  @compute_resp_status_1xx
end

#compute_resp_status_2xxObject

Number of "Success" category status codes delivered by the Compute platform.



486
487
488
# File 'lib/fastly/models/realtime_measurements.rb', line 486

def compute_resp_status_2xx
  @compute_resp_status_2xx
end

#compute_resp_status_3xxObject

Number of "Redirection" category status codes delivered by the Compute platform.



489
490
491
# File 'lib/fastly/models/realtime_measurements.rb', line 489

def compute_resp_status_3xx
  @compute_resp_status_3xx
end

#compute_resp_status_4xxObject

Number of "Client Error" category status codes delivered by the Compute platform.



492
493
494
# File 'lib/fastly/models/realtime_measurements.rb', line 492

def compute_resp_status_4xx
  @compute_resp_status_4xx
end

#compute_resp_status_5xxObject

Number of "Server Error" category status codes delivered by the Compute platform.



495
496
497
# File 'lib/fastly/models/realtime_measurements.rb', line 495

def compute_resp_status_5xx
  @compute_resp_status_5xx
end

#compute_runtime_errorsObject

Number of times a service experienced a guest runtime error.



543
544
545
# File 'lib/fastly/models/realtime_measurements.rb', line 543

def compute_runtime_errors
  @compute_runtime_errors
end

#compute_stack_limit_exceededObject

Number of times a guest exceeded its stack limit.



534
535
536
# File 'lib/fastly/models/realtime_measurements.rb', line 534

def compute_stack_limit_exceeded
  @compute_stack_limit_exceeded
end

#ddos_action_blackholeObject

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).



669
670
671
# File 'lib/fastly/models/realtime_measurements.rb', line 669

def ddos_action_blackhole
  @ddos_action_blackhole
end

#ddos_action_closeObject

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.



666
667
668
# File 'lib/fastly/models/realtime_measurements.rb', line 666

def ddos_action_close
  @ddos_action_close
end

#ddos_action_downgradeObject

The number of times the downgrade action was taken. The downgrade action restricts the client to http1.



699
700
701
# File 'lib/fastly/models/realtime_measurements.rb', line 699

def ddos_action_downgrade
  @ddos_action_downgrade
end

#ddos_action_downgraded_connectionsObject

The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.



702
703
704
# File 'lib/fastly/models/realtime_measurements.rb', line 702

def ddos_action_downgraded_connections
  @ddos_action_downgraded_connections
end

#ddos_action_limit_streams_connectionsObject

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.



654
655
656
# File 'lib/fastly/models/realtime_measurements.rb', line 654

def ddos_action_limit_streams_connections
  @ddos_action_limit_streams_connections
end

#ddos_action_limit_streams_requestsObject

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.



657
658
659
# File 'lib/fastly/models/realtime_measurements.rb', line 657

def ddos_action_limit_streams_requests
  @ddos_action_limit_streams_requests
end

#ddos_action_tarpitObject

The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.



663
664
665
# File 'lib/fastly/models/realtime_measurements.rb', line 663

def ddos_action_tarpit
  @ddos_action_tarpit
end

#ddos_action_tarpit_acceptObject

The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.



660
661
662
# File 'lib/fastly/models/realtime_measurements.rb', line 660

def ddos_action_tarpit_accept
  @ddos_action_tarpit_accept
end

#deliver_sub_countObject

Number of executions of the ‘vcl_deliver` Varnish subroutine.



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

def deliver_sub_count
  @deliver_sub_count
end

#deliver_sub_timeObject

Time spent inside the ‘vcl_deliver` Varnish subroutine (in nanoseconds).



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

def deliver_sub_time
  @deliver_sub_time
end

#edge_hit_requestsObject

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



498
499
500
# File 'lib/fastly/models/realtime_measurements.rb', line 498

def edge_hit_requests
  @edge_hit_requests
end

#edge_hit_resp_body_bytesObject

Body bytes delivered for edge hits.



546
547
548
# File 'lib/fastly/models/realtime_measurements.rb', line 546

def edge_hit_resp_body_bytes
  @edge_hit_resp_body_bytes
end

#edge_hit_resp_header_bytesObject

Header bytes delivered for edge hits.



549
550
551
# File 'lib/fastly/models/realtime_measurements.rb', line 549

def edge_hit_resp_header_bytes
  @edge_hit_resp_header_bytes
end

#edge_miss_requestsObject

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



501
502
503
# File 'lib/fastly/models/realtime_measurements.rb', line 501

def edge_miss_requests
  @edge_miss_requests
end

#edge_miss_resp_body_bytesObject

Body bytes delivered for edge misses.



552
553
554
# File 'lib/fastly/models/realtime_measurements.rb', line 552

def edge_miss_resp_body_bytes
  @edge_miss_resp_body_bytes
end

#edge_miss_resp_header_bytesObject

Header bytes delivered for edge misses.



555
556
557
# File 'lib/fastly/models/realtime_measurements.rb', line 555

def edge_miss_resp_header_bytes
  @edge_miss_resp_header_bytes
end

#edge_requestsObject

Number of requests sent by end users to Fastly.



432
433
434
# File 'lib/fastly/models/realtime_measurements.rb', line 432

def edge_requests
  @edge_requests
end

#edge_resp_body_bytesObject

Total body bytes delivered from Fastly to the end user.



438
439
440
# File 'lib/fastly/models/realtime_measurements.rb', line 438

def edge_resp_body_bytes
  @edge_resp_body_bytes
end

#edge_resp_header_bytesObject

Total header bytes delivered from Fastly to the end user.



435
436
437
# File 'lib/fastly/models/realtime_measurements.rb', line 435

def edge_resp_header_bytes
  @edge_resp_header_bytes
end

#error_sub_countObject

Number of executions of the ‘vcl_error` Varnish subroutine.



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

def error_sub_count
  @error_sub_count
end

#error_sub_timeObject

Time spent inside the ‘vcl_error` Varnish subroutine (in nanoseconds).



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

def error_sub_time
  @error_sub_time
end

#errorsObject

Number of cache errors.



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

def errors
  @errors
end

#fanout_bereq_body_bytesObject

Total body or message content bytes sent to backends over Fanout connections.



642
643
644
# File 'lib/fastly/models/realtime_measurements.rb', line 642

def fanout_bereq_body_bytes
  @fanout_bereq_body_bytes
end

#fanout_bereq_header_bytesObject

Total header bytes sent to backends over Fanout connections.



639
640
641
# File 'lib/fastly/models/realtime_measurements.rb', line 639

def fanout_bereq_header_bytes
  @fanout_bereq_header_bytes
end

#fanout_beresp_body_bytesObject

Total body or message content bytes received from backends over Fanout connections.



648
649
650
# File 'lib/fastly/models/realtime_measurements.rb', line 648

def fanout_beresp_body_bytes
  @fanout_beresp_body_bytes
end

#fanout_beresp_header_bytesObject

Total header bytes received from backends over Fanout connections.



645
646
647
# File 'lib/fastly/models/realtime_measurements.rb', line 645

def fanout_beresp_header_bytes
  @fanout_beresp_header_bytes
end

#fanout_conn_time_msObject

Total duration of Fanout connections with end users.



651
652
653
# File 'lib/fastly/models/realtime_measurements.rb', line 651

def fanout_conn_time_ms
  @fanout_conn_time_ms
end

#fanout_recv_publishesObject

Total published messages received from the publish API endpoint.



609
610
611
# File 'lib/fastly/models/realtime_measurements.rb', line 609

def fanout_recv_publishes
  @fanout_recv_publishes
end

#fanout_req_body_bytesObject

Total body or message content bytes received from end users over Fanout connections.



630
631
632
# File 'lib/fastly/models/realtime_measurements.rb', line 630

def fanout_req_body_bytes
  @fanout_req_body_bytes
end

#fanout_req_header_bytesObject

Total header bytes received from end users over Fanout connections.



627
628
629
# File 'lib/fastly/models/realtime_measurements.rb', line 627

def fanout_req_header_bytes
  @fanout_req_header_bytes
end

#fanout_resp_body_bytesObject

Total body or message content bytes sent to end users over Fanout connections, excluding published message content.



636
637
638
# File 'lib/fastly/models/realtime_measurements.rb', line 636

def fanout_resp_body_bytes
  @fanout_resp_body_bytes
end

#fanout_resp_header_bytesObject

Total header bytes sent to end users over Fanout connections.



633
634
635
# File 'lib/fastly/models/realtime_measurements.rb', line 633

def fanout_resp_header_bytes
  @fanout_resp_header_bytes
end

#fanout_send_publishesObject

Total published messages sent to end users.



612
613
614
# File 'lib/fastly/models/realtime_measurements.rb', line 612

def fanout_send_publishes
  @fanout_send_publishes
end

#fetch_sub_countObject

Number of executions of the ‘vcl_fetch` Varnish subroutine.



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

def fetch_sub_count
  @fetch_sub_count
end

#fetch_sub_timeObject

Time spent inside the ‘vcl_fetch` Varnish subroutine (in nanoseconds).



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

def fetch_sub_time
  @fetch_sub_time
end

#hash_sub_countObject

Number of executions of the ‘vcl_hash` Varnish subroutine.



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

def hash_sub_count
  @hash_sub_count
end

#hash_sub_timeObject

Time spent inside the ‘vcl_hash` Varnish subroutine (in nanoseconds).



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

def hash_sub_time
  @hash_sub_time
end

#header_sizeObject

Total header bytes delivered (alias for resp_header_bytes).



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

def header_size
  @header_size
end

#hit_resp_body_bytesObject

Total body bytes delivered for cache hits.



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

def hit_resp_body_bytes
  @hit_resp_body_bytes
end

#hit_sub_countObject

Number of executions of the ‘vcl_hit` Varnish subroutine.



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

def hit_sub_count
  @hit_sub_count
end

#hit_sub_timeObject

Time spent inside the ‘vcl_hit` Varnish subroutine (in nanoseconds).



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

def hit_sub_time
  @hit_sub_time
end

#hitsObject

Number of cache hits.



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

def hits
  @hits
end

#hits_timeObject

Total amount of time spent processing cache hits (in seconds).



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

def hits_time
  @hits_time
end

#http2Object

Number of requests received over HTTP/2.



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

def http2
  @http2
end

#http3Object

Number of requests received over HTTP/3.



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

def http3
  @http3
end

#imgoptoObject

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.



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

def imgopto
  @imgopto
end

#imgopto_resp_body_bytesObject

Total body bytes delivered from the Fastly Image Optimizer service, including shield traffic.



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

def imgopto_resp_body_bytes
  @imgopto_resp_body_bytes
end

#imgopto_resp_header_bytesObject

Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic.



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

def imgopto_resp_header_bytes
  @imgopto_resp_header_bytes
end

#imgopto_shieldObject

Number of responses that came from the Fastly Image Optimizer service via a shield.



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

def imgopto_shield
  @imgopto_shield
end

#imgopto_shield_resp_body_bytesObject

Total body bytes delivered via a shield from the Fastly Image Optimizer service.



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

def imgopto_shield_resp_body_bytes
  @imgopto_shield_resp_body_bytes
end

#imgopto_shield_resp_header_bytesObject

Total header bytes delivered via a shield from the Fastly Image Optimizer service.



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

def imgopto_shield_resp_header_bytes
  @imgopto_shield_resp_header_bytes
end

#imgopto_transformsObject

Number of transforms performed by the Fastly Image Optimizer service.



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

def imgopto_transforms
  @imgopto_transforms
end

#imgvideoObject

Number of video responses that came from the Fastly Image Optimizer service.



405
406
407
# File 'lib/fastly/models/realtime_measurements.rb', line 405

def imgvideo
  @imgvideo
end

#imgvideo_framesObject

Number of video frames that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video.



408
409
410
# File 'lib/fastly/models/realtime_measurements.rb', line 408

def imgvideo_frames
  @imgvideo_frames
end

#imgvideo_resp_body_bytesObject

Total body bytes of video delivered from the Fastly Image Optimizer service.



414
415
416
# File 'lib/fastly/models/realtime_measurements.rb', line 414

def imgvideo_resp_body_bytes
  @imgvideo_resp_body_bytes
end

#imgvideo_resp_header_bytesObject

Total header bytes of video delivered from the Fastly Image Optimizer service.



411
412
413
# File 'lib/fastly/models/realtime_measurements.rb', line 411

def imgvideo_resp_header_bytes
  @imgvideo_resp_header_bytes
end

#imgvideo_shieldObject

Number of video responses delivered via a shield that came from the Fastly Image Optimizer service.



417
418
419
# File 'lib/fastly/models/realtime_measurements.rb', line 417

def imgvideo_shield
  @imgvideo_shield
end

#imgvideo_shield_framesObject

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.



420
421
422
# File 'lib/fastly/models/realtime_measurements.rb', line 420

def imgvideo_shield_frames
  @imgvideo_shield_frames
end

#imgvideo_shield_resp_body_bytesObject

Total body bytes of video delivered via a shield from the Fastly Image Optimizer service.



426
427
428
# File 'lib/fastly/models/realtime_measurements.rb', line 426

def imgvideo_shield_resp_body_bytes
  @imgvideo_shield_resp_body_bytes
end

#imgvideo_shield_resp_header_bytesObject

Total header bytes of video delivered via a shield from the Fastly Image Optimizer service.



423
424
425
# File 'lib/fastly/models/realtime_measurements.rb', line 423

def imgvideo_shield_resp_header_bytes
  @imgvideo_shield_resp_header_bytes
end

#ipv6Object

Number of requests that were received over IPv6.



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

def ipv6
  @ipv6
end

#kv_store_class_a_operationsObject

The total number of class a operations for the KV store.



615
616
617
# File 'lib/fastly/models/realtime_measurements.rb', line 615

def kv_store_class_a_operations
  @kv_store_class_a_operations
end

#kv_store_class_b_operationsObject

The total number of class b operations for the KV store.



618
619
620
# File 'lib/fastly/models/realtime_measurements.rb', line 618

def kv_store_class_b_operations
  @kv_store_class_b_operations
end

#logObject

Number of log lines sent.



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

def log
  @log
end

#log_bytesObject

Total log bytes sent.



429
430
431
# File 'lib/fastly/models/realtime_measurements.rb', line 429

def log_bytes
  @log_bytes
end

#loggingObject

Number of log lines sent (alias for ‘log`).



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

def logging
  @logging
end

#missObject

Number of cache misses.



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

def miss
  @miss
end

#miss_histogramObject

A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).



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

def miss_histogram
  @miss_histogram
end

#miss_resp_body_bytesObject

Total body bytes delivered for cache misses.



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

def miss_resp_body_bytes
  @miss_resp_body_bytes
end

#miss_sub_countObject

Number of executions of the ‘vcl_miss` Varnish subroutine.



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

def miss_sub_count
  @miss_sub_count
end

#miss_sub_timeObject

Time spent inside the ‘vcl_miss` Varnish subroutine (in nanoseconds).



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

def miss_sub_time
  @miss_sub_time
end

#miss_timeObject

Total amount of time spent processing cache misses (in seconds).



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

def miss_time
  @miss_time
end

#object_size_100kObject

Number of objects served that were between 10KB and 100KB in size.



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

def object_size_100k
  @object_size_100k
end

#object_size_100mObject

Number of objects served that were between 10MB and 100MB in size.



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

def object_size_100m
  @object_size_100m
end

#object_size_10kObject

Number of objects served that were between 1KB and 10KB in size.



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

def object_size_10k
  @object_size_10k
end

#object_size_10mObject

Number of objects served that were between 1MB and 10MB in size.



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

def object_size_10m
  @object_size_10m
end

#object_size_1gObject

Number of objects served that were between 100MB and 1GB in size.



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

def object_size_1g
  @object_size_1g
end

#object_size_1kObject

Number of objects served that were under 1KB in size.



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

def object_size_1k
  @object_size_1k
end

#object_size_1mObject

Number of objects served that were between 100KB and 1MB in size.



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

def object_size_1m
  @object_size_1m
end

#object_size_otherObject

Number of objects served that were larger than 1GB in size.



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

def object_size_other
  @object_size_other
end

#object_store_class_a_operationsObject

Use kv_store_class_a_operations.



621
622
623
# File 'lib/fastly/models/realtime_measurements.rb', line 621

def object_store_class_a_operations
  @object_store_class_a_operations
end

#object_store_class_b_operationsObject

Use kv_store_class_b_operations.



624
625
626
# File 'lib/fastly/models/realtime_measurements.rb', line 624

def object_store_class_b_operations
  @object_store_class_b_operations
end

#origin_cache_fetch_resp_body_bytesObject

Body bytes received from origin for cacheable content.



558
559
560
# File 'lib/fastly/models/realtime_measurements.rb', line 558

def origin_cache_fetch_resp_body_bytes
  @origin_cache_fetch_resp_body_bytes
end

#origin_cache_fetch_resp_header_bytesObject

Header bytes received from an origin for cacheable content.



561
562
563
# File 'lib/fastly/models/realtime_measurements.rb', line 561

def origin_cache_fetch_resp_header_bytes
  @origin_cache_fetch_resp_header_bytes
end

#origin_cache_fetchesObject

The total number of completed requests made to backends (origins) that returned cacheable content.



516
517
518
# File 'lib/fastly/models/realtime_measurements.rb', line 516

def origin_cache_fetches
  @origin_cache_fetches
end

#origin_fetch_body_bytesObject

Total request body bytes sent to origin.



450
451
452
# File 'lib/fastly/models/realtime_measurements.rb', line 450

def origin_fetch_body_bytes
  @origin_fetch_body_bytes
end

#origin_fetch_header_bytesObject

Total request header bytes sent to origin.



447
448
449
# File 'lib/fastly/models/realtime_measurements.rb', line 447

def origin_fetch_header_bytes
  @origin_fetch_header_bytes
end

#origin_fetch_resp_body_bytesObject

Total body bytes received from origin.



456
457
458
# File 'lib/fastly/models/realtime_measurements.rb', line 456

def origin_fetch_resp_body_bytes
  @origin_fetch_resp_body_bytes
end

#origin_fetch_resp_header_bytesObject

Total header bytes received from origin.



453
454
455
# File 'lib/fastly/models/realtime_measurements.rb', line 453

def origin_fetch_resp_header_bytes
  @origin_fetch_resp_header_bytes
end

#origin_fetchesObject

Number of requests sent to origin.



444
445
446
# File 'lib/fastly/models/realtime_measurements.rb', line 444

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`).



741
742
743
# File 'lib/fastly/models/realtime_measurements.rb', line 741

def origin_offload
  @origin_offload
end

#origin_revalidationsObject

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.



441
442
443
# File 'lib/fastly/models/realtime_measurements.rb', line 441

def origin_revalidations
  @origin_revalidations
end

#otfpObject

Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp
  @otfp
end

#otfp_deliver_timeObject

Total amount of time spent delivering a response from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds).



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

def otfp_deliver_time
  @otfp_deliver_time
end

#otfp_manifestsObject

Number of responses that were manifest files from the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp_manifests
  @otfp_manifests
end

#otfp_resp_body_bytesObject

Total body bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp_resp_body_bytes
  @otfp_resp_body_bytes
end

#otfp_resp_header_bytesObject

Total header bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp_resp_header_bytes
  @otfp_resp_header_bytes
end

#otfp_shieldObject

Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand via a shield.



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

def otfp_shield
  @otfp_shield
end

#otfp_shield_resp_body_bytesObject

Total body bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp_shield_resp_body_bytes
  @otfp_shield_resp_body_bytes
end

#otfp_shield_resp_header_bytesObject

Total header bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand.



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

def otfp_shield_resp_header_bytes
  @otfp_shield_resp_header_bytes
end

#otfp_shield_timeObject

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).



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

def otfp_shield_time
  @otfp_shield_time
end

#passObject

Number of requests that passed through the CDN without being cached.



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

def pass
  @pass
end

#pass_resp_body_bytesObject

Total body bytes delivered for cache passes.



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

def pass_resp_body_bytes
  @pass_resp_body_bytes
end

#pass_sub_countObject

Number of executions of the ‘vcl_pass` Varnish subroutine.



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

def pass_sub_count
  @pass_sub_count
end

#pass_sub_timeObject

Time spent inside the ‘vcl_pass` Varnish subroutine (in nanoseconds).



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

def pass_sub_time
  @pass_sub_time
end

#pass_timeObject

Total amount of time spent processing cache passes (in seconds).



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

def pass_time
  @pass_time
end

#pciObject

Number of responses with the PCI flag turned on.



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

def pci
  @pci
end

#pipe_sub_countObject

Number of executions of the ‘vcl_pipe` Varnish subroutine.



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

def pipe_sub_count
  @pipe_sub_count
end

#pipe_sub_timeObject

Time spent inside the ‘vcl_pipe` Varnish subroutine (in nanoseconds).



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

def pipe_sub_time
  @pipe_sub_time
end

#predeliver_sub_countObject

Number of executions of the ‘vcl_predeliver` Varnish subroutine.



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

def predeliver_sub_count
  @predeliver_sub_count
end

#predeliver_sub_timeObject

Time spent inside the ‘vcl_predeliver` Varnish subroutine (in nanoseconds).



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

def predeliver_sub_time
  @predeliver_sub_time
end

#prehash_sub_countObject

Number of executions of the ‘vcl_prehash` Varnish subroutine.



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

def prehash_sub_count
  @prehash_sub_count
end

#prehash_sub_timeObject

Time spent inside the ‘vcl_prehash` Varnish subroutine (in nanoseconds).



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

def prehash_sub_time
  @prehash_sub_time
end

#recv_sub_countObject

Number of executions of the ‘vcl_recv` Varnish subroutine.



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

def recv_sub_count
  @recv_sub_count
end

#recv_sub_timeObject

Time spent inside the ‘vcl_recv` Varnish subroutine (in nanoseconds).



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

def recv_sub_time
  @recv_sub_time
end

#req_body_bytesObject

Total body bytes received.



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

def req_body_bytes
  @req_body_bytes
end

#req_header_bytesObject

Total header bytes received.



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

def req_header_bytes
  @req_header_bytes
end

#request_denied_get_head_bodyObject

Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body.



744
745
746
# File 'lib/fastly/models/realtime_measurements.rb', line 744

def request_denied_get_head_body
  @request_denied_get_head_body
end

#requestsObject

Number of requests processed.



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

def requests
  @requests
end

#resp_body_bytesObject

Total body bytes delivered (edge_resp_body_bytes + shield_resp_body_bytes).



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

def resp_body_bytes
  @resp_body_bytes
end

#resp_header_bytesObject

Total header bytes delivered (edge_resp_header_bytes + shield_resp_header_bytes).



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

def resp_header_bytes
  @resp_header_bytes
end

#restartsObject

Number of restarts performed.



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

def restarts
  @restarts
end

#segblock_origin_fetchesObject

Number of ‘Range` requests to origin for segments of resources when using segmented caching.



477
478
479
# File 'lib/fastly/models/realtime_measurements.rb', line 477

def segblock_origin_fetches
  @segblock_origin_fetches
end

#segblock_shield_fetchesObject

Number of ‘Range` requests to a shield for segments of resources when using segmented caching.



480
481
482
# File 'lib/fastly/models/realtime_measurements.rb', line 480

def segblock_shield_fetches
  @segblock_shield_fetches
end

#service_ddos_requests_allowedObject

Number of requests analyzed for DDoS attacks against a customer origin or service, but with no DDoS detected.



753
754
755
# File 'lib/fastly/models/realtime_measurements.rb', line 753

def service_ddos_requests_allowed
  @service_ddos_requests_allowed
end

#service_ddos_requests_detectedObject

Number of requests classified as a DDoS attack against a customer origin or service.



747
748
749
# File 'lib/fastly/models/realtime_measurements.rb', line 747

def service_ddos_requests_detected
  @service_ddos_requests_detected
end

#service_ddos_requests_mitigatedObject

Number of requests classified as a DDoS attack against a customer origin or service that were mitigated by the Fastly platform.



750
751
752
# File 'lib/fastly/models/realtime_measurements.rb', line 750

def service_ddos_requests_mitigated
  @service_ddos_requests_mitigated
end

#shieldObject

Number of requests from edge to the shield POP.



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

def shield
  @shield
end

#shield_cache_fetchesObject

The total number of completed requests made to shields that returned cacheable content.



519
520
521
# File 'lib/fastly/models/realtime_measurements.rb', line 519

def shield_cache_fetches
  @shield_cache_fetches
end

#shield_fetch_body_bytesObject

Total request body bytes sent to a shield.



468
469
470
# File 'lib/fastly/models/realtime_measurements.rb', line 468

def shield_fetch_body_bytes
  @shield_fetch_body_bytes
end

#shield_fetch_header_bytesObject

Total request header bytes sent to a shield.



465
466
467
# File 'lib/fastly/models/realtime_measurements.rb', line 465

def shield_fetch_header_bytes
  @shield_fetch_header_bytes
end

#shield_fetch_resp_body_bytesObject

Total response body bytes sent from a shield to the edge.



474
475
476
# File 'lib/fastly/models/realtime_measurements.rb', line 474

def shield_fetch_resp_body_bytes
  @shield_fetch_resp_body_bytes
end

#shield_fetch_resp_header_bytesObject

Total response header bytes sent from a shield to the edge.



471
472
473
# File 'lib/fastly/models/realtime_measurements.rb', line 471

def shield_fetch_resp_header_bytes
  @shield_fetch_resp_header_bytes
end

#shield_fetchesObject

Number of requests made from one Fastly POP to another, as part of shielding.



462
463
464
# File 'lib/fastly/models/realtime_measurements.rb', line 462

def shield_fetches
  @shield_fetches
end

#shield_hit_requestsObject

Number of requests that resulted in a hit at a shield.



564
565
566
# File 'lib/fastly/models/realtime_measurements.rb', line 564

def shield_hit_requests
  @shield_hit_requests
end

#shield_hit_resp_body_bytesObject

Body bytes delivered for shield hits.



573
574
575
# File 'lib/fastly/models/realtime_measurements.rb', line 573

def shield_hit_resp_body_bytes
  @shield_hit_resp_body_bytes
end

#shield_hit_resp_header_bytesObject

Header bytes delivered for shield hits.



570
571
572
# File 'lib/fastly/models/realtime_measurements.rb', line 570

def shield_hit_resp_header_bytes
  @shield_hit_resp_header_bytes
end

#shield_miss_requestsObject

Number of requests that resulted in a miss at a shield.



567
568
569
# File 'lib/fastly/models/realtime_measurements.rb', line 567

def shield_miss_requests
  @shield_miss_requests
end

#shield_miss_resp_body_bytesObject

Body bytes delivered for shield misses.



579
580
581
# File 'lib/fastly/models/realtime_measurements.rb', line 579

def shield_miss_resp_body_bytes
  @shield_miss_resp_body_bytes
end

#shield_miss_resp_header_bytesObject

Header bytes delivered for shield misses.



576
577
578
# File 'lib/fastly/models/realtime_measurements.rb', line 576

def shield_miss_resp_header_bytes
  @shield_miss_resp_header_bytes
end

#shield_resp_body_bytesObject

Total body bytes delivered via a shield.



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

def shield_resp_body_bytes
  @shield_resp_body_bytes
end

#shield_resp_header_bytesObject

Total header bytes delivered via a shield.



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

def shield_resp_header_bytes
  @shield_resp_header_bytes
end

#shield_revalidationsObject

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.



459
460
461
# File 'lib/fastly/models/realtime_measurements.rb', line 459

def shield_revalidations
  @shield_revalidations
end

#status_1xxObject

Number of "Informational" category status codes delivered.



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

def status_1xx
  @status_1xx
end

#status_200Object

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



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

def status_200
  @status_200
end

#status_204Object

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



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

def status_204
  @status_204
end

#status_206Object

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



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

def status_206
  @status_206
end

#status_2xxObject

Number of "Success" status codes delivered.



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

def status_2xx
  @status_2xx
end

#status_301Object

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



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

def status_301
  @status_301
end

#status_302Object

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



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

def status_302
  @status_302
end

#status_304Object

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



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

def status_304
  @status_304
end

#status_3xxObject

Number of "Redirection" codes delivered.



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

def status_3xx
  @status_3xx
end

#status_400Object

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



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

def status_400
  @status_400
end

#status_401Object

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



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

def status_401
  @status_401
end

#status_403Object

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



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

def status_403
  @status_403
end

#status_404Object

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



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

def status_404
  @status_404
end

#status_406Object

Number of responses sent with status code 406 (Not Acceptable).



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

def status_406
  @status_406
end

#status_416Object

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



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

def status_416
  @status_416
end

#status_429Object

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



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

def status_429
  @status_429
end

#status_4xxObject

Number of "Client Error" codes delivered.



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

def status_4xx
  @status_4xx
end

#status_500Object

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



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

def status_500
  @status_500
end

#status_501Object

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



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

def status_501
  @status_501
end

#status_502Object

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



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

def status_502
  @status_502
end

#status_503Object

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



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

def status_503
  @status_503
end

#status_504Object

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



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

def status_504
  @status_504
end

#status_505Object

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



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

def status_505
  @status_505
end

#status_5xxObject

Number of "Server Error" codes delivered.



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

def status_5xx
  @status_5xx
end

#synthObject

Number of requests that returned a synthetic response (i.e., response objects created with the ‘synthetic` VCL statement).



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

def synth
  @synth
end

#tlsObject

Number of requests that were received over TLS.



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

def tls
  @tls
end

#tls_v10Object

Number of requests received over TLS 1.0.



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

def tls_v10
  @tls_v10
end

#tls_v11Object

Number of requests received over TLS 1.1.



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

def tls_v11
  @tls_v11
end

#tls_v12Object

Number of requests received over TLS 1.2.



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

def tls_v12
  @tls_v12
end

#tls_v13Object

Number of requests received over TLS 1.3.



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

def tls_v13
  @tls_v13
end

#uncacheableObject

Number of requests that were designated uncachable.



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

def uncacheable
  @uncacheable
end

#videoObject

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).



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

def video
  @video
end

#waf_blockedObject

Number of requests that triggered a WAF rule and were blocked.



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

def waf_blocked
  @waf_blocked
end

#waf_loggedObject

Number of requests that triggered a WAF rule and were logged.



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

def waf_logged
  @waf_logged
end

#waf_passedObject

Number of requests that triggered a WAF rule and were passed.



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

def waf_passed
  @waf_passed
end

#websocket_bereq_body_bytesObject

Total message content bytes sent to backends over passthrough WebSocket connections.



594
595
596
# File 'lib/fastly/models/realtime_measurements.rb', line 594

def websocket_bereq_body_bytes
  @websocket_bereq_body_bytes
end

#websocket_bereq_header_bytesObject

Total header bytes sent to backends over passthrough WebSocket connections.



591
592
593
# File 'lib/fastly/models/realtime_measurements.rb', line 591

def websocket_bereq_header_bytes
  @websocket_bereq_header_bytes
end

#websocket_beresp_body_bytesObject

Total message content bytes received from backends over passthrough WebSocket connections.



600
601
602
# File 'lib/fastly/models/realtime_measurements.rb', line 600

def websocket_beresp_body_bytes
  @websocket_beresp_body_bytes
end

#websocket_beresp_header_bytesObject

Total header bytes received from backends over passthrough WebSocket connections.



597
598
599
# File 'lib/fastly/models/realtime_measurements.rb', line 597

def websocket_beresp_header_bytes
  @websocket_beresp_header_bytes
end

#websocket_conn_time_msObject

Total duration of passthrough WebSocket connections with end users.



603
604
605
# File 'lib/fastly/models/realtime_measurements.rb', line 603

def websocket_conn_time_ms
  @websocket_conn_time_ms
end

#websocket_req_body_bytesObject

Total message content bytes received from end users over passthrough WebSocket connections.



585
586
587
# File 'lib/fastly/models/realtime_measurements.rb', line 585

def websocket_req_body_bytes
  @websocket_req_body_bytes
end

#websocket_req_header_bytesObject

Total header bytes received from end users over passthrough WebSocket connections.



582
583
584
# File 'lib/fastly/models/realtime_measurements.rb', line 582

def websocket_req_header_bytes
  @websocket_req_header_bytes
end

#websocket_resp_body_bytesObject

Total message content bytes sent to end users over passthrough WebSocket connections.



606
607
608
# File 'lib/fastly/models/realtime_measurements.rb', line 606

def websocket_resp_body_bytes
  @websocket_resp_body_bytes
end

#websocket_resp_header_bytesObject

Total header bytes sent to end users over passthrough WebSocket connections.



588
589
590
# File 'lib/fastly/models/realtime_measurements.rb', line 588

def websocket_resp_header_bytes
  @websocket_resp_header_bytes
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



1008
1009
1010
# File 'lib/fastly/models/realtime_measurements.rb', line 1008

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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

def self.attribute_map
  {
    :'requests' => :'requests',
    :'logging' => :'logging',
    :'log' => :'log',
    :'resp_header_bytes' => :'resp_header_bytes',
    :'header_size' => :'header_size',
    :'resp_body_bytes' => :'resp_body_bytes',
    :'body_size' => :'body_size',
    :'hits' => :'hits',
    :'miss' => :'miss',
    :'pass' => :'pass',
    :'synth' => :'synth',
    :'errors' => :'errors',
    :'hits_time' => :'hits_time',
    :'miss_time' => :'miss_time',
    :'miss_histogram' => :'miss_histogram',
    :'compute_requests' => :'compute_requests',
    :'compute_execution_time_ms' => :'compute_execution_time_ms',
    :'compute_ram_used' => :'compute_ram_used',
    :'compute_request_time_ms' => :'compute_request_time_ms',
    :'compute_request_time_billed_ms' => :'compute_request_time_billed_ms',
    :'shield' => :'shield',
    :'ipv6' => :'ipv6',
    :'imgopto' => :'imgopto',
    :'imgopto_shield' => :'imgopto_shield',
    :'imgopto_transforms' => :'imgopto_transforms',
    :'otfp' => :'otfp',
    :'otfp_shield' => :'otfp_shield',
    :'otfp_manifests' => :'otfp_manifests',
    :'video' => :'video',
    :'pci' => :'pci',
    :'http2' => :'http2',
    :'http3' => :'http3',
    :'restarts' => :'restarts',
    :'req_header_bytes' => :'req_header_bytes',
    :'req_body_bytes' => :'req_body_bytes',
    :'bereq_header_bytes' => :'bereq_header_bytes',
    :'bereq_body_bytes' => :'bereq_body_bytes',
    :'waf_blocked' => :'waf_blocked',
    :'waf_logged' => :'waf_logged',
    :'waf_passed' => :'waf_passed',
    :'attack_req_header_bytes' => :'attack_req_header_bytes',
    :'attack_req_body_bytes' => :'attack_req_body_bytes',
    :'attack_resp_synth_bytes' => :'attack_resp_synth_bytes',
    :'attack_logged_req_header_bytes' => :'attack_logged_req_header_bytes',
    :'attack_logged_req_body_bytes' => :'attack_logged_req_body_bytes',
    :'attack_blocked_req_header_bytes' => :'attack_blocked_req_header_bytes',
    :'attack_blocked_req_body_bytes' => :'attack_blocked_req_body_bytes',
    :'attack_passed_req_header_bytes' => :'attack_passed_req_header_bytes',
    :'attack_passed_req_body_bytes' => :'attack_passed_req_body_bytes',
    :'shield_resp_header_bytes' => :'shield_resp_header_bytes',
    :'shield_resp_body_bytes' => :'shield_resp_body_bytes',
    :'otfp_resp_header_bytes' => :'otfp_resp_header_bytes',
    :'otfp_resp_body_bytes' => :'otfp_resp_body_bytes',
    :'otfp_shield_resp_header_bytes' => :'otfp_shield_resp_header_bytes',
    :'otfp_shield_resp_body_bytes' => :'otfp_shield_resp_body_bytes',
    :'otfp_shield_time' => :'otfp_shield_time',
    :'otfp_deliver_time' => :'otfp_deliver_time',
    :'imgopto_resp_header_bytes' => :'imgopto_resp_header_bytes',
    :'imgopto_resp_body_bytes' => :'imgopto_resp_body_bytes',
    :'imgopto_shield_resp_header_bytes' => :'imgopto_shield_resp_header_bytes',
    :'imgopto_shield_resp_body_bytes' => :'imgopto_shield_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_406' => :'status_406',
    :'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',
    :'uncacheable' => :'uncacheable',
    :'pass_time' => :'pass_time',
    :'tls' => :'tls',
    :'tls_v10' => :'tls_v10',
    :'tls_v11' => :'tls_v11',
    :'tls_v12' => :'tls_v12',
    :'tls_v13' => :'tls_v13',
    :'object_size_1k' => :'object_size_1k',
    :'object_size_10k' => :'object_size_10k',
    :'object_size_100k' => :'object_size_100k',
    :'object_size_1m' => :'object_size_1m',
    :'object_size_10m' => :'object_size_10m',
    :'object_size_100m' => :'object_size_100m',
    :'object_size_1g' => :'object_size_1g',
    :'object_size_other' => :'object_size_other',
    :'recv_sub_time' => :'recv_sub_time',
    :'recv_sub_count' => :'recv_sub_count',
    :'hash_sub_time' => :'hash_sub_time',
    :'hash_sub_count' => :'hash_sub_count',
    :'miss_sub_time' => :'miss_sub_time',
    :'miss_sub_count' => :'miss_sub_count',
    :'fetch_sub_time' => :'fetch_sub_time',
    :'fetch_sub_count' => :'fetch_sub_count',
    :'pass_sub_time' => :'pass_sub_time',
    :'pass_sub_count' => :'pass_sub_count',
    :'pipe_sub_time' => :'pipe_sub_time',
    :'pipe_sub_count' => :'pipe_sub_count',
    :'deliver_sub_time' => :'deliver_sub_time',
    :'deliver_sub_count' => :'deliver_sub_count',
    :'error_sub_time' => :'error_sub_time',
    :'error_sub_count' => :'error_sub_count',
    :'hit_sub_time' => :'hit_sub_time',
    :'hit_sub_count' => :'hit_sub_count',
    :'prehash_sub_time' => :'prehash_sub_time',
    :'prehash_sub_count' => :'prehash_sub_count',
    :'predeliver_sub_time' => :'predeliver_sub_time',
    :'predeliver_sub_count' => :'predeliver_sub_count',
    :'hit_resp_body_bytes' => :'hit_resp_body_bytes',
    :'miss_resp_body_bytes' => :'miss_resp_body_bytes',
    :'pass_resp_body_bytes' => :'pass_resp_body_bytes',
    :'compute_req_header_bytes' => :'compute_req_header_bytes',
    :'compute_req_body_bytes' => :'compute_req_body_bytes',
    :'compute_resp_header_bytes' => :'compute_resp_header_bytes',
    :'compute_resp_body_bytes' => :'compute_resp_body_bytes',
    :'imgvideo' => :'imgvideo',
    :'imgvideo_frames' => :'imgvideo_frames',
    :'imgvideo_resp_header_bytes' => :'imgvideo_resp_header_bytes',
    :'imgvideo_resp_body_bytes' => :'imgvideo_resp_body_bytes',
    :'imgvideo_shield' => :'imgvideo_shield',
    :'imgvideo_shield_frames' => :'imgvideo_shield_frames',
    :'imgvideo_shield_resp_header_bytes' => :'imgvideo_shield_resp_header_bytes',
    :'imgvideo_shield_resp_body_bytes' => :'imgvideo_shield_resp_body_bytes',
    :'log_bytes' => :'log_bytes',
    :'edge_requests' => :'edge_requests',
    :'edge_resp_header_bytes' => :'edge_resp_header_bytes',
    :'edge_resp_body_bytes' => :'edge_resp_body_bytes',
    :'origin_revalidations' => :'origin_revalidations',
    :'origin_fetches' => :'origin_fetches',
    :'origin_fetch_header_bytes' => :'origin_fetch_header_bytes',
    :'origin_fetch_body_bytes' => :'origin_fetch_body_bytes',
    :'origin_fetch_resp_header_bytes' => :'origin_fetch_resp_header_bytes',
    :'origin_fetch_resp_body_bytes' => :'origin_fetch_resp_body_bytes',
    :'shield_revalidations' => :'shield_revalidations',
    :'shield_fetches' => :'shield_fetches',
    :'shield_fetch_header_bytes' => :'shield_fetch_header_bytes',
    :'shield_fetch_body_bytes' => :'shield_fetch_body_bytes',
    :'shield_fetch_resp_header_bytes' => :'shield_fetch_resp_header_bytes',
    :'shield_fetch_resp_body_bytes' => :'shield_fetch_resp_body_bytes',
    :'segblock_origin_fetches' => :'segblock_origin_fetches',
    :'segblock_shield_fetches' => :'segblock_shield_fetches',
    :'compute_resp_status_1xx' => :'compute_resp_status_1xx',
    :'compute_resp_status_2xx' => :'compute_resp_status_2xx',
    :'compute_resp_status_3xx' => :'compute_resp_status_3xx',
    :'compute_resp_status_4xx' => :'compute_resp_status_4xx',
    :'compute_resp_status_5xx' => :'compute_resp_status_5xx',
    :'edge_hit_requests' => :'edge_hit_requests',
    :'edge_miss_requests' => :'edge_miss_requests',
    :'compute_bereq_header_bytes' => :'compute_bereq_header_bytes',
    :'compute_bereq_body_bytes' => :'compute_bereq_body_bytes',
    :'compute_beresp_header_bytes' => :'compute_beresp_header_bytes',
    :'compute_beresp_body_bytes' => :'compute_beresp_body_bytes',
    :'origin_cache_fetches' => :'origin_cache_fetches',
    :'shield_cache_fetches' => :'shield_cache_fetches',
    :'compute_bereqs' => :'compute_bereqs',
    :'compute_bereq_errors' => :'compute_bereq_errors',
    :'compute_resource_limit_exceeded' => :'compute_resource_limit_exceeded',
    :'compute_heap_limit_exceeded' => :'compute_heap_limit_exceeded',
    :'compute_stack_limit_exceeded' => :'compute_stack_limit_exceeded',
    :'compute_globals_limit_exceeded' => :'compute_globals_limit_exceeded',
    :'compute_guest_errors' => :'compute_guest_errors',
    :'compute_runtime_errors' => :'compute_runtime_errors',
    :'edge_hit_resp_body_bytes' => :'edge_hit_resp_body_bytes',
    :'edge_hit_resp_header_bytes' => :'edge_hit_resp_header_bytes',
    :'edge_miss_resp_body_bytes' => :'edge_miss_resp_body_bytes',
    :'edge_miss_resp_header_bytes' => :'edge_miss_resp_header_bytes',
    :'origin_cache_fetch_resp_body_bytes' => :'origin_cache_fetch_resp_body_bytes',
    :'origin_cache_fetch_resp_header_bytes' => :'origin_cache_fetch_resp_header_bytes',
    :'shield_hit_requests' => :'shield_hit_requests',
    :'shield_miss_requests' => :'shield_miss_requests',
    :'shield_hit_resp_header_bytes' => :'shield_hit_resp_header_bytes',
    :'shield_hit_resp_body_bytes' => :'shield_hit_resp_body_bytes',
    :'shield_miss_resp_header_bytes' => :'shield_miss_resp_header_bytes',
    :'shield_miss_resp_body_bytes' => :'shield_miss_resp_body_bytes',
    :'websocket_req_header_bytes' => :'websocket_req_header_bytes',
    :'websocket_req_body_bytes' => :'websocket_req_body_bytes',
    :'websocket_resp_header_bytes' => :'websocket_resp_header_bytes',
    :'websocket_bereq_header_bytes' => :'websocket_bereq_header_bytes',
    :'websocket_bereq_body_bytes' => :'websocket_bereq_body_bytes',
    :'websocket_beresp_header_bytes' => :'websocket_beresp_header_bytes',
    :'websocket_beresp_body_bytes' => :'websocket_beresp_body_bytes',
    :'websocket_conn_time_ms' => :'websocket_conn_time_ms',
    :'websocket_resp_body_bytes' => :'websocket_resp_body_bytes',
    :'fanout_recv_publishes' => :'fanout_recv_publishes',
    :'fanout_send_publishes' => :'fanout_send_publishes',
    :'kv_store_class_a_operations' => :'kv_store_class_a_operations',
    :'kv_store_class_b_operations' => :'kv_store_class_b_operations',
    :'object_store_class_a_operations' => :'object_store_class_a_operations',
    :'object_store_class_b_operations' => :'object_store_class_b_operations',
    :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
    :'fanout_req_body_bytes' => :'fanout_req_body_bytes',
    :'fanout_resp_header_bytes' => :'fanout_resp_header_bytes',
    :'fanout_resp_body_bytes' => :'fanout_resp_body_bytes',
    :'fanout_bereq_header_bytes' => :'fanout_bereq_header_bytes',
    :'fanout_bereq_body_bytes' => :'fanout_bereq_body_bytes',
    :'fanout_beresp_header_bytes' => :'fanout_beresp_header_bytes',
    :'fanout_beresp_body_bytes' => :'fanout_beresp_body_bytes',
    :'fanout_conn_time_ms' => :'fanout_conn_time_ms',
    :'ddos_action_limit_streams_connections' => :'ddos_action_limit_streams_connections',
    :'ddos_action_limit_streams_requests' => :'ddos_action_limit_streams_requests',
    :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
    :'ddos_action_tarpit' => :'ddos_action_tarpit',
    :'ddos_action_close' => :'ddos_action_close',
    :'ddos_action_blackhole' => :'ddos_action_blackhole',
    :'bot_challenge_starts' => :'bot_challenge_starts',
    :'bot_challenge_complete_tokens_passed' => :'bot_challenge_complete_tokens_passed',
    :'bot_challenge_complete_tokens_failed' => :'bot_challenge_complete_tokens_failed',
    :'bot_challenge_complete_tokens_checked' => :'bot_challenge_complete_tokens_checked',
    :'bot_challenge_complete_tokens_disabled' => :'bot_challenge_complete_tokens_disabled',
    :'bot_challenges_issued' => :'bot_challenges_issued',
    :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
    :'bot_challenges_failed' => :'bot_challenges_failed',
    :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued',
    :'ddos_action_downgrade' => :'ddos_action_downgrade',
    :'ddos_action_downgraded_connections' => :'ddos_action_downgraded_connections',
    :'all_hit_requests' => :'all_hit_requests',
    :'all_miss_requests' => :'all_miss_requests',
    :'all_pass_requests' => :'all_pass_requests',
    :'all_error_requests' => :'all_error_requests',
    :'all_synth_requests' => :'all_synth_requests',
    :'all_edge_hit_requests' => :'all_edge_hit_requests',
    :'all_edge_miss_requests' => :'all_edge_miss_requests',
    :'all_status_1xx' => :'all_status_1xx',
    :'all_status_2xx' => :'all_status_2xx',
    :'all_status_3xx' => :'all_status_3xx',
    :'all_status_4xx' => :'all_status_4xx',
    :'all_status_5xx' => :'all_status_5xx',
    :'origin_offload' => :'origin_offload',
    :'request_denied_get_head_body' => :'request_denied_get_head_body',
    :'service_ddos_requests_detected' => :'service_ddos_requests_detected',
    :'service_ddos_requests_mitigated' => :'service_ddos_requests_mitigated',
    :'service_ddos_requests_allowed' => :'service_ddos_requests_allowed'
  }
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



2553
2554
2555
# File 'lib/fastly/models/realtime_measurements.rb', line 2553

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

.fastly_nullableObject

List of attributes with nullable: true



1265
1266
1267
1268
# File 'lib/fastly/models/realtime_measurements.rb', line 1265

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

.fastly_typesObject

Attribute type mapping.



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
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
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
# File 'lib/fastly/models/realtime_measurements.rb', line 1013

def self.fastly_types
  {
    :'requests' => :'Integer',
    :'logging' => :'Integer',
    :'log' => :'Integer',
    :'resp_header_bytes' => :'Integer',
    :'header_size' => :'Integer',
    :'resp_body_bytes' => :'Integer',
    :'body_size' => :'Integer',
    :'hits' => :'Integer',
    :'miss' => :'Integer',
    :'pass' => :'Integer',
    :'synth' => :'Integer',
    :'errors' => :'Integer',
    :'hits_time' => :'Float',
    :'miss_time' => :'Float',
    :'miss_histogram' => :'Hash<String, Object>',
    :'compute_requests' => :'Integer',
    :'compute_execution_time_ms' => :'Float',
    :'compute_ram_used' => :'Integer',
    :'compute_request_time_ms' => :'Float',
    :'compute_request_time_billed_ms' => :'Float',
    :'shield' => :'Integer',
    :'ipv6' => :'Integer',
    :'imgopto' => :'Integer',
    :'imgopto_shield' => :'Integer',
    :'imgopto_transforms' => :'Integer',
    :'otfp' => :'Integer',
    :'otfp_shield' => :'Integer',
    :'otfp_manifests' => :'Integer',
    :'video' => :'Integer',
    :'pci' => :'Integer',
    :'http2' => :'Integer',
    :'http3' => :'Integer',
    :'restarts' => :'Integer',
    :'req_header_bytes' => :'Integer',
    :'req_body_bytes' => :'Integer',
    :'bereq_header_bytes' => :'Integer',
    :'bereq_body_bytes' => :'Integer',
    :'waf_blocked' => :'Integer',
    :'waf_logged' => :'Integer',
    :'waf_passed' => :'Integer',
    :'attack_req_header_bytes' => :'Integer',
    :'attack_req_body_bytes' => :'Integer',
    :'attack_resp_synth_bytes' => :'Integer',
    :'attack_logged_req_header_bytes' => :'Integer',
    :'attack_logged_req_body_bytes' => :'Integer',
    :'attack_blocked_req_header_bytes' => :'Integer',
    :'attack_blocked_req_body_bytes' => :'Integer',
    :'attack_passed_req_header_bytes' => :'Integer',
    :'attack_passed_req_body_bytes' => :'Integer',
    :'shield_resp_header_bytes' => :'Integer',
    :'shield_resp_body_bytes' => :'Integer',
    :'otfp_resp_header_bytes' => :'Integer',
    :'otfp_resp_body_bytes' => :'Integer',
    :'otfp_shield_resp_header_bytes' => :'Integer',
    :'otfp_shield_resp_body_bytes' => :'Integer',
    :'otfp_shield_time' => :'Float',
    :'otfp_deliver_time' => :'Float',
    :'imgopto_resp_header_bytes' => :'Integer',
    :'imgopto_resp_body_bytes' => :'Integer',
    :'imgopto_shield_resp_header_bytes' => :'Integer',
    :'imgopto_shield_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_406' => :'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',
    :'uncacheable' => :'Integer',
    :'pass_time' => :'Float',
    :'tls' => :'Integer',
    :'tls_v10' => :'Integer',
    :'tls_v11' => :'Integer',
    :'tls_v12' => :'Integer',
    :'tls_v13' => :'Integer',
    :'object_size_1k' => :'Integer',
    :'object_size_10k' => :'Integer',
    :'object_size_100k' => :'Integer',
    :'object_size_1m' => :'Integer',
    :'object_size_10m' => :'Integer',
    :'object_size_100m' => :'Integer',
    :'object_size_1g' => :'Integer',
    :'object_size_other' => :'Integer',
    :'recv_sub_time' => :'Float',
    :'recv_sub_count' => :'Integer',
    :'hash_sub_time' => :'Float',
    :'hash_sub_count' => :'Integer',
    :'miss_sub_time' => :'Float',
    :'miss_sub_count' => :'Integer',
    :'fetch_sub_time' => :'Float',
    :'fetch_sub_count' => :'Integer',
    :'pass_sub_time' => :'Float',
    :'pass_sub_count' => :'Integer',
    :'pipe_sub_time' => :'Float',
    :'pipe_sub_count' => :'Integer',
    :'deliver_sub_time' => :'Float',
    :'deliver_sub_count' => :'Integer',
    :'error_sub_time' => :'Float',
    :'error_sub_count' => :'Integer',
    :'hit_sub_time' => :'Float',
    :'hit_sub_count' => :'Integer',
    :'prehash_sub_time' => :'Float',
    :'prehash_sub_count' => :'Integer',
    :'predeliver_sub_time' => :'Float',
    :'predeliver_sub_count' => :'Integer',
    :'hit_resp_body_bytes' => :'Integer',
    :'miss_resp_body_bytes' => :'Integer',
    :'pass_resp_body_bytes' => :'Integer',
    :'compute_req_header_bytes' => :'Integer',
    :'compute_req_body_bytes' => :'Integer',
    :'compute_resp_header_bytes' => :'Integer',
    :'compute_resp_body_bytes' => :'Integer',
    :'imgvideo' => :'Integer',
    :'imgvideo_frames' => :'Integer',
    :'imgvideo_resp_header_bytes' => :'Integer',
    :'imgvideo_resp_body_bytes' => :'Integer',
    :'imgvideo_shield' => :'Integer',
    :'imgvideo_shield_frames' => :'Integer',
    :'imgvideo_shield_resp_header_bytes' => :'Integer',
    :'imgvideo_shield_resp_body_bytes' => :'Integer',
    :'log_bytes' => :'Integer',
    :'edge_requests' => :'Integer',
    :'edge_resp_header_bytes' => :'Integer',
    :'edge_resp_body_bytes' => :'Integer',
    :'origin_revalidations' => :'Integer',
    :'origin_fetches' => :'Integer',
    :'origin_fetch_header_bytes' => :'Integer',
    :'origin_fetch_body_bytes' => :'Integer',
    :'origin_fetch_resp_header_bytes' => :'Integer',
    :'origin_fetch_resp_body_bytes' => :'Integer',
    :'shield_revalidations' => :'Integer',
    :'shield_fetches' => :'Integer',
    :'shield_fetch_header_bytes' => :'Integer',
    :'shield_fetch_body_bytes' => :'Integer',
    :'shield_fetch_resp_header_bytes' => :'Integer',
    :'shield_fetch_resp_body_bytes' => :'Integer',
    :'segblock_origin_fetches' => :'Integer',
    :'segblock_shield_fetches' => :'Integer',
    :'compute_resp_status_1xx' => :'Integer',
    :'compute_resp_status_2xx' => :'Integer',
    :'compute_resp_status_3xx' => :'Integer',
    :'compute_resp_status_4xx' => :'Integer',
    :'compute_resp_status_5xx' => :'Integer',
    :'edge_hit_requests' => :'Integer',
    :'edge_miss_requests' => :'Integer',
    :'compute_bereq_header_bytes' => :'Integer',
    :'compute_bereq_body_bytes' => :'Integer',
    :'compute_beresp_header_bytes' => :'Integer',
    :'compute_beresp_body_bytes' => :'Integer',
    :'origin_cache_fetches' => :'Integer',
    :'shield_cache_fetches' => :'Integer',
    :'compute_bereqs' => :'Integer',
    :'compute_bereq_errors' => :'Integer',
    :'compute_resource_limit_exceeded' => :'Integer',
    :'compute_heap_limit_exceeded' => :'Integer',
    :'compute_stack_limit_exceeded' => :'Integer',
    :'compute_globals_limit_exceeded' => :'Integer',
    :'compute_guest_errors' => :'Integer',
    :'compute_runtime_errors' => :'Integer',
    :'edge_hit_resp_body_bytes' => :'Integer',
    :'edge_hit_resp_header_bytes' => :'Integer',
    :'edge_miss_resp_body_bytes' => :'Integer',
    :'edge_miss_resp_header_bytes' => :'Integer',
    :'origin_cache_fetch_resp_body_bytes' => :'Integer',
    :'origin_cache_fetch_resp_header_bytes' => :'Integer',
    :'shield_hit_requests' => :'Integer',
    :'shield_miss_requests' => :'Integer',
    :'shield_hit_resp_header_bytes' => :'Integer',
    :'shield_hit_resp_body_bytes' => :'Integer',
    :'shield_miss_resp_header_bytes' => :'Integer',
    :'shield_miss_resp_body_bytes' => :'Integer',
    :'websocket_req_header_bytes' => :'Integer',
    :'websocket_req_body_bytes' => :'Integer',
    :'websocket_resp_header_bytes' => :'Integer',
    :'websocket_bereq_header_bytes' => :'Integer',
    :'websocket_bereq_body_bytes' => :'Integer',
    :'websocket_beresp_header_bytes' => :'Integer',
    :'websocket_beresp_body_bytes' => :'Integer',
    :'websocket_conn_time_ms' => :'Integer',
    :'websocket_resp_body_bytes' => :'Integer',
    :'fanout_recv_publishes' => :'Integer',
    :'fanout_send_publishes' => :'Integer',
    :'kv_store_class_a_operations' => :'Integer',
    :'kv_store_class_b_operations' => :'Integer',
    :'object_store_class_a_operations' => :'Integer',
    :'object_store_class_b_operations' => :'Integer',
    :'fanout_req_header_bytes' => :'Integer',
    :'fanout_req_body_bytes' => :'Integer',
    :'fanout_resp_header_bytes' => :'Integer',
    :'fanout_resp_body_bytes' => :'Integer',
    :'fanout_bereq_header_bytes' => :'Integer',
    :'fanout_bereq_body_bytes' => :'Integer',
    :'fanout_beresp_header_bytes' => :'Integer',
    :'fanout_beresp_body_bytes' => :'Integer',
    :'fanout_conn_time_ms' => :'Integer',
    :'ddos_action_limit_streams_connections' => :'Integer',
    :'ddos_action_limit_streams_requests' => :'Integer',
    :'ddos_action_tarpit_accept' => :'Integer',
    :'ddos_action_tarpit' => :'Integer',
    :'ddos_action_close' => :'Integer',
    :'ddos_action_blackhole' => :'Integer',
    :'bot_challenge_starts' => :'Integer',
    :'bot_challenge_complete_tokens_passed' => :'Integer',
    :'bot_challenge_complete_tokens_failed' => :'Integer',
    :'bot_challenge_complete_tokens_checked' => :'Integer',
    :'bot_challenge_complete_tokens_disabled' => :'Integer',
    :'bot_challenges_issued' => :'Integer',
    :'bot_challenges_succeeded' => :'Integer',
    :'bot_challenges_failed' => :'Integer',
    :'bot_challenge_complete_tokens_issued' => :'Integer',
    :'ddos_action_downgrade' => :'Integer',
    :'ddos_action_downgraded_connections' => :'Integer',
    :'all_hit_requests' => :'Integer',
    :'all_miss_requests' => :'Integer',
    :'all_pass_requests' => :'Integer',
    :'all_error_requests' => :'Integer',
    :'all_synth_requests' => :'Integer',
    :'all_edge_hit_requests' => :'Integer',
    :'all_edge_miss_requests' => :'Integer',
    :'all_status_1xx' => :'Integer',
    :'all_status_2xx' => :'Integer',
    :'all_status_3xx' => :'Integer',
    :'all_status_4xx' => :'Integer',
    :'all_status_5xx' => :'Integer',
    :'origin_offload' => :'Float',
    :'request_denied_get_head_body' => :'Integer',
    :'service_ddos_requests_detected' => :'Integer',
    :'service_ddos_requests_mitigated' => :'Integer',
    :'service_ddos_requests_allowed' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
# File 'lib/fastly/models/realtime_measurements.rb', line 2287

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      requests == o.requests &&
      logging == o.logging &&
      log == o.log &&
      resp_header_bytes == o.resp_header_bytes &&
      header_size == o.header_size &&
      resp_body_bytes == o.resp_body_bytes &&
      body_size == o.body_size &&
      hits == o.hits &&
      miss == o.miss &&
      pass == o.pass &&
      synth == o.synth &&
      errors == o.errors &&
      hits_time == o.hits_time &&
      miss_time == o.miss_time &&
      miss_histogram == o.miss_histogram &&
      compute_requests == o.compute_requests &&
      compute_execution_time_ms == o.compute_execution_time_ms &&
      compute_ram_used == o.compute_ram_used &&
      compute_request_time_ms == o.compute_request_time_ms &&
      compute_request_time_billed_ms == o.compute_request_time_billed_ms &&
      shield == o.shield &&
      ipv6 == o.ipv6 &&
      imgopto == o.imgopto &&
      imgopto_shield == o.imgopto_shield &&
      imgopto_transforms == o.imgopto_transforms &&
      otfp == o.otfp &&
      otfp_shield == o.otfp_shield &&
      otfp_manifests == o.otfp_manifests &&
      video == o.video &&
      pci == o.pci &&
      http2 == o.http2 &&
      http3 == o.http3 &&
      restarts == o.restarts &&
      req_header_bytes == o.req_header_bytes &&
      req_body_bytes == o.req_body_bytes &&
      bereq_header_bytes == o.bereq_header_bytes &&
      bereq_body_bytes == o.bereq_body_bytes &&
      waf_blocked == o.waf_blocked &&
      waf_logged == o.waf_logged &&
      waf_passed == o.waf_passed &&
      attack_req_header_bytes == o.attack_req_header_bytes &&
      attack_req_body_bytes == o.attack_req_body_bytes &&
      attack_resp_synth_bytes == o.attack_resp_synth_bytes &&
      attack_logged_req_header_bytes == o.attack_logged_req_header_bytes &&
      attack_logged_req_body_bytes == o.attack_logged_req_body_bytes &&
      attack_blocked_req_header_bytes == o.attack_blocked_req_header_bytes &&
      attack_blocked_req_body_bytes == o.attack_blocked_req_body_bytes &&
      attack_passed_req_header_bytes == o.attack_passed_req_header_bytes &&
      attack_passed_req_body_bytes == o.attack_passed_req_body_bytes &&
      shield_resp_header_bytes == o.shield_resp_header_bytes &&
      shield_resp_body_bytes == o.shield_resp_body_bytes &&
      otfp_resp_header_bytes == o.otfp_resp_header_bytes &&
      otfp_resp_body_bytes == o.otfp_resp_body_bytes &&
      otfp_shield_resp_header_bytes == o.otfp_shield_resp_header_bytes &&
      otfp_shield_resp_body_bytes == o.otfp_shield_resp_body_bytes &&
      otfp_shield_time == o.otfp_shield_time &&
      otfp_deliver_time == o.otfp_deliver_time &&
      imgopto_resp_header_bytes == o.imgopto_resp_header_bytes &&
      imgopto_resp_body_bytes == o.imgopto_resp_body_bytes &&
      imgopto_shield_resp_header_bytes == o.imgopto_shield_resp_header_bytes &&
      imgopto_shield_resp_body_bytes == o.imgopto_shield_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_406 == o.status_406 &&
      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 &&
      uncacheable == o.uncacheable &&
      pass_time == o.pass_time &&
      tls == o.tls &&
      tls_v10 == o.tls_v10 &&
      tls_v11 == o.tls_v11 &&
      tls_v12 == o.tls_v12 &&
      tls_v13 == o.tls_v13 &&
      object_size_1k == o.object_size_1k &&
      object_size_10k == o.object_size_10k &&
      object_size_100k == o.object_size_100k &&
      object_size_1m == o.object_size_1m &&
      object_size_10m == o.object_size_10m &&
      object_size_100m == o.object_size_100m &&
      object_size_1g == o.object_size_1g &&
      object_size_other == o.object_size_other &&
      recv_sub_time == o.recv_sub_time &&
      recv_sub_count == o.recv_sub_count &&
      hash_sub_time == o.hash_sub_time &&
      hash_sub_count == o.hash_sub_count &&
      miss_sub_time == o.miss_sub_time &&
      miss_sub_count == o.miss_sub_count &&
      fetch_sub_time == o.fetch_sub_time &&
      fetch_sub_count == o.fetch_sub_count &&
      pass_sub_time == o.pass_sub_time &&
      pass_sub_count == o.pass_sub_count &&
      pipe_sub_time == o.pipe_sub_time &&
      pipe_sub_count == o.pipe_sub_count &&
      deliver_sub_time == o.deliver_sub_time &&
      deliver_sub_count == o.deliver_sub_count &&
      error_sub_time == o.error_sub_time &&
      error_sub_count == o.error_sub_count &&
      hit_sub_time == o.hit_sub_time &&
      hit_sub_count == o.hit_sub_count &&
      prehash_sub_time == o.prehash_sub_time &&
      prehash_sub_count == o.prehash_sub_count &&
      predeliver_sub_time == o.predeliver_sub_time &&
      predeliver_sub_count == o.predeliver_sub_count &&
      hit_resp_body_bytes == o.hit_resp_body_bytes &&
      miss_resp_body_bytes == o.miss_resp_body_bytes &&
      pass_resp_body_bytes == o.pass_resp_body_bytes &&
      compute_req_header_bytes == o.compute_req_header_bytes &&
      compute_req_body_bytes == o.compute_req_body_bytes &&
      compute_resp_header_bytes == o.compute_resp_header_bytes &&
      compute_resp_body_bytes == o.compute_resp_body_bytes &&
      imgvideo == o.imgvideo &&
      imgvideo_frames == o.imgvideo_frames &&
      imgvideo_resp_header_bytes == o.imgvideo_resp_header_bytes &&
      imgvideo_resp_body_bytes == o.imgvideo_resp_body_bytes &&
      imgvideo_shield == o.imgvideo_shield &&
      imgvideo_shield_frames == o.imgvideo_shield_frames &&
      imgvideo_shield_resp_header_bytes == o.imgvideo_shield_resp_header_bytes &&
      imgvideo_shield_resp_body_bytes == o.imgvideo_shield_resp_body_bytes &&
      log_bytes == o.log_bytes &&
      edge_requests == o.edge_requests &&
      edge_resp_header_bytes == o.edge_resp_header_bytes &&
      edge_resp_body_bytes == o.edge_resp_body_bytes &&
      origin_revalidations == o.origin_revalidations &&
      origin_fetches == o.origin_fetches &&
      origin_fetch_header_bytes == o.origin_fetch_header_bytes &&
      origin_fetch_body_bytes == o.origin_fetch_body_bytes &&
      origin_fetch_resp_header_bytes == o.origin_fetch_resp_header_bytes &&
      origin_fetch_resp_body_bytes == o.origin_fetch_resp_body_bytes &&
      shield_revalidations == o.shield_revalidations &&
      shield_fetches == o.shield_fetches &&
      shield_fetch_header_bytes == o.shield_fetch_header_bytes &&
      shield_fetch_body_bytes == o.shield_fetch_body_bytes &&
      shield_fetch_resp_header_bytes == o.shield_fetch_resp_header_bytes &&
      shield_fetch_resp_body_bytes == o.shield_fetch_resp_body_bytes &&
      segblock_origin_fetches == o.segblock_origin_fetches &&
      segblock_shield_fetches == o.segblock_shield_fetches &&
      compute_resp_status_1xx == o.compute_resp_status_1xx &&
      compute_resp_status_2xx == o.compute_resp_status_2xx &&
      compute_resp_status_3xx == o.compute_resp_status_3xx &&
      compute_resp_status_4xx == o.compute_resp_status_4xx &&
      compute_resp_status_5xx == o.compute_resp_status_5xx &&
      edge_hit_requests == o.edge_hit_requests &&
      edge_miss_requests == o.edge_miss_requests &&
      compute_bereq_header_bytes == o.compute_bereq_header_bytes &&
      compute_bereq_body_bytes == o.compute_bereq_body_bytes &&
      compute_beresp_header_bytes == o.compute_beresp_header_bytes &&
      compute_beresp_body_bytes == o.compute_beresp_body_bytes &&
      origin_cache_fetches == o.origin_cache_fetches &&
      shield_cache_fetches == o.shield_cache_fetches &&
      compute_bereqs == o.compute_bereqs &&
      compute_bereq_errors == o.compute_bereq_errors &&
      compute_resource_limit_exceeded == o.compute_resource_limit_exceeded &&
      compute_heap_limit_exceeded == o.compute_heap_limit_exceeded &&
      compute_stack_limit_exceeded == o.compute_stack_limit_exceeded &&
      compute_globals_limit_exceeded == o.compute_globals_limit_exceeded &&
      compute_guest_errors == o.compute_guest_errors &&
      compute_runtime_errors == o.compute_runtime_errors &&
      edge_hit_resp_body_bytes == o.edge_hit_resp_body_bytes &&
      edge_hit_resp_header_bytes == o.edge_hit_resp_header_bytes &&
      edge_miss_resp_body_bytes == o.edge_miss_resp_body_bytes &&
      edge_miss_resp_header_bytes == o.edge_miss_resp_header_bytes &&
      origin_cache_fetch_resp_body_bytes == o.origin_cache_fetch_resp_body_bytes &&
      origin_cache_fetch_resp_header_bytes == o.origin_cache_fetch_resp_header_bytes &&
      shield_hit_requests == o.shield_hit_requests &&
      shield_miss_requests == o.shield_miss_requests &&
      shield_hit_resp_header_bytes == o.shield_hit_resp_header_bytes &&
      shield_hit_resp_body_bytes == o.shield_hit_resp_body_bytes &&
      shield_miss_resp_header_bytes == o.shield_miss_resp_header_bytes &&
      shield_miss_resp_body_bytes == o.shield_miss_resp_body_bytes &&
      websocket_req_header_bytes == o.websocket_req_header_bytes &&
      websocket_req_body_bytes == o.websocket_req_body_bytes &&
      websocket_resp_header_bytes == o.websocket_resp_header_bytes &&
      websocket_bereq_header_bytes == o.websocket_bereq_header_bytes &&
      websocket_bereq_body_bytes == o.websocket_bereq_body_bytes &&
      websocket_beresp_header_bytes == o.websocket_beresp_header_bytes &&
      websocket_beresp_body_bytes == o.websocket_beresp_body_bytes &&
      websocket_conn_time_ms == o.websocket_conn_time_ms &&
      websocket_resp_body_bytes == o.websocket_resp_body_bytes &&
      fanout_recv_publishes == o.fanout_recv_publishes &&
      fanout_send_publishes == o.fanout_send_publishes &&
      kv_store_class_a_operations == o.kv_store_class_a_operations &&
      kv_store_class_b_operations == o.kv_store_class_b_operations &&
      object_store_class_a_operations == o.object_store_class_a_operations &&
      object_store_class_b_operations == o.object_store_class_b_operations &&
      fanout_req_header_bytes == o.fanout_req_header_bytes &&
      fanout_req_body_bytes == o.fanout_req_body_bytes &&
      fanout_resp_header_bytes == o.fanout_resp_header_bytes &&
      fanout_resp_body_bytes == o.fanout_resp_body_bytes &&
      fanout_bereq_header_bytes == o.fanout_bereq_header_bytes &&
      fanout_bereq_body_bytes == o.fanout_bereq_body_bytes &&
      fanout_beresp_header_bytes == o.fanout_beresp_header_bytes &&
      fanout_beresp_body_bytes == o.fanout_beresp_body_bytes &&
      fanout_conn_time_ms == o.fanout_conn_time_ms &&
      ddos_action_limit_streams_connections == o.ddos_action_limit_streams_connections &&
      ddos_action_limit_streams_requests == o.ddos_action_limit_streams_requests &&
      ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
      ddos_action_tarpit == o.ddos_action_tarpit &&
      ddos_action_close == o.ddos_action_close &&
      ddos_action_blackhole == o.ddos_action_blackhole &&
      bot_challenge_starts == o.bot_challenge_starts &&
      bot_challenge_complete_tokens_passed == o.bot_challenge_complete_tokens_passed &&
      bot_challenge_complete_tokens_failed == o.bot_challenge_complete_tokens_failed &&
      bot_challenge_complete_tokens_checked == o.bot_challenge_complete_tokens_checked &&
      bot_challenge_complete_tokens_disabled == o.bot_challenge_complete_tokens_disabled &&
      bot_challenges_issued == o.bot_challenges_issued &&
      bot_challenges_succeeded == o.bot_challenges_succeeded &&
      bot_challenges_failed == o.bot_challenges_failed &&
      bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued &&
      ddos_action_downgrade == o.ddos_action_downgrade &&
      ddos_action_downgraded_connections == o.ddos_action_downgraded_connections &&
      all_hit_requests == o.all_hit_requests &&
      all_miss_requests == o.all_miss_requests &&
      all_pass_requests == o.all_pass_requests &&
      all_error_requests == o.all_error_requests &&
      all_synth_requests == o.all_synth_requests &&
      all_edge_hit_requests == o.all_edge_hit_requests &&
      all_edge_miss_requests == o.all_edge_miss_requests &&
      all_status_1xx == o.all_status_1xx &&
      all_status_2xx == o.all_status_2xx &&
      all_status_3xx == o.all_status_3xx &&
      all_status_4xx == o.all_status_4xx &&
      all_status_5xx == o.all_status_5xx &&
      origin_offload == o.origin_offload &&
      request_denied_get_head_body == o.request_denied_get_head_body &&
      service_ddos_requests_detected == o.service_ddos_requests_detected &&
      service_ddos_requests_mitigated == o.service_ddos_requests_mitigated &&
      service_ddos_requests_allowed == o.service_ddos_requests_allowed
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



2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
# File 'lib/fastly/models/realtime_measurements.rb', line 2583

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



2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
# File 'lib/fastly/models/realtime_measurements.rb', line 2654

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



2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
# File 'lib/fastly/models/realtime_measurements.rb', line 2560

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


2540
2541
2542
# File 'lib/fastly/models/realtime_measurements.rb', line 2540

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



2546
2547
2548
# File 'lib/fastly/models/realtime_measurements.rb', line 2546

def hash
  [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, compute_request_time_billed_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, bot_challenge_complete_tokens_issued, ddos_action_downgrade, ddos_action_downgraded_connections, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, origin_offload, request_denied_get_head_body, service_ddos_requests_detected, service_ddos_requests_mitigated, service_ddos_requests_allowed].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



2274
2275
2276
2277
# File 'lib/fastly/models/realtime_measurements.rb', line 2274

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



2630
2631
2632
# File 'lib/fastly/models/realtime_measurements.rb', line 2630

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



2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
# File 'lib/fastly/models/realtime_measurements.rb', line 2636

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



2624
2625
2626
# File 'lib/fastly/models/realtime_measurements.rb', line 2624

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



2281
2282
2283
# File 'lib/fastly/models/realtime_measurements.rb', line 2281

def valid?
  true
end