Skip to content

Commit

Permalink
added stats_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
StekPerepolnen committed Nov 29, 2024
1 parent b71bea9 commit 7458d2a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ydb/core/viewer/query_execute_script.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ class TQueryExecuteScript : public TQueryExecuteScriptRpc {
* `EXEC_MODE_EXPLAIN`
* `EXEC_MODE_EXECUTE`
required: true
stats_mode:
type: string
description: |
stats_mode:
* `STATS_MODE_UNSPECIFIED`
* `STATS_MODE_NONE`
* `STATS_MODE_BASIC`
* `STATS_MODE_FULL`
* `STATS_MODE_PROFILE`
required: false
responses:
200:
description: OK
Expand All @@ -94,3 +104,12 @@ class TQueryExecuteScript : public TQueryExecuteScriptRpc {

}
}


enum StatsMode {
STATS_MODE_UNSPECIFIED = 0;
STATS_MODE_NONE = 10; // Stats collection is disabled
STATS_MODE_BASIC = 20; // Aggregated stats of reads, updates and deletes per table
STATS_MODE_FULL = 30; // Add execution stats and plan on top of STATS_MODE_BASIC
STATS_MODE_PROFILE = 40; // Detailed execution stats including stats for individual tasks and channels
}

0 comments on commit 7458d2a

Please sign in to comment.