fastly_api/models/
values_ddos.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8/// ValuesDdos : The results of the query, optionally filtered and grouped over the requested timespan.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct ValuesDdos {
14    /// 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.
15    #[serde(rename = "ddos_action_limit_streams_connections", skip_serializing_if = "Option::is_none")]
16    pub ddos_action_limit_streams_connections: Option<i32>,
17    /// 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.
18    #[serde(rename = "ddos_action_limit_streams_requests", skip_serializing_if = "Option::is_none")]
19    pub ddos_action_limit_streams_requests: Option<i32>,
20    /// The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.
21    #[serde(rename = "ddos_action_tarpit_accept", skip_serializing_if = "Option::is_none")]
22    pub ddos_action_tarpit_accept: Option<i32>,
23    /// The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.
24    #[serde(rename = "ddos_action_tarpit", skip_serializing_if = "Option::is_none")]
25    pub ddos_action_tarpit: Option<i32>,
26    /// 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.
27    #[serde(rename = "ddos_action_close", skip_serializing_if = "Option::is_none")]
28    pub ddos_action_close: Option<i32>,
29    /// 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).
30    #[serde(rename = "ddos_action_blackhole", skip_serializing_if = "Option::is_none")]
31    pub ddos_action_blackhole: Option<i32>,
32}
33
34impl ValuesDdos {
35    /// The results of the query, optionally filtered and grouped over the requested timespan.
36    pub fn new() -> ValuesDdos {
37        ValuesDdos {
38            ddos_action_limit_streams_connections: None,
39            ddos_action_limit_streams_requests: None,
40            ddos_action_tarpit_accept: None,
41            ddos_action_tarpit: None,
42            ddos_action_close: None,
43            ddos_action_blackhole: None,
44        }
45    }
46}
47
48