fastly_api/models/
values_duration.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 ValuesDuration {
13    /// The average time in seconds to respond to requests to the URL in the current dimension.
14    #[serde(rename = "average_response_time", skip_serializing_if = "Option::is_none")]
15    pub average_response_time: Option<f32>,
16    /// The P95 time in seconds to respond to requests to the URL in the current dimension.
17    #[serde(rename = "p95_response_time", skip_serializing_if = "Option::is_none")]
18    pub p95_response_time: Option<f32>,
19    /// The total percentage of time to respond to all requests to the URL in the current dimension.
20    #[serde(rename = "response_time_percentage", skip_serializing_if = "Option::is_none")]
21    pub response_time_percentage: Option<f32>,
22}
23
24impl ValuesDuration {
25    pub fn new() -> ValuesDuration {
26        ValuesDuration {
27            average_response_time: None,
28            p95_response_time: None,
29            response_time_percentage: None,
30        }
31    }
32}
33
34