Skip to main content

fastly_api/models/
discovered_operation_get_extra.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 DiscoveredOperationGetExtra {
13    /// The unique identifier of the discovered operation.
14    #[serde(rename = "id")]
15    pub id: String,
16    /// The timestamp when the operation was last updated.
17    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
18    pub updated_at: Option<String>,
19    /// The timestamp when the operation was last seen in traffic.
20    #[serde(rename = "last_seen_at", skip_serializing_if = "Option::is_none")]
21    pub last_seen_at: Option<String>,
22    /// Requests per second observed for this operation.
23    #[serde(rename = "rps", skip_serializing_if = "Option::is_none")]
24    pub rps: Option<f32>,
25}
26
27impl DiscoveredOperationGetExtra {
28    pub fn new(id: String) -> DiscoveredOperationGetExtra {
29        DiscoveredOperationGetExtra {
30            id,
31            updated_at: None,
32            last_seen_at: None,
33            rps: None,
34        }
35    }
36}
37
38