lib/fastly/models/results.rb in fastly-4.0.0.alpha2 vs lib/fastly/models/results.rb in fastly-4.0.0.alpha3
- old
+ new
@@ -2,12 +2,12 @@
#Fastly API
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
The version of the OpenAPI document: 1.0.0
+Contact: oss@fastly.com
-
=end
require 'date'
require 'time'
@@ -546,10 +546,28 @@
attr_accessor :origin_cache_fetch_resp_body_bytes
# Header bytes received from an origin for cacheable content.
attr_accessor :origin_cache_fetch_resp_header_bytes
+ # Number of requests that resulted in a hit at a shield.
+ attr_accessor :shield_hit_requests
+
+ # Number of requests that resulted in a miss at a shield.
+ attr_accessor :shield_miss_requests
+
+ # Header bytes delivered for shield hits.
+ attr_accessor :shield_hit_resp_header_bytes
+
+ # Body bytes delivered for shield hits.
+ attr_accessor :shield_hit_resp_body_bytes
+
+ # Header bytes delivered for shield misses.
+ attr_accessor :shield_miss_resp_header_bytes
+
+ # Body bytes delivered for shield misses.
+ attr_accessor :shield_miss_resp_body_bytes
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'requests' => :'requests',
:'hits' => :'hits',
@@ -726,11 +744,17 @@
:'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'
+ :'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'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -915,11 +939,17 @@
:'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'
+ :'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'
}
end
# List of attributes with nullable: true
def self.fastly_nullable
@@ -1652,10 +1682,34 @@
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
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -1849,11 +1903,17 @@
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
+ 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
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -1861,10 +1921,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes].hash
+ [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself