cx_api/generated/
com.coralogixapis.logs2metrics.v2.rs#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub alias: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "3")]
pub applicationname_filters: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
#[prost(message, repeated, tag = "4")]
pub subsystemname_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "Severity", repeated, tag = "5")]
pub severity_filters: ::prost::alloc::vec::Vec<i32>,
}
#[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 {
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",
}
}
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,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogDescription {
#[prost(string, optional, tag = "1")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
}