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 O11yPeriodO11yEvent {
    /// Culprit is where it came from — the function or route blamed for it.
    #[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 its own id.
    #[serde(rename = "eventId", skip_serializing_if = "Option::is_none")]
    pub event_id: Option<String>,
    /// Fingerprint is the grouping key that puts like errors in one issue.
    #[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::O11yPeriodO11yFrame>>,
    /// Handled says whether the application caught it.
    #[serde(rename = "handled", skip_serializing_if = "Option::is_none")]
    pub handled: Option<bool>,
    /// Level is its severity, e.g. error, warning, info.
    #[serde(rename = "level", skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,
    /// Message is the human-readable message.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    /// OrgID is the org that owns it.
    #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
    pub org_id: Option<String>,
    /// Platform is the reporting runtime, e.g. go, python, javascript.
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<String>,
    /// ProjectID is the project it was captured for.
    #[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    /// ReceivedAt is when it arrived here.
    #[serde(rename = "receivedAt", skip_serializing_if = "Option::is_none")]
    pub received_at: 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, as the reporter recorded it.
    #[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>,
    /// UserEmail is that user's email, when attached.
    #[serde(rename = "userEmail", skip_serializing_if = "Option::is_none")]
    pub user_email: Option<String>,
    /// UserID identifies the affected end user, when the reporter attached one.
    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
    pub user_id: Option<String>,
    /// UserIP is that user's address, when attached.
    #[serde(rename = "userIp", skip_serializing_if = "Option::is_none")]
    pub user_ip: Option<String>,
    /// Value is the exception value.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl O11yPeriodO11yEvent {
    pub fn new() -> O11yPeriodO11yEvent {
        O11yPeriodO11yEvent {
            culprit: None,
            environment: None,
            event_id: None,
            fingerprint: None,
            frames: None,
            handled: None,
            level: None,
            message: None,
            org_id: None,
            platform: None,
            project_id: None,
            received_at: 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_email: None,
            user_id: None,
            user_ip: None,
            value: None,
        }
    }
}