fastly_api/models/
signal_report.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
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct SignalReport {
13    /// Name of the attack type.
14    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15    pub name: Option<String>,
16    /// Display name of the attack type.
17    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
18    pub display_name: Option<String>,
19    /// Total count of attacks of this type.
20    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
21    pub count: Option<i32>,
22    /// Top workspaces affected by this attack type.
23    #[serde(rename = "top_workspaces", skip_serializing_if = "Option::is_none")]
24    pub top_workspaces: Option<Vec<crate::models::TopWorkspace>>,
25}
26
27impl SignalReport {
28    pub fn new() -> SignalReport {
29        SignalReport {
30            name: None,
31            display_name: None,
32            count: None,
33            top_workspaces: None,
34        }
35    }
36}
37
38