hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct O11yPeriodO11yLogRecord {
    /// AttributesBool are the record's boolean attributes.
    #[serde(rename = "attributes_bool", skip_serializing_if = "Option::is_none")]
    pub attributes_bool: Option<std::collections::HashMap<String, bool>>,
    /// AttributesFloat are the record's float attributes.
    #[serde(rename = "attributes_float", skip_serializing_if = "Option::is_none")]
    pub attributes_float: Option<std::collections::HashMap<String, f64>>,
    /// AttributesInt are the record's integer attributes.
    #[serde(rename = "attributes_int", skip_serializing_if = "Option::is_none")]
    pub attributes_int: Option<std::collections::HashMap<String, i32>>,
    /// AttributesString are the record's string attributes.
    #[serde(rename = "attributes_string", skip_serializing_if = "Option::is_none")]
    pub attributes_string: Option<std::collections::HashMap<String, String>>,
    /// Body is the record's body.
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// ID is the record's id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// ResourcesString are the record's string resource attributes.
    #[serde(rename = "resources_string", skip_serializing_if = "Option::is_none")]
    pub resources_string: Option<std::collections::HashMap<String, String>>,
    /// SeverityNumber is the record's severity as a number.
    #[serde(rename = "severity_number", skip_serializing_if = "Option::is_none")]
    pub severity_number: Option<i32>,
    /// SeverityText is the record's severity as text, e.g. ERROR.
    #[serde(rename = "severity_text", skip_serializing_if = "Option::is_none")]
    pub severity_text: Option<String>,
    /// SpanID is the span the record belongs to.
    #[serde(rename = "span_id", skip_serializing_if = "Option::is_none")]
    pub span_id: Option<String>,
    /// Timestamp is the record's time as a nanosecond epoch.
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<i32>,
    /// TraceFlags are the record's trace flags.
    #[serde(rename = "trace_flags", skip_serializing_if = "Option::is_none")]
    pub trace_flags: Option<i32>,
    /// TraceID is the trace the record belongs to.
    #[serde(rename = "trace_id", skip_serializing_if = "Option::is_none")]
    pub trace_id: Option<String>,
}

impl O11yPeriodO11yLogRecord {
    pub fn new() -> O11yPeriodO11yLogRecord {
        O11yPeriodO11yLogRecord {
            attributes_bool: None,
            attributes_float: None,
            attributes_int: None,
            attributes_string: None,
            body: None,
            id: None,
            resources_string: None,
            severity_number: None,
            severity_text: None,
            span_id: None,
            timestamp: None,
            trace_flags: None,
            trace_id: None,
        }
    }
}