@yugabytedb/perf-advisor-ui 1.0.134 → 1.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +22 -1
  2. package/dist/api.d.ts +96 -0
  3. package/dist/common/ChartCard/ChartCard.d.ts +20 -0
  4. package/dist/common/ChartCard/ChartCard.styles.d.ts +1 -0
  5. package/dist/common/ChartCard/ChartTypeSelector.d.ts +8 -0
  6. package/dist/common/ChartCard/WaitEventTypeSelector.d.ts +8 -0
  7. package/dist/common/ChartCard/buildOptions.d.ts +3 -0
  8. package/dist/common/ChartCard/defaults.d.ts +9 -0
  9. package/dist/common/ChartCard/helpers/anomalyOverlay.d.ts +2 -0
  10. package/dist/common/ChartCard/helpers/axes.d.ts +43 -0
  11. package/dist/common/ChartCard/helpers/index.d.ts +11 -0
  12. package/dist/common/ChartCard/helpers/interactions.d.ts +6 -0
  13. package/dist/common/ChartCard/helpers/legend.d.ts +41 -0
  14. package/dist/common/ChartCard/helpers/series.d.ts +9 -0
  15. package/dist/common/ChartCard/helpers/tooltip.d.ts +27 -0
  16. package/dist/common/ChartCard/index.d.ts +8 -0
  17. package/dist/common/ChartCard/types.d.ts +171 -0
  18. package/dist/common/CopyToClipboardButton/CopyToClipboardButton.d.ts +8 -0
  19. package/dist/common/PAHeader/MetricSplitSelector.d.ts +8 -0
  20. package/dist/common/PAHeader/OutlierSelector.d.ts +13 -0
  21. package/dist/common/PAHeader/QueryTypeSelector.d.ts +8 -0
  22. package/dist/common/PAHeader/YBClusterRegionSelector.d.ts +9 -0
  23. package/dist/common/PAHeader/YBZoneNodeSelector.d.ts +11 -0
  24. package/dist/common/PerfAdvisorCodeBlock/PerfAdvisorCodeBlock.d.ts +23 -0
  25. package/dist/common/YBCheckbox/YBCheckboxField.d.ts +6 -0
  26. package/dist/common/YBCodeBlock/codeBlock.d.ts +1 -0
  27. package/dist/common/YBErrorIndicator/YBErrorIndicator.d.ts +8 -0
  28. package/dist/common/YBInput/YBInputField.d.ts +7 -0
  29. package/dist/common/YBPagination/YBInfinitePagination.d.ts +16 -0
  30. package/dist/common/YBPanelItem/YBPanelItem.d.ts +11 -0
  31. package/dist/common/YBTable/AnomaliesTableFooter.d.ts +4 -0
  32. package/dist/common/YBTable/TableHelper.d.ts +9 -0
  33. package/dist/common/YBToggle/YBToggleField.d.ts +6 -0
  34. package/dist/common/index.d.ts +14 -0
  35. package/dist/components/ConfigureUniverse/ConfigureUniverseMetadata.d.ts +8 -0
  36. package/dist/components/ConfigureUniverse/RemoveUniverseMetadata.d.ts +10 -0
  37. package/dist/components/ConfigureUniverse/UniverseListMetadata.d.ts +14 -0
  38. package/dist/components/GanttChart/GanttChart.d.ts +3 -0
  39. package/dist/components/GanttChart/adapters/anomalyAdapter.d.ts +5 -0
  40. package/dist/components/GanttChart/adapters/backgroundJobsAdapter.d.ts +3 -0
  41. package/dist/components/GanttChart/adapters/qpmAdapter.d.ts +4 -0
  42. package/dist/components/GanttChart/adapters/showMoreAnomalyAdapter.d.ts +3 -0
  43. package/dist/components/GanttChart/adapters/singleLevelAnomalyAdapter.d.ts +3 -0
  44. package/dist/components/GanttChart/components/Bar.d.ts +11 -0
  45. package/dist/components/GanttChart/components/ColumnHeader.d.ts +9 -0
  46. package/dist/components/GanttChart/components/GanttRefetchProgress.d.ts +2 -0
  47. package/dist/components/GanttChart/components/GroupPanel.d.ts +15 -0
  48. package/dist/components/GanttChart/components/GroupRow.d.ts +17 -0
  49. package/dist/components/GanttChart/components/TimeAxis.d.ts +12 -0
  50. package/dist/components/GanttChart/components/TimelinePanel.d.ts +24 -0
  51. package/dist/components/GanttChart/config.d.ts +36 -0
  52. package/dist/components/GanttChart/hooks/useGanttRows.d.ts +9 -0
  53. package/dist/components/GanttChart/hooks/useTimeScale.d.ts +12 -0
  54. package/dist/components/GanttChart/index.d.ts +9 -0
  55. package/dist/components/GanttChart/types.d.ts +111 -0
  56. package/dist/components/GanttChart/utils/mergeIntervals.d.ts +10 -0
  57. package/dist/components/GanttChart/utils/severity.d.ts +19 -0
  58. package/dist/components/GanttChart/utils/timeFormatters.d.ts +12 -0
  59. package/dist/components/GanttChart/utils/truncateLabel.d.ts +16 -0
  60. package/dist/components/Header/BreadCrumbsHeader.d.ts +16 -0
  61. package/dist/components/Header/DateSelectorHeader.d.ts +21 -0
  62. package/dist/components/Header/DbLoadHeader.d.ts +14 -0
  63. package/dist/components/Header/GenericHeader.d.ts +30 -0
  64. package/dist/components/Header/MetadataHeader.d.ts +16 -0
  65. package/dist/components/Header/TimezoneSelector.d.ts +9 -0
  66. package/dist/components/Header/metadata/AnomalyMetadataFields.d.ts +12 -0
  67. package/dist/components/Header/metadata/MetadataField.d.ts +22 -0
  68. package/dist/components/Header/metadata/index.d.ts +4 -0
  69. package/dist/components/Header/metadata/sqlMetadataFields.d.ts +4 -0
  70. package/dist/components/PrimaryDashboard/AshGate.d.ts +7 -0
  71. package/dist/components/PrimaryDashboard/BackgroundJobs.d.ts +15 -0
  72. package/dist/components/PrimaryDashboard/ClusterOverallLoadChart.d.ts +23 -0
  73. package/dist/components/PrimaryDashboard/ColumnSelectorDrawer.d.ts +10 -0
  74. package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseChart.d.ts +21 -0
  75. package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseMetadata.d.ts +13 -0
  76. package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityDashboard.d.ts +13 -0
  77. package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityView.d.ts +13 -0
  78. package/dist/components/PrimaryDashboard/DbLoadMetadata.d.ts +22 -0
  79. package/dist/components/PrimaryDashboard/DbNodeLoadChart.d.ts +22 -0
  80. package/dist/components/PrimaryDashboard/DbStatsTable/databaseStatsColumns.d.ts +51 -0
  81. package/dist/components/PrimaryDashboard/DbStatsTable/useDatabaseStatsTable.d.ts +62 -0
  82. package/dist/components/PrimaryDashboard/DetectedAnomalies.d.ts +19 -0
  83. package/dist/components/PrimaryDashboard/EChartsOptionsGenerator.d.ts +208 -0
  84. package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleColumnsPicker.d.ts +9 -0
  85. package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleDetailsPanel.d.ts +6 -0
  86. package/dist/components/PrimaryDashboard/ExportQueriesModal/ExportFormTab.d.ts +15 -0
  87. package/dist/components/PrimaryDashboard/ExportQueriesModal/RecentExportsTab.d.ts +10 -0
  88. package/dist/components/PrimaryDashboard/ExportQueriesModal/constants.d.ts +12 -0
  89. package/dist/components/PrimaryDashboard/ExportQueriesModal/helpers.d.ts +9 -0
  90. package/dist/components/PrimaryDashboard/ExportQueriesModal/index.d.ts +2 -0
  91. package/dist/components/PrimaryDashboard/ExportQueriesModal/recentExportColumns.d.ts +16 -0
  92. package/dist/components/PrimaryDashboard/ExportQueriesModal/types.d.ts +43 -0
  93. package/dist/components/PrimaryDashboard/HistoricalQueryData.d.ts +25 -0
  94. package/dist/components/PrimaryDashboard/PerfAdvisorBanner.d.ts +8 -0
  95. package/dist/components/PrimaryDashboard/PerfAdvisorEntry.d.ts +14 -0
  96. package/dist/components/PrimaryDashboard/PerfAdvisorTabs.d.ts +30 -0
  97. package/dist/components/PrimaryDashboard/ProcessTopKData.d.ts +11 -0
  98. package/dist/components/PrimaryDashboard/QueryEventsChart.d.ts +7 -0
  99. package/dist/components/PrimaryDashboard/QueryExportDropdown.d.ts +13 -0
  100. package/dist/components/PrimaryDashboard/ShowMoreAnomalies.d.ts +22 -0
  101. package/dist/components/PrimaryDashboard/chartConfigs/clusterLoadConfig.d.ts +8 -0
  102. package/dist/components/PrimaryDashboard/chartConfigs/cpuByDatabaseConfig.d.ts +9 -0
  103. package/dist/components/PrimaryDashboard/chartConfigs/dbNodeLoadConfig.d.ts +9 -0
  104. package/dist/components/PrimaryDashboard/chartConfigs/index.d.ts +7 -0
  105. package/dist/components/PrimaryDashboard/chartConfigs/shared.d.ts +8 -0
  106. package/dist/components/PrimaryDashboard/chartTitles.d.ts +2 -0
  107. package/dist/components/PrimaryDashboard/useChartData.d.ts +29 -0
  108. package/dist/components/RuntimeConfigs/ResetRuntimeConfig.d.ts +14 -0
  109. package/dist/components/RuntimeConfigs/RuntimeConfigs.d.ts +11 -0
  110. package/dist/components/RuntimeConfigs/UpdateRuntimeConfig.d.ts +14 -0
  111. package/dist/components/SecondaryDashboard/AnomalyPossibleCause.d.ts +7 -0
  112. package/dist/components/SecondaryDashboard/AnomalyRouter.d.ts +30 -0
  113. package/dist/components/SecondaryDashboard/DrilldownView/CpuSaturationDrilldown.d.ts +17 -0
  114. package/dist/components/SecondaryDashboard/DrilldownView/HistoricalQueryMetricGraphGrid.d.ts +22 -0
  115. package/dist/components/SecondaryDashboard/DrilldownView/NodeDrilldown.d.ts +23 -0
  116. package/dist/components/SecondaryDashboard/DrilldownView/OtherDrilldown.d.ts +20 -0
  117. package/dist/components/SecondaryDashboard/DrilldownView/QPMExportButton.d.ts +8 -0
  118. package/dist/components/SecondaryDashboard/DrilldownView/QPMPlanSelector.d.ts +9 -0
  119. package/dist/components/SecondaryDashboard/DrilldownView/QueryPlanManagement.d.ts +16 -0
  120. package/dist/components/SecondaryDashboard/DrilldownView/SqlDrilldown.d.ts +20 -0
  121. package/dist/components/SecondaryDashboard/DrilldownView/TabletDrilldown.d.ts +15 -0
  122. package/dist/components/SecondaryDashboard/GraphView.d.ts +39 -0
  123. package/dist/components/SecondaryDashboard/Metadata/AnomalyRCAGraphs.d.ts +25 -0
  124. package/dist/components/SecondaryDashboard/Metadata/NodeLoadMetadata.d.ts +13 -0
  125. package/dist/components/SecondaryDashboard/Metadata/QueriesMetadata.d.ts +20 -0
  126. package/dist/components/SecondaryDashboard/Metadata/QueryLevelTabletMetadata.d.ts +14 -0
  127. package/dist/components/SecondaryDashboard/Metadata/SizeBarChart.d.ts +6 -0
  128. package/dist/components/SecondaryDashboard/Metadata/TabletLevelQueryMetadata.d.ts +14 -0
  129. package/dist/components/SecondaryDashboard/Metadata/TabletMetadata.d.ts +18 -0
  130. package/dist/components/SecondaryDashboard/MetricsAnalysisEntry.d.ts +13 -0
  131. package/dist/components/SecondaryDashboard/MetricsSelectorDrawer.d.ts +17 -0
  132. package/dist/components/SecondaryDashboard/ProcessGraphData.d.ts +21 -0
  133. package/dist/components/SecondaryDashboard/QPMGanttChart.d.ts +14 -0
  134. package/dist/components/SecondaryDashboard/TopKMetricsView.d.ts +21 -0
  135. package/dist/components/hooks/useClusterFilterState.d.ts +27 -0
  136. package/dist/components/hooks/usePrevious.d.ts +1 -0
  137. package/dist/components/index.d.ts +10 -0
  138. package/dist/components/styles.d.ts +1 -0
  139. package/dist/contexts/ExportBundlesContext.d.ts +19 -0
  140. package/dist/esm/index.js +48571 -124378
  141. package/dist/esm/index.js.map +1 -1
  142. package/dist/helpers/anomalyRecommendationRenderer.d.ts +2 -0
  143. package/dist/helpers/columnPreferences.d.ts +11 -0
  144. package/dist/helpers/config.d.ts +2 -0
  145. package/dist/helpers/constants.d.ts +543 -0
  146. package/dist/helpers/dateUtils.d.ts +45 -0
  147. package/dist/helpers/downloadUtils.d.ts +72 -0
  148. package/dist/helpers/dtos.d.ts +862 -0
  149. package/dist/helpers/errorHandlingUtils.d.ts +1 -0
  150. package/dist/helpers/exportBundlesStorage.d.ts +47 -0
  151. package/dist/helpers/objectUtils.d.ts +11 -0
  152. package/dist/helpers/qpmStatus.d.ts +7 -0
  153. package/dist/helpers/utils.d.ts +240 -0
  154. package/dist/index.d.ts +8 -0
  155. package/dist/providers/YBThemeWrapper.d.ts +12 -0
  156. package/dist/theme/mainTheme.d.ts +14 -0
  157. package/dist/theme/variables.d.ts +50 -0
  158. package/package.json +34 -28
  159. package/dist/cjs/index.js +0 -19
  160. package/dist/cjs/index.js.map +0 -1
  161. package/dist/types.d.ts +0 -1870
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const renderRecommendation: (text: string) => React.ReactNode;
@@ -0,0 +1,11 @@
1
+ export type ColumnPreferences = Record<string, boolean>;
2
+ /**
3
+ * Read column visibility preferences from sessionStorage.
4
+ * Expects a JSON object mapping column names to booleans.
5
+ * Returns null if no valid preferences are stored.
6
+ */
7
+ export declare function readColumnPreferences(storageKey: string): ColumnPreferences | null;
8
+ /**
9
+ * Determine column visibility: stored preference if it exists, otherwise code default.
10
+ */
11
+ export declare function getColumnDisplay(columnName: string, codeDefault: boolean, preferences: ColumnPreferences | null): boolean;
@@ -0,0 +1,2 @@
1
+ export declare const IN_DEVELOPMENT_MODE: boolean;
2
+ export declare const REACT_APP_API_URL: string;
@@ -0,0 +1,543 @@
1
+ import { AnomalyCategory, ChartType, DbWaitEventType, MetricMeasure, SqlDrilldownTabs } from './dtos';
2
+ export declare const ALL_REGIONS = "All Regions and Clusters";
3
+ export declare const ALL = "All";
4
+ export declare const ALL_ZONES = "All Zones and Nodes";
5
+ export declare const ASH = "ASH";
6
+ export declare const TYPE = "type";
7
+ export declare const CORES = "Cores";
8
+ export declare const QUERIES = "Queries";
9
+ export declare const MIN_OUTLIER_NUM_NODES = 3;
10
+ export declare const MAX_OUTLIER_NUM_NODES = 10;
11
+ export declare const METRIC_FONT = "Inter";
12
+ export declare const CPU_CORES = "# vCPU";
13
+ export declare const MetricConsts: {
14
+ readonly NODE_AVERAGE: "Selected Nodes Average";
15
+ readonly ALL: "all";
16
+ readonly ALL_DATABASES: "All Databases";
17
+ readonly TOP: "top";
18
+ readonly PRIMARY: "PRIMARY";
19
+ };
20
+ export declare const ACTIVE_SESSION_HISTORY_EPS_GLOBAL = "active_session_history_eps_global";
21
+ export declare const ACTIVE_SESSION_HISTORY_QUERY_EVENTS = "active_session_history_query_events";
22
+ export declare const ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE = "active_session_history_eps_client_node";
23
+ export declare const CPU_COUNT = "cpu_count";
24
+ export declare const K8S_CPU_REQUESTS = "container_cpu_request";
25
+ export declare const CPU_USAGE_BY_DATABASE = "cpu_usage_by_database";
26
+ export declare const CPU_THROTTLED_BY_DATABASE = "cpu_throttled_by_database";
27
+ export declare const CPU_USAGE_QOS_THRESHOLD = "cpu_usage_qos_threshold";
28
+ export declare const PER_DB_CPU_LIMIT = "Per-DB CPU Limit";
29
+ export declare const metricSplitSelectors: readonly [{
30
+ readonly value: MetricMeasure.OVERALL;
31
+ readonly label: "Overall";
32
+ readonly text: "Overall";
33
+ }, {
34
+ readonly value: MetricMeasure.OUTLIER;
35
+ readonly label: "Outlier Nodes";
36
+ readonly k8label: "Outlier Pods";
37
+ readonly text: "nodes";
38
+ }, {
39
+ readonly value: MetricMeasure.OUTLIER_TABLES;
40
+ readonly label: "Outlier Tables";
41
+ readonly text: "tables";
42
+ }, {
43
+ readonly value: MetricMeasure.OUTLIER_DB;
44
+ readonly label: "Outlier Databases";
45
+ readonly text: "databases";
46
+ }];
47
+ export declare const otherSplitSelectors: readonly [{
48
+ readonly value: MetricMeasure.OVERALL;
49
+ readonly label: "Overall";
50
+ }, {
51
+ readonly value: MetricMeasure.OUTLIER;
52
+ readonly label: "Outlier Nodes";
53
+ readonly k8label: "Outlier Pods";
54
+ readonly text: "nodes";
55
+ }];
56
+ export declare const metricOutlierSelectors: readonly [{
57
+ readonly value: "TOP";
58
+ readonly label: "Top";
59
+ }, {
60
+ readonly value: "BOTTOM";
61
+ readonly label: "Bottom";
62
+ }];
63
+ export declare const queryTypeSelectors: readonly [{
64
+ readonly value: "All";
65
+ readonly label: "All Queries";
66
+ }, {
67
+ readonly value: "SQL";
68
+ readonly label: "SQL";
69
+ }, {
70
+ readonly value: "CQL";
71
+ readonly label: "CQL";
72
+ }, {
73
+ readonly value: "Background";
74
+ readonly label: "Background";
75
+ }];
76
+ export declare const TABLE_REQUEST_GRAPHS: string[];
77
+ export declare const SQL_QUERY_REQUEST_GRAPHS: string[];
78
+ export declare const SQL_QUERY_READ_WRITES_REQUEST_GRAPHS: string[];
79
+ export declare const SQL_QUERY_ROWS_REQUEST_GRAPHS: string[];
80
+ export declare const SQL_QUERY_RETRIES_REQUEST_GRAPHS: string[];
81
+ export declare const SQL_QUERY_WAIT_TIMES_REQUEST_GRAPHS: string[];
82
+ export interface SqlDrilldownTabConfig {
83
+ /** Enum value used as both the tab ID and the display label. */
84
+ id: SqlDrilldownTabs;
85
+ /** Graphs to request from the backend when this tab is visible & fetchable. */
86
+ requestGraphs: readonly string[];
87
+ }
88
+ /** Always-visible tabs (no feature gate). */
89
+ export declare const SQL_DRILLDOWN_BASE_TABS: readonly SqlDrilldownTabConfig[];
90
+ /** Tabs gated by the PGSS RPC stats feature (UI flag + per-universe enabled/supported). */
91
+ export declare const SQL_DRILLDOWN_PGSS_RPC_TABS: readonly SqlDrilldownTabConfig[];
92
+ export declare const unionGraphNamesForTabs: (tabs: readonly SqlDrilldownTabConfig[]) => string[];
93
+ export declare const CQL_QUERY_REQUEST_GRAPHS: string[];
94
+ export declare const BACKGROUND_QUERY_REQUEST_GRAPHS: string[];
95
+ export declare const CATALOG_READ_REQUEST_GRAPH = "ysql_connections_per_sec";
96
+ export declare const DEFAULT_RECORDS_PER_PAGE: number[];
97
+ export declare const ANOMALY_CATEGORY_LIST: AnomalyCategory[];
98
+ export declare const GLOBAL_RUNTIME_CONFIG = "00000000-0000-0000-0000-000000000000";
99
+ export declare const RUNTIME_CONFIG_KEYS: {
100
+ SHOW_CLEANUP_HISTORICAL_DATA: string;
101
+ SHOW_QUERIES_VIEW: string;
102
+ SHOW_TOPK_METRICS_VIEW: string;
103
+ SHOW_DB_CLUSTER_LOAD_VIEW: string;
104
+ SHOW_TIMEZONE_SELECTOR: string;
105
+ };
106
+ export declare const ANOMALY_TYPE_TO_NAME_MAP: Record<string, string>;
107
+ export declare const MORE = "MORE";
108
+ export declare const ELLIPSIS = "...";
109
+ export declare const VIEW_MORE = "View More";
110
+ export declare const TIME_FILTER_LABEL: {
111
+ readonly ONE_HOUR: "Last 1 hour";
112
+ readonly SIX_HOURS: "Last 6 hours";
113
+ readonly ONE_DAY: "Last 1 day";
114
+ readonly TWO_DAYS: "Last 2 days";
115
+ readonly SEVEN_DAYS: "Last 7 days";
116
+ readonly CUSTOM: "Custom";
117
+ };
118
+ export declare const TIME_FILTER_VALUES: {
119
+ readonly ONE_HOUR: "1h";
120
+ readonly SIX_HOURS: "6h";
121
+ readonly ONE_DAY: "1d";
122
+ readonly TWO_DAYS: "2d";
123
+ readonly SEVEN_DAYS: "7d";
124
+ readonly CUSTOM: "Custom";
125
+ };
126
+ export declare const ANOMALY_FILTER_DURATION_OPTIONS: readonly [{
127
+ readonly label: "Last 1 hour";
128
+ readonly value: "1h";
129
+ }, {
130
+ readonly label: "Last 6 hours";
131
+ readonly value: "6h";
132
+ }, {
133
+ readonly label: "Last 1 day";
134
+ readonly value: "1d";
135
+ }, {
136
+ readonly label: "Last 2 days";
137
+ readonly value: "2d";
138
+ }, {
139
+ readonly label: "Last 7 days";
140
+ readonly value: "7d";
141
+ }, {
142
+ readonly label: "Custom";
143
+ readonly value: "Custom";
144
+ }];
145
+ export declare const filterDurations: readonly [{
146
+ readonly label: "Custom";
147
+ readonly value: "Custom";
148
+ }];
149
+ export declare const CATEGORY_HEADER_DATA_MAP: Record<any, any>;
150
+ export declare const QUERY_DETAILS = "QUERY DETAILS";
151
+ export declare const QUERY_TAG = "QUERY";
152
+ export declare const DB_CAPS_TAG = "DATABASE";
153
+ export declare const QUERY_TYPE_TAG = "QUERY TYPE";
154
+ export declare const QUERY_ID_TAG = "QUERY ID";
155
+ export declare const DB_TYPE_TAG = "DATABASE TYPE";
156
+ export declare const DB_TAG = "Database";
157
+ export declare const USER_TAG = "User";
158
+ export declare const TABLE_TAG = "TABLE";
159
+ export declare const TABLET_TAG = "Tablet Id";
160
+ export declare const TABLET_ID_TAG = "TABLET ID";
161
+ export declare const ANOMALY_TAG = "ANOMALY";
162
+ export declare const REGION_ZONE_TAG = "REGION/ZONE";
163
+ export declare const REGION_TAG = "Region";
164
+ export declare const ZONE_TAG = "Zone";
165
+ export declare const MetricOrigin: {
166
+ readonly TABLE: "table";
167
+ readonly CUSTOMER: "customer";
168
+ readonly UNIVERSE: "universe";
169
+ };
170
+ export declare const METRIC_TABS_TABLES: string[];
171
+ export declare const METRIC_TABS_DATABASES: string[];
172
+ export declare const METRIC_TABLES_RESOURCES_WITH_GRAPHS: {
173
+ title: string;
174
+ name: string;
175
+ metrics: string[];
176
+ }[];
177
+ export declare const METRIC_DB_RESOURCES_WITH_GRAPHS: {
178
+ title: string;
179
+ name: string;
180
+ metrics: string[];
181
+ }[];
182
+ export declare const METRIC_RESOURCES_WITH_GRAPHS: readonly [{
183
+ readonly title: "YSQL";
184
+ readonly name: "ysql_ops";
185
+ readonly metrics: readonly ["ysql_server_rpc_per_second", "ysql_sql_latency", "ysql_connections", "ysql_connections_per_sec", "ysql_server_advanced_rpc_per_second", "ysql_sql_advanced_latency", "ysql_catalog_cache_misses", "ysql_conn_mgr_active_connections"];
186
+ }, {
187
+ readonly title: "YCQL";
188
+ readonly name: "ycql_ops";
189
+ readonly metrics: readonly ["cql_server_rpc_per_second", "cql_sql_latency", "cql_server_rpc_p99", "cql_sql_latency_breakdown", "cql_yb_local_vs_remote", "cql_yb_latency", "cql_reactor_latency", "tserver_rpc_queue_size_cql", "cql_response_sizes", "cql_yb_transaction", "cql_yb_rpc_connections"];
190
+ }, {
191
+ readonly title: "Resource";
192
+ readonly name: "server";
193
+ readonly metrics: readonly ["cpu_usage", "memory_usage", "disk_iops", "disk_usage_percent", "disk_used_size_total", "disk_volume_usage_percent", "disk_volume_used", "disk_bytes_per_second_per_node", "disk_io_time", "disk_io_queue_depth", "disk_io_read_latency", "disk_io_write_latency", "network_packets", "network_bytes", "network_errors", "system_load_over_time", "node_clock_skew"];
194
+ }, {
195
+ readonly title: "Per Process";
196
+ readonly name: "per_process";
197
+ readonly metrics: readonly ["process_user_cpu_seconds", "process_system_cpu_seconds", "process_virtual_memory", "process_resident_memory", "process_proportional_memory", "process_io_read", "process_io_write", "process_open_files"];
198
+ }, {
199
+ readonly title: "Disk I/O";
200
+ readonly name: "disk_io";
201
+ readonly metrics: readonly ["disk_iops", "disk_usage_percent", "disk_used_size_total", "disk_volume_usage_percent", "disk_volume_used", "disk_bytes_per_second_per_node", "lsm_rocksdb_flush_size", "lsm_rocksdb_compaction", "lsm_rocksdb_compaction_time", "tserver_log_bytes_read", "tserver_log_bytes_written"];
202
+ }, {
203
+ readonly title: "Tablet Server";
204
+ readonly name: "tserver";
205
+ readonly metrics: readonly ["tserver_rpcs_per_sec_per_node", "tserver_ops_latency", "tserver_handler_latency", "tserver_threads_running", "tserver_threads_started", "tserver_uptime_min", "tserver_memory", "tserver_consensus_rpcs_per_sec", "tserver_change_config", "tserver_remote_bootstraps", "tserver_consensus_rpcs_latency", "tserver_change_config_latency", "tserver_context_switches", "tserver_spinlock_server", "tserver_log_latency", "tserver_log_bytes_written", "tserver_log_bytes_read", "tserver_log_ops_second", "tserver_write_lock_latency", "tserver_tc_malloc_stats", "tserver_log_stats", "tserver_cache_reader_num_ops", "tserver_glog_info_messages", "tserver_rpc_queue_size_tserver", "tserver_cpu_util_secs", "tserver_yb_rpc_connections", "tserver_live_tablet_peers", "raft_leader", "tserver_max_follower_lag"];
206
+ }, {
207
+ readonly title: "Master Server";
208
+ readonly name: "master";
209
+ readonly metrics: readonly ["master_overall_rpc_rate", "master_latency", "master_uptime_min", "master_memory", "master_get_tablet_location", "master_tsservice_reads", "master_tsservice_reads_latency", "master_tsservice_writes", "master_tsservice_writes_latency", "master_ts_heartbeats", "tserver_rpc_queue_size_master", "master_consensus_update", "master_consensus_update_latency", "master_multiraft_consensus_update", "master_multiraft_consensus_update_latency", "master_table_ops", "master_tablet_split_candidates", "master_cpu_util_secs", "master_yb_rpc_connections", "master_leaderless_and_underreplicated_tablets", "master_max_follower_lag", "master_load_balancer_stats"];
210
+ }, {
211
+ readonly title: "Master Server Advanced";
212
+ readonly name: "master_advanced";
213
+ readonly metrics: readonly ["master_threads_running", "master_log_latency", "master_log_bytes_written", "master_log_bytes_read", "master_tc_malloc_stats", "master_glog_info_messages", "master_lsm_rocksdb_seek_next_prev", "master_lsm_rocksdb_num_seeks_per_node", "master_lsm_rocksdb_total_sst_per_node", "master_lsm_rocksdb_avg_num_sst_per_node", "master_lsm_rocksdb_block_cache_hit_miss", "master_lsm_rocksdb_block_cache_usage", "master_lsm_rocksdb_blooms_checked_and_useful", "master_lsm_rocksdb_flush_size", "master_lsm_rocksdb_compaction", "master_lsm_rocksdb_compaction_numfiles", "master_lsm_rocksdb_compaction_time"];
214
+ }, {
215
+ readonly title: "DocDB";
216
+ readonly name: "lsmdb";
217
+ readonly metrics: readonly ["lsm_rocksdb_seek_next_prev", "lsm_rocksdb_total_sst_per_node", "lsm_rocksdb_avg_num_sst_per_node", "lsm_rocksdb_latencies_get", "lsm_rocksdb_latencies_write", "lsm_rocksdb_latencies_seek", "lsm_rocksdb_latencies_mutex", "lsm_rocksdb_block_cache_hit_miss", "lsm_rocksdb_block_cache_usage", "lsm_rocksdb_blooms_checked_and_useful", "lsm_rocksdb_stalls", "lsm_rocksdb_write_rejections", "lsm_rocksdb_memory_rejections", "lsm_rocksdb_flush_size", "lsm_rocksdb_compaction", "lsm_rocksdb_compaction_tasks", "lsm_rocksdb_compaction_time", "lsm_rocksdb_compaction_numfiles", "lsm_rocksdb_mem_tracker_db_memtable", "docdb_transaction", "docdb_transaction_pool_cache", "tablet_splitting_stats", "automatic_split_manager_time"];
218
+ }];
219
+ export declare const METRIC_K8S_RESOURCES_WITH_GRAPHS: readonly [{
220
+ readonly title: "YSQL";
221
+ readonly name: "ysql_ops";
222
+ readonly metrics: readonly ["ysql_server_rpc_per_second", "ysql_sql_latency", "ysql_connections", "ysql_connections_per_sec", "ysql_server_advanced_rpc_per_second", "ysql_sql_advanced_latency", "ysql_catalog_cache_misses", "ysql_conn_mgr_active_connections"];
223
+ }, {
224
+ readonly title: "YCQL";
225
+ readonly name: "ycql_ops";
226
+ readonly metrics: readonly ["cql_server_rpc_per_second", "cql_sql_latency", "cql_server_rpc_p99", "cql_sql_latency_breakdown", "cql_yb_local_vs_remote", "cql_yb_latency", "cql_reactor_latency", "tserver_rpc_queue_size_cql", "cql_response_sizes", "cql_yb_transaction", "cql_yb_rpc_connections"];
227
+ }, {
228
+ readonly title: "Container";
229
+ readonly name: "container";
230
+ readonly metrics: readonly ["container_cpu_usage", "container_memory_usage", "container_volume_stats", "container_volume_usage_percent"];
231
+ }, {
232
+ readonly title: "Tablet Server";
233
+ readonly name: "tserver";
234
+ readonly metrics: readonly ["tserver_rpcs_per_sec_per_node", "tserver_ops_latency", "tserver_handler_latency", "tserver_threads_running", "tserver_threads_started", "tserver_uptime_min", "tserver_memory", "tserver_consensus_rpcs_per_sec", "tserver_change_config", "tserver_remote_bootstraps", "tserver_consensus_rpcs_latency", "tserver_change_config_latency", "tserver_context_switches", "tserver_spinlock_server", "tserver_log_latency", "tserver_log_bytes_written", "tserver_log_bytes_read", "tserver_log_ops_second", "tserver_write_lock_latency", "tserver_tc_malloc_stats", "tserver_log_stats", "tserver_cache_reader_num_ops", "tserver_glog_info_messages", "tserver_rpc_queue_size_tserver", "tserver_cpu_util_secs", "tserver_yb_rpc_connections", "tserver_live_tablet_peers", "raft_leader", "tserver_max_follower_lag"];
235
+ }, {
236
+ readonly title: "Master Server";
237
+ readonly name: "master";
238
+ readonly metrics: readonly ["master_overall_rpc_rate", "master_latency", "master_uptime_min", "master_memory", "master_get_tablet_location", "master_tsservice_reads", "master_tsservice_reads_latency", "master_tsservice_writes", "master_tsservice_writes_latency", "master_ts_heartbeats", "tserver_rpc_queue_size_master", "master_consensus_update", "master_consensus_update_latency", "master_multiraft_consensus_update", "master_multiraft_consensus_update_latency", "master_table_ops", "master_tablet_split_candidates", "master_cpu_util_secs", "master_yb_rpc_connections", "master_leaderless_and_underreplicated_tablets", "master_max_follower_lag", "master_load_balancer_stats"];
239
+ }, {
240
+ readonly title: "Master Server Advanced";
241
+ readonly name: "master_advanced";
242
+ readonly metrics: readonly ["master_threads_running", "master_log_latency", "master_log_bytes_written", "master_log_bytes_read", "master_tc_malloc_stats", "master_glog_info_messages", "master_lsm_rocksdb_seek_next_prev", "master_lsm_rocksdb_num_seeks_per_node", "master_lsm_rocksdb_total_sst_per_node", "master_lsm_rocksdb_avg_num_sst_per_node", "master_lsm_rocksdb_block_cache_hit_miss", "master_lsm_rocksdb_block_cache_usage", "master_lsm_rocksdb_blooms_checked_and_useful", "master_lsm_rocksdb_flush_size", "master_lsm_rocksdb_compaction", "master_lsm_rocksdb_compaction_numfiles", "master_lsm_rocksdb_compaction_time"];
243
+ }, {
244
+ readonly title: "DocDB";
245
+ readonly name: "lsmdb";
246
+ readonly metrics: readonly ["lsm_rocksdb_seek_next_prev", "lsm_rocksdb_total_sst_per_node", "lsm_rocksdb_avg_num_sst_per_node", "lsm_rocksdb_latencies_get", "lsm_rocksdb_latencies_write", "lsm_rocksdb_latencies_seek", "lsm_rocksdb_latencies_mutex", "lsm_rocksdb_block_cache_hit_miss", "lsm_rocksdb_block_cache_usage", "lsm_rocksdb_blooms_checked_and_useful", "lsm_rocksdb_stalls", "lsm_rocksdb_write_rejections", "lsm_rocksdb_memory_rejections", "lsm_rocksdb_flush_size", "lsm_rocksdb_compaction", "lsm_rocksdb_compaction_tasks", "lsm_rocksdb_compaction_time", "lsm_rocksdb_compaction_numfiles", "lsm_rocksdb_mem_tracker_db_memtable", "docdb_transaction", "docdb_transaction_pool_cache", "tablet_splitting_stats", "automatic_split_manager_time"];
247
+ }];
248
+ export declare const METRIC_TABS: ("ysql_ops" | "ycql_ops" | "server" | "per_process" | "disk_io" | "tserver" | "master" | "master_advanced" | "lsmdb")[];
249
+ export declare const METRIC_TABS_K8S: ("container" | "ysql_ops" | "ycql_ops" | "tserver" | "master" | "master_advanced" | "lsmdb")[];
250
+ export declare const RCA_GANT_CHART = "gant-chart-anomalies";
251
+ export declare const METRIC_NAMES: {
252
+ ysql_server_rpc_per_second: string;
253
+ ysql_sql_latency: string;
254
+ ysql_connections: string;
255
+ ysql_connections_per_sec: string;
256
+ ysql_server_advanced_rpc_per_second: string;
257
+ ysql_sql_advanced_latency: string;
258
+ ysql_catalog_cache_misses: string;
259
+ ysql_conn_mgr_active_connections: string;
260
+ cql_server_rpc_per_second: string;
261
+ cql_sql_latency: string;
262
+ cql_server_rpc_p99: string;
263
+ cql_sql_latency_breakdown: string;
264
+ cql_yb_local_vs_remote: string;
265
+ cql_yb_latency: string;
266
+ cql_reactor_latency: string;
267
+ tserver_rpc_queue_size_cql: string;
268
+ response_sizes: string;
269
+ cql_yb_transaction: string;
270
+ cql_yb_rpc_connections: string;
271
+ cpu_usage: string;
272
+ memory_usage: string;
273
+ disk_iops: string;
274
+ disk_usage_percent: string;
275
+ disk_used_size_total: string;
276
+ disk_volume_usage_percent: string;
277
+ disk_volume_used: string;
278
+ disk_bytes_per_second_per_node: string;
279
+ disk_io_time: string;
280
+ disk_io_queue_depth: string;
281
+ disk_io_read_latency: string;
282
+ disk_io_write_latency: string;
283
+ network_packets: string;
284
+ network_bytes: string;
285
+ network_errors: string;
286
+ system_load_over_time: string;
287
+ node_clock_skew: string;
288
+ container_cpu_usage: string;
289
+ container_memory_usage: string;
290
+ container_volume_stats: string;
291
+ container_volume_usage_percent: string;
292
+ process_user_cpu_seconds: string;
293
+ process_system_cpu_seconds: string;
294
+ process_virtual_memory: string;
295
+ process_resident_memory: string;
296
+ process_proportional_memory: string;
297
+ process_io_read: string;
298
+ process_io_write: string;
299
+ process_open_files: string;
300
+ tserver_rpcs_per_sec_per_node: string;
301
+ tserver_ops_latency: string;
302
+ tserver_handler_latency: string;
303
+ tserver_threads_running: string;
304
+ tserver_threads_started: string;
305
+ tserver_uptime_min: string;
306
+ tserver_memory: string;
307
+ tserver_consensus_rpcs_per_sec: string;
308
+ tserver_change_config: string;
309
+ tserver_remote_bootstraps: string;
310
+ tserver_consensus_rpcs_latency: string;
311
+ tserver_change_config_latency: string;
312
+ tserver_context_switches: string;
313
+ tserver_spinlock_server: string;
314
+ tserver_log_latency: string;
315
+ tserver_log_bytes_written: string;
316
+ tserver_log_bytes_read: string;
317
+ tserver_log_ops_second: string;
318
+ tserver_write_lock_latency: string;
319
+ tserver_tc_malloc_stats: string;
320
+ tserver_log_stats: string;
321
+ tserver_cache_reader_num_ops: string;
322
+ tserver_glog_info_messages: string;
323
+ tserver_rpc_queue_size_tserver: string;
324
+ tserver_cpu_util_secs: string;
325
+ tserver_yb_rpc_connections: string;
326
+ tserver_live_tablet_peers: string;
327
+ raft_leader: string;
328
+ tserver_max_follower_lag: string;
329
+ master_overall_rpc_rate: string;
330
+ master_latency: string;
331
+ master_uptime_min: string;
332
+ master_memory: string;
333
+ master_get_tablet_location: string;
334
+ master_tsservice_reads: string;
335
+ master_tsservice_reads_latency: string;
336
+ master_tsservice_writes: string;
337
+ master_tsservice_writes_latency: string;
338
+ master_ts_heartbeats: string;
339
+ tserver_rpc_queue_size_master: string;
340
+ master_consensus_update: string;
341
+ master_consensus_update_latency: string;
342
+ master_multiraft_consensus_update: string;
343
+ master_multiraft_consensus_update_latency: string;
344
+ master_table_ops: string;
345
+ master_cpu_util_secs: string;
346
+ master_yb_rpc_connections: string;
347
+ master_leaderless_and_underreplicated_tablets: string;
348
+ master_max_follower_lag: string;
349
+ master_load_balancer_stats: string;
350
+ master_threads_running: string;
351
+ master_log_latency: string;
352
+ master_log_bytes_written: string;
353
+ master_log_bytes_read: string;
354
+ master_tc_malloc_stats: string;
355
+ master_glog_info_messages: string;
356
+ master_lsm_rocksdb_seek_next_prev: string;
357
+ master_lsm_rocksdb_num_seeks_per_node: string;
358
+ master_lsm_rocksdb_total_sst_per_node: string;
359
+ master_lsm_rocksdb_avg_num_sst_per_node: string;
360
+ master_lsm_rocksdb_block_cache_hit_miss: string;
361
+ master_lsm_rocksdb_block_cache_usage: string;
362
+ master_lsm_rocksdb_blooms_checked_and_useful: string;
363
+ master_lsm_rocksdb_flush_size: string;
364
+ master_lsm_rocksdb_compaction: string;
365
+ master_lsm_rocksdb_compaction_numfiles: string;
366
+ master_lsm_rocksdb_compaction_time: string;
367
+ lsm_rocksdb_seek_next_prev: string;
368
+ lsm_rocksdb_total_sst_per_node: string;
369
+ lsm_rocksdb_avg_num_sst_per_node: string;
370
+ lsm_rocksdb_latencies_get: string;
371
+ lsm_rocksdb_latencies_write: string;
372
+ lsm_rocksdb_latencies_seek: string;
373
+ lsm_rocksdb_latencies_mutex: string;
374
+ lsm_rocksdb_block_cache_hit_miss: string;
375
+ lsm_rocksdb_block_cache_usage: string;
376
+ lsm_rocksdb_blooms_checked_and_useful: string;
377
+ lsm_rocksdb_stalls: string;
378
+ lsm_rocksdb_write_rejections: string;
379
+ lsm_rocksdb_memory_rejections: string;
380
+ lsm_rocksdb_flush_size: string;
381
+ lsm_rocksdb_compaction: string;
382
+ lsm_rocksdb_compaction_tasks: string;
383
+ lsm_rocksdb_compaction_time: string;
384
+ lsm_rocksdb_compaction_numfiles: string;
385
+ lsm_rocksdb_mem_tracker_db_memtable: string;
386
+ docdb_transaction: string;
387
+ docdb_transaction_pool_cache: string;
388
+ tablet_splitting_stats: string;
389
+ automatic_split_manager_time: string;
390
+ table_read_latency: string;
391
+ table_read_rps: string;
392
+ table_write_latency: string;
393
+ table_write_rps: string;
394
+ table_log_latency: string;
395
+ table_log_ops_second: string;
396
+ table_log_bytes_written: string;
397
+ table_write_lock_latency: string;
398
+ table_seek_next_prev: string;
399
+ table_ops_in_flight: string;
400
+ table_write_rejections: string;
401
+ table_memory_rejections: string;
402
+ table_compaction: string;
403
+ table_block_cache_hit_miss: string;
404
+ table_rocksdb_blooms_checked_and_useful: string;
405
+ table_mem_tracker_db_memtable: string;
406
+ };
407
+ export declare const METRICS_SESSION_STORAGE_KEY = "METRICS_NAMES";
408
+ export declare const METRICS_K8S_SESSION_STORAGE_KEY = "METRICS_K8S_NAMES";
409
+ export declare const METRICS_OUTLIER_TABLES_STORAGE_KEY = "METRICS_OUTLIER_TABLES_NAMES";
410
+ export declare const METRICS_OUTLIER_DATABASES_STORAGE_KEY = "METRICS_OUTLIER_DATABASES_NAMES";
411
+ export declare const COLORS: string[];
412
+ export declare const CHART_COLORS: {
413
+ readonly TEXT_PRIMARY: "#0B1117";
414
+ readonly TEXT_SECONDARY: "#6D7C88";
415
+ readonly AXIS_LINE: "#E0E6F1";
416
+ readonly BORDER: "#E9EEF2";
417
+ readonly TOOLTIP_BORDER: "#D7DEE4";
418
+ readonly CPU_LINE: "#888888";
419
+ readonly THRESHOLD_LINE: "#DA1515";
420
+ readonly NO_DATA_LINE: "#cccccc";
421
+ readonly WHITE: "#FFFFFF";
422
+ readonly BLACK: "#000000";
423
+ };
424
+ export declare const NAME_COLOR_MAPPING: {
425
+ [key: string]: string;
426
+ };
427
+ export declare const TOOLTIP_TEXT: {
428
+ WAIT_EVENT_TYPE_CHART_TOOLTIP: string;
429
+ WAIT_EVENT_CHART_TOOLTIP: string;
430
+ ACTIVE_SESSIONS_PER_SECOND_TOOLTIP: string;
431
+ SST_SIZE_TOOLTIP: string;
432
+ WAL_SIZE_TOOLTIP: string;
433
+ PARTITION_TOOLTIP: string;
434
+ SIZE_TOOLTIP: string;
435
+ TABLET_ID_TOOLTIP: string;
436
+ DATABASE_TYPE_TOOLTIP: string;
437
+ LEADER_NODE_TOOLTIP: string;
438
+ FOLLOWER_NODES_TOOLTIP: string;
439
+ EPS_TOOLTIP: string;
440
+ TOTAL_EPS_RATIO_TABLET_TOOLTIP: string;
441
+ TOTAL_EPS_RATIO_QUERY_LEVEL_TABLET_TOOLTIP: string;
442
+ DATABASE_NAME_TOOLTIP: string;
443
+ SCHEMA_NAME_TOOLTIP: string;
444
+ TABLE_NAME_TOOLTIP: string;
445
+ UNIVERSE_ID_TOOLTIP: string;
446
+ NODE_NAME_TOOLTIP: string;
447
+ NODE_REGION_ZONE_TOOLTIP: string;
448
+ CONNECTIONS_TOOLTIP: string;
449
+ TOTAL_EPS_RATIO_NODE_TOOLTIP: string;
450
+ EPS_NODE_TOOLTIP: string;
451
+ EVENTS_NODE_TOOLTIP: string;
452
+ RPS_NODE_TOOLTIP: string;
453
+ TOTAL_EPS_RATIO_QUERY_TOOLTIP: string;
454
+ FIRST_ACTIVE_TIME_TOOLTIP: string;
455
+ LAST_ACTIVE_TIME_TOOLTIP: string;
456
+ AVG_LATENCY_TOOLTIP: string;
457
+ LATENCY_P90_TOOLTIP: string;
458
+ LATENCY_P99_TOOLTIP: string;
459
+ QUERY_TYPE_TOOLTIP: string;
460
+ TOTAL_TIME_TOOLTIP: string;
461
+ ROWS_AVG_TOOLTIP: string;
462
+ RPS_TOOLTIP: string;
463
+ ACTIVE_SESSIONS_PER_SECOND_QUERY_TOOLTIP: string;
464
+ EVENTS_QUERY_TOOLTIP: string;
465
+ EVENTS_QUERY_EVENT_TOOLTIP: string;
466
+ QUERY_TEXT_TOOLTIP: string;
467
+ QUERY_ID_TOOLTIP: string;
468
+ DELETED_TABLET_TOOLTIP: string;
469
+ };
470
+ export declare const HISTORICAL_QUERY_DATA_LABELS: {
471
+ DB_ID: string;
472
+ TOTAL_EPS_RATIO: string;
473
+ EPS: string;
474
+ EVENTS: string;
475
+ EVENTS_NAME: string;
476
+ FIRST_ACTIVE_TIME: string;
477
+ LAST_ACTIVE_TIME: string;
478
+ AVG_LATENCY: string;
479
+ LATENCY_P90: string;
480
+ LATENCY_P99: string;
481
+ NAMESPACE_NAME: string;
482
+ QUERY: string;
483
+ QUERY_ID: string;
484
+ QUERY_TYPE: string;
485
+ ROWS_AVG: string;
486
+ RPS: string;
487
+ TOTAL_TIME: string;
488
+ UNIVERSE_ID: string;
489
+ };
490
+ export declare const ADD_COLUMNS_BUTTON_TEXT = "Add Columns";
491
+ export declare const DEFAULT_ERROR_MESSAGES: {
492
+ UNIVERSE_PA_STATUS_ERROR: string;
493
+ UNIVERSE_DETAILS_ERROR: string;
494
+ NODE_REGION_ZONE_DETAILS_ERROR: string;
495
+ ANOMALIES_FETCH_ERROR: string;
496
+ SHOW_MORE_ANOMALIES_FETCH_ERROR: string;
497
+ ANOMALY_SCHEDULE_ERROR: string;
498
+ RUNTIME_CONFIGS_ERROR: string;
499
+ RCA_GRAPHS_FETCH_ERROR: string;
500
+ GANTCHART_FETCH_ERROR: string;
501
+ QUERIES_GRAPHS_FETCH_ERROR: string;
502
+ METRICS_GRAPHS_FETCH_ERROR: string;
503
+ HISTORICAL_QUERY_DATA_FETCH_ERROR: string;
504
+ TABLETS_DATA_FETCH_ERROR: string;
505
+ NODE_LOAD_DATA_FETCH_ERROR: string;
506
+ CLUSTER_LOAD_FETCH_ERROR: string;
507
+ QUERY_STATS_FETCH_ERROR: string;
508
+ DB_STATS_FETCH_ERROR: string;
509
+ };
510
+ export declare const VISIBLE_QUERY_METADATA_COLUMNS = "visibleQueryMetadataColumns";
511
+ export declare const VISIBLE_DB_LOAD_METADATA_COLUMNS = "visibleDbLoadMetadataColumns";
512
+ export declare const VISIBLE_DB_CPU_METADATA_COLUMNS = "visibleDbCPUMetadataColumns";
513
+ export declare const VISIBLE_TABLETS_METADATA_COLUMNS = "visibleTabletsMetadataColumns";
514
+ export declare const VISIBLE_TABLET_DRILLDOWN_METADATA_COLUMNS = "visibleTabletDrilldownMetadataColumns";
515
+ export declare const VISIBLE_NODE_LOAD_METADATA_COLUMNS = "visibleNodeLoadMetadataColumns";
516
+ export declare const CPU_TEXT = "CPU";
517
+ export declare const IO_TEXT = "IO";
518
+ /** Light red fill for last anomaly instance when its interval overlaps the visible graph range. */
519
+ export declare const ANOMALY_MARK_AREA_STYLE: {
520
+ silent: boolean;
521
+ itemStyle: {
522
+ color: string;
523
+ borderColor: string;
524
+ borderWidth: number;
525
+ };
526
+ label: {
527
+ show: boolean;
528
+ formatter: string;
529
+ fontWeight: string;
530
+ fontSize: number;
531
+ position: string;
532
+ color: string;
533
+ };
534
+ };
535
+ export declare const CATEGORY_DISPLAY_NAMES: Record<string, string>;
536
+ export declare const DB_WAIT_EVENT_TYPE_OPTIONS: ReadonlyArray<{
537
+ value: DbWaitEventType;
538
+ label: string;
539
+ }>;
540
+ export declare const CHART_TYPE_OPTIONS: {
541
+ value: ChartType;
542
+ label: string;
543
+ }[];
@@ -0,0 +1,45 @@
1
+ import { FC } from 'react';
2
+ import { AppName } from './dtos';
3
+ /**
4
+ * Get the default timezone (UTC). Used when timezone prop is null.
5
+ */
6
+ export declare const getDefaultTimezone: (appName?: AppName) => string;
7
+ /**
8
+ * Get the actual browser/system timezone (e.g. America/New_York).
9
+ * Used for date picker conversion logic - the picker returns dates in this timezone.
10
+ */
11
+ export declare const getBrowserTimezone: (appName?: AppName) => string;
12
+ export declare const getTimezonesForAutocomplete: () => Record<string, string>[];
13
+ /**
14
+ * Parse a date string or Date in a given timezone and return UTC Date.
15
+ * The date picker returns dates in the browser's local timezone. When the user has
16
+ * selected a different display timezone, we need to interpret the picker's local
17
+ * components (year, month, day, hour, minute) as being in the display timezone.
18
+ * Uses format() which extracts local components, then zonedTimeToUtc to interpret
19
+ * those components in the target timezone.
20
+ */
21
+ export declare const parseDateTimeInTimezone: (date: Date | string, timezone: string) => Date;
22
+ export declare const YBTimeFormats: {
23
+ readonly YB_DEFAULT_TIMESTAMP: "MMM-DD-yyyy HH:mm:ss [UTC]XXX";
24
+ readonly YB_DATE_ONLY_TIMESTAMP: "MMM-dd-yyyy";
25
+ readonly YB_HOURS_FIRST_TIMESTAMP: "HH:mm:ss MMM-dd-yyyy [UTC]XXX";
26
+ readonly YB_ISO8601_TIMESTAMP: "yyyy-MM-dd'T'HH:mm:ssXXX";
27
+ readonly YB_TIME_ONLY_TIMESTAMP: "HH:mm:ss";
28
+ readonly YB_DATE_TIME_TIMESTAMP: "yyyy-MM-dd'T'HH:mm";
29
+ };
30
+ export type YBTimeFormats = typeof YBTimeFormats[keyof typeof YBTimeFormats];
31
+ export declare function timeFormatterISO8601(cell: any, format?: YBTimeFormats): string;
32
+ type FormatDateProps = {
33
+ date: Date | string | number;
34
+ timeFormat: YBTimeFormats;
35
+ };
36
+ export declare const ybFormatDate: (date: Date | string | number, timeFormat?: "MMM-DD-yyyy HH:mm:ss [UTC]XXX") => JSX.Element;
37
+ export declare const formatDatetime: (date: Date | number | string, timeFormat?: YBTimeFormats, timezone?: string) => string;
38
+ /** e.g. 2024-01-18T11:00:00Z -> "Jan 18, 2024 at 11:00 UTC" */
39
+ export declare const formatDateTimeUtc: (isoOrDate: string | Date, timezone?: string) => string;
40
+ export declare const YBFormatDate: FC<FormatDateProps>;
41
+ export declare const getDiffMinutes: (startDateTime: any, endDateTime: any) => number;
42
+ export declare const getDiffDays: (startDateTime: any, endDateTime: any) => number;
43
+ export declare const setTimezoneInUrl: (tz: string) => void;
44
+ export declare const removeTimezoneFromUrl: () => void;
45
+ export {};