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 O11yPeriodO11yOccurrence {
    /// Culprit is where it came from.
    #[serde(rename = "culprit", skip_serializing_if = "Option::is_none")]
    pub culprit: Option<String>,
    /// Environment is the deployment it happened in.
    #[serde(rename = "environment", skip_serializing_if = "Option::is_none")]
    pub environment: Option<String>,
    /// EventID is the occurrence's id.
    #[serde(rename = "eventId", skip_serializing_if = "Option::is_none")]
    pub event_id: Option<String>,
    /// Fingerprint is the grouping key it was bucketed by.
    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
    pub fingerprint: Option<String>,
    /// Frames are the stack, innermost first.
    #[serde(rename = "frames", skip_serializing_if = "Option::is_none")]
    pub frames: Option<Vec<models::O11yPeriodO11yOccurrenceFrame>>,
    /// Level is its severity, e.g. error, warning, info.
    #[serde(rename = "level", skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,
    /// Platform is the reporting runtime.
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    /// Release is the version that produced it.
    #[serde(rename = "release", skip_serializing_if = "Option::is_none")]
    pub release: Option<String>,
    /// ServerName is the host that reported it.
    #[serde(rename = "serverName", skip_serializing_if = "Option::is_none")]
    pub server_name: Option<String>,
    /// ServiceName is the service that reported it.
    #[serde(rename = "serviceName", skip_serializing_if = "Option::is_none")]
    pub service_name: Option<String>,
    /// SpanID is the span it belonged to.
    #[serde(rename = "spanId", skip_serializing_if = "Option::is_none")]
    pub span_id: Option<String>,
    /// Tags are the reporter's own key/value labels.
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<std::collections::HashMap<String, String>>,
    /// Timestamp is when the error happened.
    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
    /// TraceID is the trace it belonged to.
    #[serde(rename = "traceId", skip_serializing_if = "Option::is_none")]
    pub trace_id: Option<String>,
    /// Transaction is the operation it happened in.
    #[serde(rename = "transaction", skip_serializing_if = "Option::is_none")]
    pub transaction: Option<String>,
    /// Type is the exception type.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// User is the affected end-user context, when the reporter attached one.
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<Box<models::O11yPeriodO11yEventUser>>,
    /// Value is the exception value.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl O11yPeriodO11yOccurrence {
    pub fn new() -> O11yPeriodO11yOccurrence {
        O11yPeriodO11yOccurrence {
            culprit: None,
            environment: None,
            event_id: None,
            fingerprint: None,
            frames: None,
            level: None,
            platform: None,
            release: None,
            server_name: None,
            service_name: None,
            span_id: None,
            tags: None,
            timestamp: None,
            trace_id: None,
            transaction: None,
            r#type: None,
            user: None,
            value: None,
        }
    }
}