@yugabytedb/perf-advisor-ui 1.0.172 → 1.0.175

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.
@@ -21,6 +21,7 @@ export declare const ACTIVE_SESSION_HISTORY_EPS_GLOBAL = "active_session_history
21
21
  export declare const ACTIVE_SESSION_HISTORY_SYSTEM_LOAD = "active_session_history_system_load";
22
22
  export declare const ACTIVE_SESSION_HISTORY_QUERY_EVENTS = "active_session_history_query_events";
23
23
  export declare const ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE = "active_session_history_eps_client_node";
24
+ export declare const ACTIVE_SESSION_HISTORY_EPS_PLAN = "active_session_history_eps_plan";
24
25
  export declare const CPU_COUNT = "cpu_count";
25
26
  export declare const K8S_CPU_REQUESTS = "container_cpu_request";
26
27
  export declare const CPU_USAGE_BY_DATABASE = "cpu_usage_by_database";
@@ -80,6 +81,7 @@ export declare const SQL_QUERY_READ_WRITES_REQUEST_GRAPHS: string[];
80
81
  export declare const SQL_QUERY_ROWS_REQUEST_GRAPHS: string[];
81
82
  export declare const SQL_QUERY_RETRIES_REQUEST_GRAPHS: string[];
82
83
  export declare const SQL_QUERY_WAIT_TIMES_REQUEST_GRAPHS: string[];
84
+ export declare const SQL_QUERY_DOCDB_METRICS_REQUEST_GRAPHS: string[];
83
85
  export interface SqlDrilldownTabConfig {
84
86
  /** Enum value used as both the tab ID and the display label. */
85
87
  id: SqlDrilldownTabs;
@@ -90,6 +92,8 @@ export interface SqlDrilldownTabConfig {
90
92
  export declare const SQL_DRILLDOWN_BASE_TABS: readonly SqlDrilldownTabConfig[];
91
93
  /** Tabs gated by the PGSS RPC stats feature (UI flag + per-universe enabled/supported). */
92
94
  export declare const SQL_DRILLDOWN_PGSS_RPC_TABS: readonly SqlDrilldownTabConfig[];
95
+ /** Tabs gated by the PGSS DocDB metrics feature, which has its own gflag and version floors. */
96
+ export declare const SQL_DRILLDOWN_PGSS_DOCDB_TABS: readonly SqlDrilldownTabConfig[];
93
97
  export declare const unionGraphNamesForTabs: (tabs: readonly SqlDrilldownTabConfig[]) => string[];
94
98
  export declare const CQL_QUERY_REQUEST_GRAPHS: string[];
95
99
  export declare const CQL_DRILLDOWN_BASE_TABS: readonly SqlDrilldownTabConfig[];
@@ -6,10 +6,13 @@ export interface Universe {
6
6
  ashSupported: boolean;
7
7
  isPgssRpcStatsEnabled?: boolean;
8
8
  isPgssRpcStatsSupported?: boolean;
9
+ isPgssDocdbMetricsEnabled?: boolean;
10
+ isPgssDocdbMetricsSupported?: boolean;
9
11
  qpmEnabled?: boolean;
10
12
  qpmSupported?: boolean;
11
13
  qpmBindVariablesEnabled?: boolean;
12
14
  qpmBindVariablesSupported?: boolean;
15
+ ashPlanIdSupported?: boolean;
13
16
  kubernetes?: boolean;
14
17
  resources: Resources;
15
18
  universeConfig: UniverseConfig;
@@ -230,6 +233,7 @@ export declare enum WaitEventClassification {
230
233
  WAIT_EVENT = "waitEvent",
231
234
  CLIENT_NODE_IP = "clientNodeIp",
232
235
  QUERY_ID = "queryId",
236
+ PLAN_ID = "planId",
233
237
  TABLET_ID = "tabletId",
234
238
  DB_ID = "dbId"
235
239
  }
@@ -246,6 +250,7 @@ export interface AggregatedLineSettings {
246
250
  export interface GraphFilters {
247
251
  universeUuid: string[];
248
252
  queryId?: string[];
253
+ planId?: string[];
249
254
  userId?: string[];
250
255
  dbId?: string[];
251
256
  tableId?: string[];
@@ -691,15 +696,6 @@ export interface AnomalyGroup {
691
696
  lastInstance: AnomalyInstance;
692
697
  anomalyIntervals: Interval[];
693
698
  }
694
- export interface FormattedAnomalyRca {
695
- cause: string;
696
- name: string[];
697
- title: string;
698
- groupByControl: boolean[];
699
- description: string;
700
- index: number[];
701
- rcaRecommendation?: string;
702
- }
703
699
  export interface AnomalyDetails {
704
700
  groups: AnomalyGroup[];
705
701
  hasMore: boolean;
@@ -712,7 +708,7 @@ export interface AnomalyResponse {
712
708
  }
713
709
  export interface BackgroundTask {
714
710
  description: string;
715
- endTime: string;
711
+ endTime: string | null;
716
712
  startTime: string;
717
713
  type: string;
718
714
  universeUuid: string;
@@ -761,7 +757,8 @@ export declare enum SqlDrilldownTabs {
761
757
  RETRIES = "Retries",
762
758
  READ_WRITES = "Reads/Writes",
763
759
  WAIT_TIMES = "Wait Times",
764
- ROWS = "Rows"
760
+ ROWS = "Rows",
761
+ DOCDB_METRICS = "DocDB Metrics"
765
762
  }
766
763
  export declare enum ClusterLoadSubTabs {
767
764
  OVERALL_LOAD = "Overall Load",
@@ -980,6 +977,7 @@ export interface PaFeatureRuntimeConfigs {
980
977
  showExplainPlan?: boolean;
981
978
  showSchema?: boolean;
982
979
  showPgssRpcStats?: boolean;
980
+ showPgssDocdbMetrics?: boolean;
983
981
  showQueriesExport?: boolean;
984
982
  }
985
983
  export interface AnomalyPossibleCauseData {
@@ -0,0 +1,12 @@
1
+ import { AppName } from './dtos';
2
+ export declare const MIN_PLAN_LOAD_DB_VERSION = "2025.2.4.0-b0";
3
+ export interface PlanLoadDisabledReason {
4
+ title: string;
5
+ instruction: string;
6
+ }
7
+ export declare const PLAN_LOAD_CHART_TITLE = "Activity By Plan";
8
+ export declare const getPlanLoadText: (appName: AppName) => {
9
+ chartTitle: string;
10
+ noData: string;
11
+ };
12
+ export declare const getPlanLoadDisabledReason: (ashPlanIdSupported: boolean, ashEnabled: boolean, qpmEnabled: boolean, appName: AppName) => PlanLoadDisabledReason | null;
@@ -60,7 +60,6 @@ export declare const formatAnomalyMainGraphs: (anomalyData: AnomalyGroup) => {
60
60
  groupByControl: boolean;
61
61
  displayName: string | undefined;
62
62
  }[];
63
- export declare const formatAnomalyRca: (anomalyData: Anomaly) => any[];
64
63
  export declare const getAshOperations: (metricData: any, graphPayload: any, isAdvancedView: boolean) => any;
65
64
  export declare const getOperations: (metricMeasure: string, metricData: any, graphType: GraphType, shouldShowGroupbyOperations: boolean, graphPayload: any, isAdvancedView?: boolean) => {
66
65
  uniqueOperations: any;
@@ -268,6 +267,7 @@ export type ProcessedQueryPlan = QueryPlanEntry & {
268
267
  export declare function processQPMData(plans: QueryPlanEntry[]): ProcessedQueryPlan[];
269
268
  export declare const formatPlanDate: (iso: string, displayTimezone?: string) => string;
270
269
  export declare const formatNumberTo2Decimals: (value: unknown) => string;
270
+ export declare const hasEstCost: (value: unknown) => value is number;
271
271
  /**
272
272
  * Formats an EPS / AAS ("Avg Active Context") value for display. Small non-zero
273
273
  * values that round to "0.00" at 2 decimal places,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.172",
3
+ "version": "1.0.175",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",