@yugabytedb/perf-advisor-ui 1.0.159 → 1.0.161

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.
@@ -164,6 +164,8 @@ export declare const DB_TAG = "Database";
164
164
  export declare const USER_TAG = "User";
165
165
  export declare const TABLE_TAG = "TABLE";
166
166
  export declare const INDEX_TAG = "INDEX";
167
+ /** For a physical relation that could be either a table or an index, and is not resolved as either. */
168
+ export declare const RELATION_TAG = "RELATION";
167
169
  export declare const TABLET_TAG = "Tablet Id";
168
170
  export declare const TABLET_ID_TAG = "TABLET ID";
169
171
  export declare const ANOMALY_TAG = "ANOMALY";
@@ -1,5 +1,22 @@
1
1
  import { FC } from 'react';
2
2
  import { AppName } from './dtos';
3
+ /** Pad applied to each side of a clicked bar's range when drilling down. */
4
+ export declare const BAR_DRILLDOWN_BUFFER_MIN_MS: number;
5
+ /**
6
+ * Overwrite startTime/endTime/duration on `params` to scope a drilldown to a clicked
7
+ * Gantt bar:
8
+ *
9
+ * - Pads the bar by max(BAR_DRILLDOWN_BUFFER_MIN_MS, 10% of its duration).
10
+ * - Keeps the window within the page's [pageStartTime, pageEndTime]. The page end is
11
+ * "now" on every preset, so an unbounded pad would reach into the future.
12
+ * - Clamps the bar to that window before sizing the pad, so a long anomaly is padded by
13
+ * 10% of what is visible rather than 10% of its full duration.
14
+ * - Sets duration=CUSTOM to pin the drilldown to this exact window.
15
+ */
16
+ export declare const applyBarDrilldownRange: (params: URLSearchParams, item: {
17
+ start: Date;
18
+ end: Date;
19
+ }, pageStartTime?: Date | string | null, pageEndTime?: Date | string | null) => void;
3
20
  /**
4
21
  * Get the default timezone (UTC). Used when timezone prop is null.
5
22
  */
@@ -532,6 +532,24 @@ export interface TablePagedResponse {
532
532
  hasPrev: boolean;
533
533
  totalCount: number;
534
534
  }
535
+ export interface MaterializedViewMetadataId {
536
+ universeId: string;
537
+ namespaceName: string;
538
+ schemaName: string;
539
+ materializedViewName: string;
540
+ }
541
+ export interface MaterializedViewResponseMetadata {
542
+ id: MaterializedViewMetadataId;
543
+ materializedViewId?: number;
544
+ definition?: string;
545
+ updated?: string;
546
+ }
547
+ export interface MaterializedViewPagedResponse {
548
+ entities: MaterializedViewResponseMetadata[];
549
+ hasNext: boolean;
550
+ hasPrev: boolean;
551
+ totalCount: number;
552
+ }
535
553
  export interface UniverseDatabaseStatsData {
536
554
  connections: number;
537
555
  cpuRatio: number;
@@ -551,6 +569,12 @@ export declare enum DatabaseType {
551
569
  CQL = "CQL",
552
570
  SYSTEM = "SYSTEM"
553
571
  }
572
+ export declare enum ResolvedRelationType {
573
+ TABLE = "TABLE",
574
+ INDEX = "INDEX",
575
+ MATERIALIZED_VIEW = "MATERIALIZED_VIEW",
576
+ UNKNOWN = "UNKNOWN"
577
+ }
554
578
  export interface RowItemClasses {
555
579
  rowTableCell: string;
556
580
  queryTableCell: string;
@@ -850,7 +874,11 @@ export interface TabletResponseMetadata {
850
874
  events: QueryEvents[];
851
875
  size: string;
852
876
  schemaName: string;
853
- tableName: string;
877
+ physicalRelationName: string;
878
+ tableName?: string;
879
+ indexName?: string;
880
+ materializedViewName?: string;
881
+ resolvedRelationType?: ResolvedRelationType;
854
882
  tabletId: string;
855
883
  universeId: string;
856
884
  totalEpsRatio: number;
@@ -866,7 +894,11 @@ export interface TransformedTabletsData {
866
894
  eps: number;
867
895
  events: QueryEvents[];
868
896
  schemaName: string;
869
- tableName: string;
897
+ physicalRelationName: string;
898
+ tableName?: string;
899
+ indexName?: string;
900
+ materializedViewName?: string;
901
+ resolvedRelationType?: ResolvedRelationType;
870
902
  tabletId: string;
871
903
  universeId: string;
872
904
  totalEpsRatio: number;
@@ -267,6 +267,20 @@ export type ProcessedQueryPlan = QueryPlanEntry & {
267
267
  export declare function processQPMData(plans: QueryPlanEntry[]): ProcessedQueryPlan[];
268
268
  export declare const formatPlanDate: (iso: string, displayTimezone?: string) => string;
269
269
  export declare const formatNumberTo2Decimals: (value: unknown) => string;
270
+ /**
271
+ * Formats an EPS / AAS ("Avg Active Context") value for display. Small non-zero
272
+ * values that round to "0.00" at 2 decimal places,
273
+ * surface them as "<0.01" instead. Exact zero keeps "0.00".
274
+ */
275
+ export declare const formatEps: (value: unknown) => string;
276
+ export declare const formatCallsPerSec: (value: unknown) => string;
277
+ export declare const formatConnections: (value: unknown) => string;
278
+ /**
279
+ * Formats a load ratio (0-1) as a percentage. Small non-zero ratios that round
280
+ * to "0.00%" at 2 decimal places are surfaced as "<0.01%" instead. Exact zero
281
+ * keeps "0.00%".
282
+ */
283
+ export declare const formatLoadPercentFromRatio: (value: unknown) => string;
270
284
  export interface BuildQueryDrilldownUrlParams {
271
285
  basePath: string;
272
286
  baseSearch: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",