@yugabytedb/perf-advisor-ui 1.0.171 → 1.0.173

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";
@@ -10,6 +10,7 @@ export interface Universe {
10
10
  qpmSupported?: boolean;
11
11
  qpmBindVariablesEnabled?: boolean;
12
12
  qpmBindVariablesSupported?: boolean;
13
+ ashPlanIdSupported?: boolean;
13
14
  kubernetes?: boolean;
14
15
  resources: Resources;
15
16
  universeConfig: UniverseConfig;
@@ -230,6 +231,7 @@ export declare enum WaitEventClassification {
230
231
  WAIT_EVENT = "waitEvent",
231
232
  CLIENT_NODE_IP = "clientNodeIp",
232
233
  QUERY_ID = "queryId",
234
+ PLAN_ID = "planId",
233
235
  TABLET_ID = "tabletId",
234
236
  DB_ID = "dbId"
235
237
  }
@@ -246,6 +248,7 @@ export interface AggregatedLineSettings {
246
248
  export interface GraphFilters {
247
249
  universeUuid: string[];
248
250
  queryId?: string[];
251
+ planId?: string[];
249
252
  userId?: string[];
250
253
  dbId?: string[];
251
254
  tableId?: string[];
@@ -691,15 +694,6 @@ export interface AnomalyGroup {
691
694
  lastInstance: AnomalyInstance;
692
695
  anomalyIntervals: Interval[];
693
696
  }
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
697
  export interface AnomalyDetails {
704
698
  groups: AnomalyGroup[];
705
699
  hasMore: boolean;
@@ -712,7 +706,7 @@ export interface AnomalyResponse {
712
706
  }
713
707
  export interface BackgroundTask {
714
708
  description: string;
715
- endTime: string;
709
+ endTime: string | null;
716
710
  startTime: string;
717
711
  type: string;
718
712
  universeUuid: string;
@@ -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.171",
3
+ "version": "1.0.173",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",