lib/fastly/models/results.rb in fastly-4.2.0 vs lib/fastly/models/results.rb in fastly-4.3.0

- old
+ new

@@ -639,10 +639,28 @@ attr_accessor :fanout_beresp_body_bytes # Total duration of Fanout connections with end users. attr_accessor :fanout_conn_time_ms + # 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. + attr_accessor :ddos_action_limit_streams_connections + + # 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. + attr_accessor :ddos_action_limit_streams_requests + + # The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. + attr_accessor :ddos_action_tarpit_accept + + # The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. + attr_accessor :ddos_action_tarpit + + # 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. + attr_accessor :ddos_action_close + + # 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). + attr_accessor :ddos_action_blackhole + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'requests' => :'requests', :'hits' => :'hits', @@ -850,11 +868,17 @@ :'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' + :'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' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -1070,11 +1094,17 @@ :'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' + :'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' } end # List of attributes with nullable: true def self.fastly_nullable @@ -1931,10 +1961,34 @@ 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 end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -2159,11 +2213,17 @@ 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 + 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 end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -2171,10 +2231,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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, 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].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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, 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].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself