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 O11yPeriodO11yErrorIssue {
    /// Assignee is who the issue is assigned to.
    #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
    pub assignee: Option<String>,
    /// Count is how many occurrences have landed on the issue.
    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    /// CreatedAt is when the issue was first recorded.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// 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 the issue was seen in.
    #[serde(rename = "environment", skip_serializing_if = "Option::is_none")]
    pub environment: 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>,
    /// FirstSeen is when the earliest occurrence was recorded.
    #[serde(rename = "firstSeen", skip_serializing_if = "Option::is_none")]
    pub first_seen: Option<String>,
    /// ID is the issue id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// LastSeen is when the latest was.
    #[serde(rename = "lastSeen", skip_serializing_if = "Option::is_none")]
    pub last_seen: Option<String>,
    /// Level is the issue's severity, e.g. error, warning, info.
    #[serde(rename = "level", skip_serializing_if = "Option::is_none")]
    pub level: 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>,
    /// Regressed marks an issue that reopened after being resolved.
    #[serde(rename = "regressed", skip_serializing_if = "Option::is_none")]
    pub regressed: Option<bool>,
    /// Release is the version that produced it.
    #[serde(rename = "release", skip_serializing_if = "Option::is_none")]
    pub release: Option<String>,
    /// ResolvedAt is when the issue was resolved, if it is.
    #[serde(rename = "resolvedAt", skip_serializing_if = "Option::is_none")]
    pub resolved_at: Option<String>,
    /// ServiceName is the service that reported it.
    #[serde(rename = "serviceName", skip_serializing_if = "Option::is_none")]
    pub service_name: Option<String>,
    /// Status is the lifecycle state: unresolved, resolved or ignored.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Type is the exception type.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// UpdatedAt is when the issue last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
    /// Value is the exception value.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl O11yPeriodO11yErrorIssue {
    pub fn new() -> O11yPeriodO11yErrorIssue {
        O11yPeriodO11yErrorIssue {
            assignee: None,
            count: None,
            created_at: None,
            culprit: None,
            environment: None,
            fingerprint: None,
            first_seen: None,
            id: None,
            last_seen: None,
            level: None,
            platform: None,
            regressed: None,
            release: None,
            resolved_at: None,
            service_name: None,
            status: None,
            r#type: None,
            updated_at: None,
            value: None,
        }
    }
}