fastly_api/models/log_insights_dimension_attributes.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 LogInsightsDimensionAttributes {
13 /// The rate at which the value in the current dimension occurs.
14 #[serde(rename = "rate", skip_serializing_if = "Option::is_none")]
15 pub rate: Option<f32>,
16 /// The cache hit ratio for the country.
17 #[serde(rename = "country_chr", skip_serializing_if = "Option::is_none")]
18 pub country_chr: Option<f32>,
19 /// The error rate for the country.
20 #[serde(rename = "country_error_rate", skip_serializing_if = "Option::is_none")]
21 pub country_error_rate: Option<f32>,
22 /// This country's percentage of the total requests.
23 #[serde(rename = "country_request_rate", skip_serializing_if = "Option::is_none")]
24 pub country_request_rate: Option<f32>,
25}
26
27impl LogInsightsDimensionAttributes {
28 pub fn new() -> LogInsightsDimensionAttributes {
29 LogInsightsDimensionAttributes {
30 rate: None,
31 country_chr: None,
32 country_error_rate: None,
33 country_request_rate: None,
34 }
35 }
36}
37
38