ydb_grpc_bindings/generated/
ydb.monitoring.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct StatusFlag {}
4/// Nested message and enum types in `StatusFlag`.
5pub mod status_flag {
6    /// Describes the general state of a component.
7    /// From GREEN to RED, where GREEN is good, and RED is bad.
8    /// GREY means that the corresponding status is unknown.
9    #[derive(
10        Clone,
11        Copy,
12        Debug,
13        PartialEq,
14        Eq,
15        Hash,
16        PartialOrd,
17        Ord,
18        ::prost::Enumeration
19    )]
20    #[repr(i32)]
21    pub enum Status {
22        Unspecified = 0,
23        Grey = 1,
24        Green = 2,
25        Blue = 3,
26        Yellow = 4,
27        Orange = 5,
28        Red = 6,
29    }
30    impl Status {
31        /// String value of the enum field names used in the ProtoBuf definition.
32        ///
33        /// The values are not transformed in any way and thus are considered stable
34        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
35        pub fn as_str_name(&self) -> &'static str {
36            match self {
37                Status::Unspecified => "UNSPECIFIED",
38                Status::Grey => "GREY",
39                Status::Green => "GREEN",
40                Status::Blue => "BLUE",
41                Status::Yellow => "YELLOW",
42                Status::Orange => "ORANGE",
43                Status::Red => "RED",
44            }
45        }
46        /// Creates an enum from field names used in the ProtoBuf definition.
47        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
48            match value {
49                "UNSPECIFIED" => Some(Self::Unspecified),
50                "GREY" => Some(Self::Grey),
51                "GREEN" => Some(Self::Green),
52                "BLUE" => Some(Self::Blue),
53                "YELLOW" => Some(Self::Yellow),
54                "ORANGE" => Some(Self::Orange),
55                "RED" => Some(Self::Red),
56                _ => None,
57            }
58        }
59    }
60}
61#[allow(clippy::derive_partial_eq_without_eq)]
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct SelfCheckRequest {
64    /// basic operation params, including timeout
65    #[prost(message, optional, tag = "1")]
66    pub operation_params: ::core::option::Option<super::operations::OperationParams>,
67    /// return detailed info about components checked with their statuses
68    #[prost(bool, tag = "2")]
69    pub return_verbose_status: bool,
70    /// minimum status of issues to return
71    #[prost(enumeration = "status_flag::Status", tag = "3")]
72    pub minimum_status: i32,
73    /// maximum level of issues to return
74    #[prost(uint32, tag = "4")]
75    pub maximum_level: u32,
76}
77#[allow(clippy::derive_partial_eq_without_eq)]
78#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct SelfCheckResponse {
80    /// After successfull completion must contain SelfCheckResult.
81    #[prost(message, optional, tag = "1")]
82    pub operation: ::core::option::Option<super::operations::Operation>,
83}
84#[allow(clippy::derive_partial_eq_without_eq)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct NodeCheckRequest {
87    /// basic operation params, including timeout
88    #[prost(message, optional, tag = "1")]
89    pub operation_params: ::core::option::Option<super::operations::OperationParams>,
90}
91#[allow(clippy::derive_partial_eq_without_eq)]
92#[derive(Clone, PartialEq, ::prost::Message)]
93pub struct NodeCheckResponse {
94    /// After successfull completion must contain SelfCheckResult.
95    #[prost(message, optional, tag = "1")]
96    pub operation: ::core::option::Option<super::operations::Operation>,
97}
98#[allow(clippy::derive_partial_eq_without_eq)]
99#[derive(Clone, PartialEq, ::prost::Message)]
100pub struct SelfCheck {}
101/// Nested message and enum types in `SelfCheck`.
102pub mod self_check {
103    /// Describes the result of self-check performed.
104    #[derive(
105        Clone,
106        Copy,
107        Debug,
108        PartialEq,
109        Eq,
110        Hash,
111        PartialOrd,
112        Ord,
113        ::prost::Enumeration
114    )]
115    #[repr(i32)]
116    pub enum Result {
117        Unspecified = 0,
118        Good = 1,
119        Degraded = 2,
120        MaintenanceRequired = 3,
121        Emergency = 4,
122    }
123    impl Result {
124        /// String value of the enum field names used in the ProtoBuf definition.
125        ///
126        /// The values are not transformed in any way and thus are considered stable
127        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
128        pub fn as_str_name(&self) -> &'static str {
129            match self {
130                Result::Unspecified => "UNSPECIFIED",
131                Result::Good => "GOOD",
132                Result::Degraded => "DEGRADED",
133                Result::MaintenanceRequired => "MAINTENANCE_REQUIRED",
134                Result::Emergency => "EMERGENCY",
135            }
136        }
137        /// Creates an enum from field names used in the ProtoBuf definition.
138        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
139            match value {
140                "UNSPECIFIED" => Some(Self::Unspecified),
141                "GOOD" => Some(Self::Good),
142                "DEGRADED" => Some(Self::Degraded),
143                "MAINTENANCE_REQUIRED" => Some(Self::MaintenanceRequired),
144                "EMERGENCY" => Some(Self::Emergency),
145                _ => None,
146            }
147        }
148    }
149}
150#[allow(clippy::derive_partial_eq_without_eq)]
151#[derive(Clone, PartialEq, ::prost::Message)]
152pub struct StoragePDiskStatus {
153    #[prost(string, tag = "1")]
154    pub id: ::prost::alloc::string::String,
155    #[prost(enumeration = "status_flag::Status", tag = "2")]
156    pub overall: i32,
157}
158#[allow(clippy::derive_partial_eq_without_eq)]
159#[derive(Clone, PartialEq, ::prost::Message)]
160pub struct StorageVDiskStatus {
161    #[prost(string, tag = "1")]
162    pub id: ::prost::alloc::string::String,
163    #[prost(enumeration = "status_flag::Status", tag = "2")]
164    pub overall: i32,
165    #[prost(enumeration = "status_flag::Status", tag = "3")]
166    pub vdisk_status: i32,
167    #[prost(message, optional, tag = "4")]
168    pub pdisk: ::core::option::Option<StoragePDiskStatus>,
169}
170#[allow(clippy::derive_partial_eq_without_eq)]
171#[derive(Clone, PartialEq, ::prost::Message)]
172pub struct StorageGroupStatus {
173    #[prost(string, tag = "1")]
174    pub id: ::prost::alloc::string::String,
175    #[prost(enumeration = "status_flag::Status", tag = "2")]
176    pub overall: i32,
177    #[prost(message, repeated, tag = "3")]
178    pub vdisks: ::prost::alloc::vec::Vec<StorageVDiskStatus>,
179}
180#[allow(clippy::derive_partial_eq_without_eq)]
181#[derive(Clone, PartialEq, ::prost::Message)]
182pub struct StoragePoolStatus {
183    #[prost(string, tag = "1")]
184    pub id: ::prost::alloc::string::String,
185    #[prost(enumeration = "status_flag::Status", tag = "2")]
186    pub overall: i32,
187    #[prost(message, repeated, tag = "3")]
188    pub groups: ::prost::alloc::vec::Vec<StorageGroupStatus>,
189}
190#[allow(clippy::derive_partial_eq_without_eq)]
191#[derive(Clone, PartialEq, ::prost::Message)]
192pub struct StorageStatus {
193    #[prost(enumeration = "status_flag::Status", tag = "1")]
194    pub overall: i32,
195    #[prost(message, repeated, tag = "2")]
196    pub pools: ::prost::alloc::vec::Vec<StoragePoolStatus>,
197}
198/// Describes the state of a tablet group.
199#[allow(clippy::derive_partial_eq_without_eq)]
200#[derive(Clone, PartialEq, ::prost::Message)]
201pub struct ComputeTabletStatus {
202    #[prost(enumeration = "status_flag::Status", tag = "1")]
203    pub overall: i32,
204    #[prost(string, tag = "2")]
205    pub r#type: ::prost::alloc::string::String,
206    #[prost(string, tag = "3")]
207    pub state: ::prost::alloc::string::String,
208    #[prost(uint32, tag = "4")]
209    pub count: u32,
210    #[prost(string, repeated, tag = "5")]
211    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
212}
213#[allow(clippy::derive_partial_eq_without_eq)]
214#[derive(Clone, PartialEq, ::prost::Message)]
215pub struct ThreadPoolStatus {
216    #[prost(enumeration = "status_flag::Status", tag = "1")]
217    pub overall: i32,
218    #[prost(string, tag = "2")]
219    pub name: ::prost::alloc::string::String,
220    #[prost(float, tag = "3")]
221    pub usage: f32,
222}
223#[allow(clippy::derive_partial_eq_without_eq)]
224#[derive(Clone, PartialEq, ::prost::Message)]
225pub struct LoadAverageStatus {
226    #[prost(enumeration = "status_flag::Status", tag = "1")]
227    pub overall: i32,
228    #[prost(float, tag = "2")]
229    pub load: f32,
230    #[prost(uint32, tag = "3")]
231    pub cores: u32,
232}
233#[allow(clippy::derive_partial_eq_without_eq)]
234#[derive(Clone, PartialEq, ::prost::Message)]
235pub struct ComputeNodeStatus {
236    #[prost(string, tag = "1")]
237    pub id: ::prost::alloc::string::String,
238    #[prost(enumeration = "status_flag::Status", tag = "2")]
239    pub overall: i32,
240    #[prost(message, repeated, tag = "3")]
241    pub tablets: ::prost::alloc::vec::Vec<ComputeTabletStatus>,
242    #[prost(message, repeated, tag = "4")]
243    pub pools: ::prost::alloc::vec::Vec<ThreadPoolStatus>,
244    #[prost(message, optional, tag = "5")]
245    pub load: ::core::option::Option<LoadAverageStatus>,
246}
247#[allow(clippy::derive_partial_eq_without_eq)]
248#[derive(Clone, PartialEq, ::prost::Message)]
249pub struct ComputeStatus {
250    #[prost(enumeration = "status_flag::Status", tag = "1")]
251    pub overall: i32,
252    #[prost(message, repeated, tag = "2")]
253    pub nodes: ::prost::alloc::vec::Vec<ComputeNodeStatus>,
254    #[prost(message, repeated, tag = "3")]
255    pub tablets: ::prost::alloc::vec::Vec<ComputeTabletStatus>,
256}
257#[allow(clippy::derive_partial_eq_without_eq)]
258#[derive(Clone, PartialEq, ::prost::Message)]
259pub struct LocationNode {
260    #[prost(uint32, tag = "1")]
261    pub id: u32,
262    #[prost(string, tag = "2")]
263    pub host: ::prost::alloc::string::String,
264    #[prost(uint32, tag = "3")]
265    pub port: u32,
266}
267#[allow(clippy::derive_partial_eq_without_eq)]
268#[derive(Clone, PartialEq, ::prost::Message)]
269pub struct LocationStoragePDisk {
270    #[prost(string, tag = "1")]
271    pub id: ::prost::alloc::string::String,
272    #[prost(string, tag = "2")]
273    pub path: ::prost::alloc::string::String,
274}
275#[allow(clippy::derive_partial_eq_without_eq)]
276#[derive(Clone, PartialEq, ::prost::Message)]
277pub struct LocationStorageVDisk {
278    #[prost(string, repeated, tag = "1")]
279    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
280    #[prost(message, repeated, tag = "2")]
281    pub pdisk: ::prost::alloc::vec::Vec<LocationStoragePDisk>,
282}
283#[allow(clippy::derive_partial_eq_without_eq)]
284#[derive(Clone, PartialEq, ::prost::Message)]
285pub struct LocationStorageGroup {
286    #[prost(string, repeated, tag = "1")]
287    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
288    #[prost(message, optional, tag = "2")]
289    pub vdisk: ::core::option::Option<LocationStorageVDisk>,
290}
291#[allow(clippy::derive_partial_eq_without_eq)]
292#[derive(Clone, PartialEq, ::prost::Message)]
293pub struct LocationStoragePool {
294    #[prost(string, tag = "1")]
295    pub name: ::prost::alloc::string::String,
296    #[prost(message, optional, tag = "2")]
297    pub group: ::core::option::Option<LocationStorageGroup>,
298}
299#[allow(clippy::derive_partial_eq_without_eq)]
300#[derive(Clone, PartialEq, ::prost::Message)]
301pub struct LocationStorage {
302    #[prost(message, optional, tag = "1")]
303    pub node: ::core::option::Option<LocationNode>,
304    #[prost(message, optional, tag = "2")]
305    pub pool: ::core::option::Option<LocationStoragePool>,
306}
307#[allow(clippy::derive_partial_eq_without_eq)]
308#[derive(Clone, PartialEq, ::prost::Message)]
309pub struct LocationComputePool {
310    #[prost(string, tag = "1")]
311    pub name: ::prost::alloc::string::String,
312}
313#[allow(clippy::derive_partial_eq_without_eq)]
314#[derive(Clone, PartialEq, ::prost::Message)]
315pub struct LocationComputeTablet {
316    #[prost(string, tag = "1")]
317    pub r#type: ::prost::alloc::string::String,
318    #[prost(string, repeated, tag = "2")]
319    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
320    #[prost(uint32, tag = "3")]
321    pub count: u32,
322}
323#[allow(clippy::derive_partial_eq_without_eq)]
324#[derive(Clone, PartialEq, ::prost::Message)]
325pub struct LocationCompute {
326    #[prost(message, optional, tag = "1")]
327    pub node: ::core::option::Option<LocationNode>,
328    #[prost(message, optional, tag = "2")]
329    pub pool: ::core::option::Option<LocationComputePool>,
330    #[prost(message, optional, tag = "3")]
331    pub tablet: ::core::option::Option<LocationComputeTablet>,
332}
333#[allow(clippy::derive_partial_eq_without_eq)]
334#[derive(Clone, PartialEq, ::prost::Message)]
335pub struct LocationDatabase {
336    #[prost(string, tag = "1")]
337    pub name: ::prost::alloc::string::String,
338}
339#[allow(clippy::derive_partial_eq_without_eq)]
340#[derive(Clone, PartialEq, ::prost::Message)]
341pub struct Location {
342    #[prost(message, optional, tag = "1")]
343    pub storage: ::core::option::Option<LocationStorage>,
344    #[prost(message, optional, tag = "2")]
345    pub compute: ::core::option::Option<LocationCompute>,
346    #[prost(message, optional, tag = "3")]
347    pub database: ::core::option::Option<LocationDatabase>,
348}
349#[allow(clippy::derive_partial_eq_without_eq)]
350#[derive(Clone, PartialEq, ::prost::Message)]
351pub struct IssueLog {
352    #[prost(string, tag = "1")]
353    pub id: ::prost::alloc::string::String,
354    #[prost(enumeration = "status_flag::Status", tag = "2")]
355    pub status: i32,
356    #[prost(string, tag = "3")]
357    pub message: ::prost::alloc::string::String,
358    #[prost(message, optional, tag = "4")]
359    pub location: ::core::option::Option<Location>,
360    #[prost(string, repeated, tag = "5")]
361    pub reason: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
362    #[prost(string, tag = "6")]
363    pub r#type: ::prost::alloc::string::String,
364    #[prost(uint32, tag = "7")]
365    pub level: u32,
366    #[prost(uint32, tag = "8")]
367    pub listed: u32,
368    #[prost(uint32, tag = "9")]
369    pub count: u32,
370}
371#[allow(clippy::derive_partial_eq_without_eq)]
372#[derive(Clone, PartialEq, ::prost::Message)]
373pub struct DatabaseStatus {
374    #[prost(string, tag = "1")]
375    pub name: ::prost::alloc::string::String,
376    #[prost(enumeration = "status_flag::Status", tag = "2")]
377    pub overall: i32,
378    #[prost(message, optional, tag = "3")]
379    pub storage: ::core::option::Option<StorageStatus>,
380    #[prost(message, optional, tag = "4")]
381    pub compute: ::core::option::Option<ComputeStatus>,
382}
383#[allow(clippy::derive_partial_eq_without_eq)]
384#[derive(Clone, PartialEq, ::prost::Message)]
385pub struct SelfCheckResult {
386    #[prost(enumeration = "self_check::Result", tag = "1")]
387    pub self_check_result: i32,
388    #[prost(message, repeated, tag = "2")]
389    pub issue_log: ::prost::alloc::vec::Vec<IssueLog>,
390    #[prost(message, repeated, tag = "3")]
391    pub database_status: ::prost::alloc::vec::Vec<DatabaseStatus>,
392}