cx_api/generated/
com.coralogixapis.views.v1.rs

1// This file is @generated by prost-build.
2/// Filter
3#[derive(serde::Serialize, serde::Deserialize)]
4#[serde(rename_all = "snake_case")]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct Filter {
7    /// Filter name
8    #[prost(message, optional, tag = "1")]
9    pub name: ::core::option::Option<::prost::alloc::string::String>,
10    /// Filter selected values
11    #[prost(map = "string, bool", tag = "2")]
12    pub selected_values: ::std::collections::HashMap<
13        ::prost::alloc::string::String,
14        bool,
15    >,
16}
17/// Selected filters
18#[derive(serde::Serialize, serde::Deserialize)]
19#[serde(rename_all = "snake_case")]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct SelectedFilters {
22    /// Selected filters
23    #[prost(message, repeated, tag = "1")]
24    pub filters: ::prost::alloc::vec::Vec<Filter>,
25}
26/// View search query
27#[derive(serde::Serialize, serde::Deserialize)]
28#[serde(rename_all = "snake_case")]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct SearchQuery {
31    /// View search query
32    #[prost(message, optional, tag = "1")]
33    pub query: ::core::option::Option<::prost::alloc::string::String>,
34}
35/// Time selection
36#[derive(serde::Serialize, serde::Deserialize)]
37#[serde(rename_all = "snake_case")]
38#[derive(Clone, PartialEq, ::prost::Message)]
39pub struct TimeSelection {
40    #[prost(oneof = "time_selection::SelectionType", tags = "1, 2")]
41    pub selection_type: ::core::option::Option<time_selection::SelectionType>,
42}
43/// Nested message and enum types in `TimeSelection`.
44pub mod time_selection {
45    #[derive(serde::Serialize, serde::Deserialize)]
46    #[serde(rename_all = "snake_case")]
47    #[derive(Clone, PartialEq, ::prost::Oneof)]
48    pub enum SelectionType {
49        /// Quick time selection
50        #[prost(message, tag = "1")]
51        QuickSelection(super::QuickTimeSelection),
52        /// Custom time selection
53        #[prost(message, tag = "2")]
54        CustomSelection(super::CustomTimeSelection),
55    }
56}
57/// Quick time selection
58#[derive(serde::Serialize, serde::Deserialize)]
59#[serde(rename_all = "snake_case")]
60#[derive(Clone, PartialEq, ::prost::Message)]
61pub struct QuickTimeSelection {
62    #[deprecated]
63    #[prost(message, optional, tag = "2")]
64    pub caption: ::core::option::Option<::prost::alloc::string::String>,
65    #[prost(uint32, tag = "3")]
66    pub seconds: u32,
67}
68/// Custom time selection
69#[derive(serde::Serialize, serde::Deserialize)]
70#[serde(rename_all = "snake_case")]
71#[derive(Clone, Copy, PartialEq, ::prost::Message)]
72pub struct CustomTimeSelection {
73    /// Custom time selection start timestamp
74    #[prost(message, optional, tag = "1")]
75    pub from_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
76    /// Custom time selection end timestamp
77    #[prost(message, optional, tag = "2")]
78    pub to_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
79}
80#[derive(serde::Serialize, serde::Deserialize)]
81#[serde(rename_all = "snake_case")]
82#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
83#[repr(i32)]
84pub enum ViewType {
85    Unspecified = 0,
86    Logs = 1,
87    Templates = 2,
88    ArchiveLogs = 3,
89    ArchiveTemplates = 4,
90}
91impl ViewType {
92    /// String value of the enum field names used in the ProtoBuf definition.
93    ///
94    /// The values are not transformed in any way and thus are considered stable
95    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
96    pub fn as_str_name(&self) -> &'static str {
97        match self {
98            Self::Unspecified => "VIEW_TYPE_UNSPECIFIED",
99            Self::Logs => "VIEW_TYPE_LOGS",
100            Self::Templates => "VIEW_TYPE_TEMPLATES",
101            Self::ArchiveLogs => "VIEW_TYPE_ARCHIVE_LOGS",
102            Self::ArchiveTemplates => "VIEW_TYPE_ARCHIVE_TEMPLATES",
103        }
104    }
105    /// Creates an enum from field names used in the ProtoBuf definition.
106    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
107        match value {
108            "VIEW_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
109            "VIEW_TYPE_LOGS" => Some(Self::Logs),
110            "VIEW_TYPE_TEMPLATES" => Some(Self::Templates),
111            "VIEW_TYPE_ARCHIVE_LOGS" => Some(Self::ArchiveLogs),
112            "VIEW_TYPE_ARCHIVE_TEMPLATES" => Some(Self::ArchiveTemplates),
113            _ => None,
114        }
115    }
116}
117/// View folder
118#[derive(serde::Serialize, serde::Deserialize)]
119#[serde(rename_all = "snake_case")]
120#[derive(Clone, PartialEq, ::prost::Message)]
121pub struct ViewFolder {
122    #[prost(message, optional, tag = "1")]
123    pub id: ::core::option::Option<::prost::alloc::string::String>,
124    #[prost(message, optional, tag = "2")]
125    pub name: ::core::option::Option<::prost::alloc::string::String>,
126}