ydb_grpc/generated/
ydb.table_stats.rs

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