fastly_api/models/
log_insights_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
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct LogInsightsValues {
13    /// The cache hit ratio for the URL specified in the dimension.
14    #[serde(rename = "cache_hit_ratio", skip_serializing_if = "Option::is_none")]
15    pub cache_hit_ratio: Option<f32>,
16    /// The client's country subdivision code as defined by ISO 3166-2.
17    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
18    pub region: Option<String>,
19    /// The cache hit ratio for the region.
20    #[serde(rename = "region_chr", skip_serializing_if = "Option::is_none")]
21    pub region_chr: Option<f32>,
22    /// The error rate for the region.
23    #[serde(rename = "region_error_rate", skip_serializing_if = "Option::is_none")]
24    pub region_error_rate: Option<f32>,
25    /// The HTTP request path.
26    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
27    pub url: Option<String>,
28    /// The URL accounts for this percentage of the status code in this dimension.
29    #[serde(rename = "rate_per_status", skip_serializing_if = "Option::is_none")]
30    pub rate_per_status: Option<f32>,
31    /// The rate at which the reason in this dimension occurs among responses to this URL with a 503 status code.
32    #[serde(rename = "rate_per_url", skip_serializing_if = "Option::is_none")]
33    pub rate_per_url: Option<f32>,
34    /// The rate at which 503 status codes are returned for this URL.
35    #[serde(rename = "503_rate_per_url", skip_serializing_if = "Option::is_none")]
36    pub var_503_rate_per_url: Option<f32>,
37    /// The version of the client's browser.
38    #[serde(rename = "browser_version", skip_serializing_if = "Option::is_none")]
39    pub browser_version: Option<String>,
40    /// The percentage of requests matching the value in the current dimension.
41    #[serde(rename = "rate", skip_serializing_if = "Option::is_none")]
42    pub rate: Option<f32>,
43    /// The average bandwidth in bytes for responses to requests to the URL in the current dimension.
44    #[serde(rename = "average_bandwidth_bytes", skip_serializing_if = "Option::is_none")]
45    pub average_bandwidth_bytes: Option<f32>,
46    /// The total bandwidth percentage for all responses to requests to the URL in the current dimension.
47    #[serde(rename = "bandwidth_percentage", skip_serializing_if = "Option::is_none")]
48    pub bandwidth_percentage: Option<f32>,
49    /// The average time in seconds to respond to requests to the URL in the current dimension.
50    #[serde(rename = "average_response_time", skip_serializing_if = "Option::is_none")]
51    pub average_response_time: Option<f32>,
52    /// The P95 time in seconds to respond to requests to the URL in the current dimension.
53    #[serde(rename = "p95_response_time", skip_serializing_if = "Option::is_none")]
54    pub p95_response_time: Option<f32>,
55    /// The total percentage of time to respond to all requests to the URL in the current dimension.
56    #[serde(rename = "response_time_percentage", skip_serializing_if = "Option::is_none")]
57    pub response_time_percentage: Option<f32>,
58    /// The miss rate for requests to the URL in the current dimension.
59    #[serde(rename = "miss_rate", skip_serializing_if = "Option::is_none")]
60    pub miss_rate: Option<f32>,
61    /// The percentage of all requests made to the URL in the current dimension.
62    #[serde(rename = "request_percentage", skip_serializing_if = "Option::is_none")]
63    pub request_percentage: Option<f32>,
64}
65
66impl LogInsightsValues {
67    pub fn new() -> LogInsightsValues {
68        LogInsightsValues {
69            cache_hit_ratio: None,
70            region: None,
71            region_chr: None,
72            region_error_rate: None,
73            url: None,
74            rate_per_status: None,
75            rate_per_url: None,
76            var_503_rate_per_url: None,
77            browser_version: None,
78            rate: None,
79            average_bandwidth_bytes: None,
80            bandwidth_percentage: None,
81            average_response_time: None,
82            p95_response_time: None,
83            response_time_percentage: None,
84            miss_rate: None,
85            request_percentage: None,
86        }
87    }
88}
89
90