fastly_api/models/
platform_values.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/// PlatformValues : 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 PlatformValues {
14    /// Timestamp of the metrics data point.
15    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
16    pub timestamp: Option<String>,
17    /// 25th percentile of time to first byte from origin, in microseconds.
18    #[serde(rename = "ttfb_origin_p25_us", skip_serializing_if = "Option::is_none")]
19    pub ttfb_origin_p25_us: Option<f32>,
20    /// 50th percentile of time to first byte from origin, in microseconds.
21    #[serde(rename = "ttfb_origin_p50_us", skip_serializing_if = "Option::is_none")]
22    pub ttfb_origin_p50_us: Option<f32>,
23    /// 75th percentile of time to first byte from origin, in microseconds.
24    #[serde(rename = "ttfb_origin_p75_us", skip_serializing_if = "Option::is_none")]
25    pub ttfb_origin_p75_us: Option<f32>,
26    /// 95th percentile of time to first byte from origin, in microseconds.
27    #[serde(rename = "ttfb_origin_p95_us", skip_serializing_if = "Option::is_none")]
28    pub ttfb_origin_p95_us: Option<f32>,
29    /// 99th percentile of time to first byte from origin, in microseconds.
30    #[serde(rename = "ttfb_origin_p99_us", skip_serializing_if = "Option::is_none")]
31    pub ttfb_origin_p99_us: Option<f32>,
32    /// 25th percentile of time to first byte from shield, in microseconds.
33    #[serde(rename = "ttfb_shield_p25_us", skip_serializing_if = "Option::is_none")]
34    pub ttfb_shield_p25_us: Option<f32>,
35    /// 50th percentile of time to first byte from shield, in microseconds.
36    #[serde(rename = "ttfb_shield_p50_us", skip_serializing_if = "Option::is_none")]
37    pub ttfb_shield_p50_us: Option<f32>,
38    /// 75th percentile of time to first byte from shield, in microseconds.
39    #[serde(rename = "ttfb_shield_p75_us", skip_serializing_if = "Option::is_none")]
40    pub ttfb_shield_p75_us: Option<f32>,
41    /// 95th percentile of time to first byte from shield, in microseconds.
42    #[serde(rename = "ttfb_shield_p95_us", skip_serializing_if = "Option::is_none")]
43    pub ttfb_shield_p95_us: Option<f32>,
44    /// 99th percentile of time to first byte from shield, in microseconds.
45    #[serde(rename = "ttfb_shield_p99_us", skip_serializing_if = "Option::is_none")]
46    pub ttfb_shield_p99_us: Option<f32>,
47    /// 25th percentile of time to first byte from edge, in microseconds.
48    #[serde(rename = "ttfb_edge_p25_us", skip_serializing_if = "Option::is_none")]
49    pub ttfb_edge_p25_us: Option<f32>,
50    /// 50th percentile of time to first byte from edge, in microseconds.
51    #[serde(rename = "ttfb_edge_p50_us", skip_serializing_if = "Option::is_none")]
52    pub ttfb_edge_p50_us: Option<f32>,
53    /// 75th percentile of time to first byte from edge, in microseconds.
54    #[serde(rename = "ttfb_edge_p75_us", skip_serializing_if = "Option::is_none")]
55    pub ttfb_edge_p75_us: Option<f32>,
56    /// 95th percentile of time to first byte from edge, in microseconds.
57    #[serde(rename = "ttfb_edge_p95_us", skip_serializing_if = "Option::is_none")]
58    pub ttfb_edge_p95_us: Option<f32>,
59    /// 99th percentile of time to first byte from edge, in microseconds.
60    #[serde(rename = "ttfb_edge_p99_us", skip_serializing_if = "Option::is_none")]
61    pub ttfb_edge_p99_us: Option<f32>,
62}
63
64impl PlatformValues {
65    /// The results of the query, optionally filtered and grouped over the requested timespan.
66    pub fn new() -> PlatformValues {
67        PlatformValues {
68            timestamp: None,
69            ttfb_origin_p25_us: None,
70            ttfb_origin_p50_us: None,
71            ttfb_origin_p75_us: None,
72            ttfb_origin_p95_us: None,
73            ttfb_origin_p99_us: None,
74            ttfb_shield_p25_us: None,
75            ttfb_shield_p50_us: None,
76            ttfb_shield_p75_us: None,
77            ttfb_shield_p95_us: None,
78            ttfb_shield_p99_us: None,
79            ttfb_edge_p25_us: None,
80            ttfb_edge_p50_us: None,
81            ttfb_edge_p75_us: None,
82            ttfb_edge_p95_us: None,
83            ttfb_edge_p99_us: None,
84        }
85    }
86}
87
88