1#[derive(serde::Serialize, serde::Deserialize)]
4#[serde(rename_all = "snake_case")]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct Filter {
7 #[prost(message, optional, tag = "1")]
9 pub name: ::core::option::Option<::prost::alloc::string::String>,
10 #[prost(map = "string, bool", tag = "2")]
12 pub selected_values: ::std::collections::HashMap<
13 ::prost::alloc::string::String,
14 bool,
15 >,
16}
17#[derive(serde::Serialize, serde::Deserialize)]
19#[serde(rename_all = "snake_case")]
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct SelectedFilters {
22 #[prost(message, repeated, tag = "1")]
24 pub filters: ::prost::alloc::vec::Vec<Filter>,
25}
26#[derive(serde::Serialize, serde::Deserialize)]
28#[serde(rename_all = "snake_case")]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct SearchQuery {
31 #[prost(message, optional, tag = "1")]
33 pub query: ::core::option::Option<::prost::alloc::string::String>,
34}
35#[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}
43pub 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 #[prost(message, tag = "1")]
51 QuickSelection(super::QuickTimeSelection),
52 #[prost(message, tag = "2")]
54 CustomSelection(super::CustomTimeSelection),
55 }
56}
57#[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#[derive(serde::Serialize, serde::Deserialize)]
70#[serde(rename_all = "snake_case")]
71#[derive(Clone, Copy, PartialEq, ::prost::Message)]
72pub struct CustomTimeSelection {
73 #[prost(message, optional, tag = "1")]
75 pub from_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
76 #[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 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 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#[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}