ydb_grpc_bindings/generated/
ydb.table_stats.rs

1/// Describes select, update (insert, upsert, replace) and delete operations
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct OperationStats {
5    #[prost(uint64, tag = "1")]
6    pub rows: u64,
7    #[prost(uint64, tag = "2")]
8    pub bytes: u64,
9}
10/// Describes all operations on a table
11#[allow(clippy::derive_partial_eq_without_eq)]
12#[derive(Clone, PartialEq, ::prost::Message)]
13pub struct TableAccessStats {
14    #[prost(string, tag = "1")]
15    pub name: ::prost::alloc::string::String,
16    #[prost(message, optional, tag = "3")]
17    pub reads: ::core::option::Option<OperationStats>,
18    #[prost(message, optional, tag = "4")]
19    pub updates: ::core::option::Option<OperationStats>,
20    #[prost(message, optional, tag = "5")]
21    pub deletes: ::core::option::Option<OperationStats>,
22    #[prost(uint64, tag = "6")]
23    pub partitions_count: u64,
24}
25#[allow(clippy::derive_partial_eq_without_eq)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct QueryPhaseStats {
28    #[prost(uint64, tag = "1")]
29    pub duration_us: u64,
30    #[prost(message, repeated, tag = "2")]
31    pub table_access: ::prost::alloc::vec::Vec<TableAccessStats>,
32    #[prost(uint64, tag = "3")]
33    pub cpu_time_us: u64,
34    #[prost(uint64, tag = "4")]
35    pub affected_shards: u64,
36    #[prost(bool, tag = "5")]
37    pub literal_phase: bool,
38}
39#[allow(clippy::derive_partial_eq_without_eq)]
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct CompilationStats {
42    #[prost(bool, tag = "1")]
43    pub from_cache: bool,
44    #[prost(uint64, tag = "2")]
45    pub duration_us: u64,
46    #[prost(uint64, tag = "3")]
47    pub cpu_time_us: u64,
48}
49#[allow(clippy::derive_partial_eq_without_eq)]
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct QueryStats {
52    /// A query might have one or more execution phases
53    #[prost(message, repeated, tag = "1")]
54    pub query_phases: ::prost::alloc::vec::Vec<QueryPhaseStats>,
55    #[prost(message, optional, tag = "2")]
56    pub compilation: ::core::option::Option<CompilationStats>,
57    #[prost(uint64, tag = "3")]
58    pub process_cpu_time_us: u64,
59    #[prost(string, tag = "4")]
60    pub query_plan: ::prost::alloc::string::String,
61    #[prost(string, tag = "5")]
62    pub query_ast: ::prost::alloc::string::String,
63    #[prost(uint64, tag = "6")]
64    pub total_duration_us: u64,
65    #[prost(uint64, tag = "7")]
66    pub total_cpu_time_us: u64,
67}