cx_api/generated/
com.coralogixapis.logs2metrics.v2.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// This file is @generated by prost-build.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
    /// lucene query
    #[prost(message, optional, tag = "1")]
    pub lucene: ::core::option::Option<::prost::alloc::string::String>,
    /// alias
    #[prost(message, optional, tag = "2")]
    pub alias: ::core::option::Option<::prost::alloc::string::String>,
    /// application name filters
    #[prost(message, repeated, tag = "3")]
    pub applicationname_filters: ::prost::alloc::vec::Vec<
        ::prost::alloc::string::String,
    >,
    /// subsystem names filters
    #[prost(message, repeated, tag = "4")]
    pub subsystemname_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// severity type filters
    #[prost(enumeration = "Severity", repeated, tag = "5")]
    pub severity_filters: ::prost::alloc::vec::Vec<i32>,
}
/// enum that represents severity types
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Severity {
    Unspecified = 0,
    Debug = 1,
    Verbose = 2,
    Info = 3,
    Warning = 4,
    Error = 5,
    Critical = 6,
}
impl Severity {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SEVERITY_UNSPECIFIED",
            Self::Debug => "SEVERITY_DEBUG",
            Self::Verbose => "SEVERITY_VERBOSE",
            Self::Info => "SEVERITY_INFO",
            Self::Warning => "SEVERITY_WARNING",
            Self::Error => "SEVERITY_ERROR",
            Self::Critical => "SEVERITY_CRITICAL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SEVERITY_UNSPECIFIED" => Some(Self::Unspecified),
            "SEVERITY_DEBUG" => Some(Self::Debug),
            "SEVERITY_VERBOSE" => Some(Self::Verbose),
            "SEVERITY_INFO" => Some(Self::Info),
            "SEVERITY_WARNING" => Some(Self::Warning),
            "SEVERITY_ERROR" => Some(Self::Error),
            "SEVERITY_CRITICAL" => Some(Self::Critical),
            _ => None,
        }
    }
}
/// represents audit log description
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogDescription {
    /// audit log description
    #[prost(string, optional, tag = "1")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
}