fastly-api 11.0.0

Fastly API client
Documentation
/*
 * Fastly API
 *
 * 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/) 
 *
 */

/// OriginInspectorRealtimeEntry : Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped by origin name and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs. 



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct OriginInspectorRealtimeEntry {
    /// The Unix timestamp at which this record's data was generated.
    #[serde(rename = "recorded", skip_serializing_if = "Option::is_none")]
    pub recorded: Option<i32>,
    /// Groups [measurements](#measurements-data-model) by backend name.
    #[serde(rename = "aggregated", skip_serializing_if = "Option::is_none")]
    pub aggregated: Option<::std::collections::HashMap<String, crate::models::OriginInspectorMeasurements>>,
    /// Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details about POP identifiers.
    #[serde(rename = "datacenter", skip_serializing_if = "Option::is_none")]
    pub datacenter: Option<::std::collections::HashMap<String, ::std::collections::HashMap<String, crate::models::OriginInspectorMeasurements>>>,
}

impl OriginInspectorRealtimeEntry {
    /// Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped by origin name and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs. 
    pub fn new() -> OriginInspectorRealtimeEntry {
        OriginInspectorRealtimeEntry {
            recorded: None,
            aggregated: None,
            datacenter: None,
        }
    }
}