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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatusFlag {}
/// Nested message and enum types in `StatusFlag`.
pub mod status_flag {
    /// Describes the general state of a component.
    /// From GREEN to RED, where GREEN is good, and RED is bad.
    /// GREY means that the corresponding status is unknown.
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Status {
        Unspecified = 0,
        Grey = 1,
        Green = 2,
        Blue = 3,
        Yellow = 4,
        Orange = 5,
        Red = 6,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelfCheckRequest {
    #[prost(message, optional, tag = "1")]
    pub operation_params: ::core::option::Option<super::operations::OperationParams>,
    #[prost(bool, tag = "2")]
    pub return_verbose_status: bool,
    #[prost(enumeration = "status_flag::Status", tag = "3")]
    pub minimum_status: i32,
    #[prost(uint32, tag = "4")]
    pub maximum_level: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelfCheckResponse {
    /// After successfull completion must contain SelfCheckResult.
    #[prost(message, optional, tag = "1")]
    pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelfCheck {}
/// Nested message and enum types in `SelfCheck`.
pub mod self_check {
    /// Describes the result of self-check performed.
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Result {
        Unspecified = 0,
        Good = 1,
        Degraded = 2,
        MaintenanceRequired = 3,
        Emergency = 4,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoragePDiskStatus {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageVDiskStatus {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
    #[prost(enumeration = "status_flag::Status", tag = "3")]
    pub vdisk_status: i32,
    #[prost(message, optional, tag = "4")]
    pub pdisk: ::core::option::Option<StoragePDiskStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageGroupStatus {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
    #[prost(message, repeated, tag = "3")]
    pub vdisks: ::prost::alloc::vec::Vec<StorageVDiskStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoragePoolStatus {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
    #[prost(message, repeated, tag = "3")]
    pub groups: ::prost::alloc::vec::Vec<StorageGroupStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageStatus {
    #[prost(enumeration = "status_flag::Status", tag = "1")]
    pub overall: i32,
    #[prost(message, repeated, tag = "2")]
    pub pools: ::prost::alloc::vec::Vec<StoragePoolStatus>,
}
/// Describes the state of a tablet group.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComputeTabletStatus {
    #[prost(enumeration = "status_flag::Status", tag = "1")]
    pub overall: i32,
    #[prost(string, tag = "2")]
    pub r#type: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub state: ::prost::alloc::string::String,
    #[prost(uint32, tag = "4")]
    pub count: u32,
    #[prost(string, repeated, tag = "5")]
    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThreadPoolStatus {
    #[prost(enumeration = "status_flag::Status", tag = "1")]
    pub overall: i32,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(float, tag = "3")]
    pub usage: f32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadAverageStatus {
    #[prost(enumeration = "status_flag::Status", tag = "1")]
    pub overall: i32,
    #[prost(float, tag = "2")]
    pub load: f32,
    #[prost(uint32, tag = "3")]
    pub cores: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComputeNodeStatus {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
    #[prost(message, repeated, tag = "3")]
    pub tablets: ::prost::alloc::vec::Vec<ComputeTabletStatus>,
    #[prost(message, repeated, tag = "4")]
    pub pools: ::prost::alloc::vec::Vec<ThreadPoolStatus>,
    #[prost(message, optional, tag = "5")]
    pub load: ::core::option::Option<LoadAverageStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComputeStatus {
    #[prost(enumeration = "status_flag::Status", tag = "1")]
    pub overall: i32,
    #[prost(message, repeated, tag = "2")]
    pub nodes: ::prost::alloc::vec::Vec<ComputeNodeStatus>,
    #[prost(message, repeated, tag = "3")]
    pub tablets: ::prost::alloc::vec::Vec<ComputeTabletStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationNode {
    #[prost(uint32, tag = "1")]
    pub id: u32,
    #[prost(string, tag = "2")]
    pub host: ::prost::alloc::string::String,
    #[prost(uint32, tag = "3")]
    pub port: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationStoragePDisk {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationStorageVDisk {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub pdisk: ::core::option::Option<LocationStoragePDisk>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationStorageGroup {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub vdisk: ::core::option::Option<LocationStorageVDisk>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationStoragePool {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub group: ::core::option::Option<LocationStorageGroup>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationStorage {
    #[prost(message, optional, tag = "1")]
    pub node: ::core::option::Option<LocationNode>,
    #[prost(message, optional, tag = "2")]
    pub pool: ::core::option::Option<LocationStoragePool>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationComputePool {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationComputeTablet {
    #[prost(string, tag = "1")]
    pub r#type: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(uint32, tag = "3")]
    pub count: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationCompute {
    #[prost(message, optional, tag = "1")]
    pub node: ::core::option::Option<LocationNode>,
    #[prost(message, optional, tag = "2")]
    pub pool: ::core::option::Option<LocationComputePool>,
    #[prost(message, optional, tag = "3")]
    pub tablet: ::core::option::Option<LocationComputeTablet>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocationDatabase {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Location {
    #[prost(message, optional, tag = "1")]
    pub storage: ::core::option::Option<LocationStorage>,
    #[prost(message, optional, tag = "2")]
    pub compute: ::core::option::Option<LocationCompute>,
    #[prost(message, optional, tag = "3")]
    pub database: ::core::option::Option<LocationDatabase>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IssueLog {
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub status: i32,
    #[prost(string, tag = "3")]
    pub message: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub location: ::core::option::Option<Location>,
    #[prost(string, repeated, tag = "5")]
    pub reason: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "6")]
    pub r#type: ::prost::alloc::string::String,
    #[prost(uint32, tag = "7")]
    pub level: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatabaseStatus {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(enumeration = "status_flag::Status", tag = "2")]
    pub overall: i32,
    #[prost(message, optional, tag = "3")]
    pub storage: ::core::option::Option<StorageStatus>,
    #[prost(message, optional, tag = "4")]
    pub compute: ::core::option::Option<ComputeStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelfCheckResult {
    #[prost(enumeration = "self_check::Result", tag = "1")]
    pub self_check_result: i32,
    #[prost(message, repeated, tag = "2")]
    pub issue_log: ::prost::alloc::vec::Vec<IssueLog>,
    #[prost(message, repeated, tag = "3")]
    pub database_status: ::prost::alloc::vec::Vec<DatabaseStatus>,
}