@yugabytedb/perf-advisor-ui 1.0.15 → 1.0.17

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.
package/dist/types.d.ts CHANGED
@@ -647,16 +647,20 @@ interface YBButtonProps extends Omit<MUIButtonProps, 'variant' | 'color' | 'clas
647
647
  declare const YBButton: FC<YBButtonProps>;
648
648
 
649
649
  interface CodeBlockProps$1 {
650
- analyticsEventOnCopy?: string;
651
- analyticsEventProps?: Record<string, string>;
652
650
  showCopyButton?: boolean;
653
651
  multiBlock?: boolean;
654
652
  codeClassName?: string;
655
653
  preClassName?: string;
656
- lang?: 'sql' | 'plaintext';
654
+ lang?: string;
657
655
  containerClassName?: string;
658
656
  text: string | string[] | React$1.ReactElement | React$1.ReactElement[];
659
657
  dataTestId?: string;
658
+ enabledExpandCollapse?: boolean;
659
+ collapseHeight?: number;
660
+ copyLabel?: string;
661
+ showAllLabel?: string;
662
+ collapseLabel?: string;
663
+ onCopySuccess?: () => void;
660
664
  }
661
665
  declare const YBCodeBlock: FC<CodeBlockProps$1>;
662
666
 
@@ -677,7 +681,7 @@ interface CodeBlockProps {
677
681
  }
678
682
  declare const YBCodeBlockCopy: FC<CodeBlockProps>;
679
683
 
680
- declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"searchBox" | "refreshBtn" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryCodeElement" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn">;
684
+ declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"searchBox" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryCodeElement" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn">;
681
685
 
682
686
  interface YBErrorIndicatorProps {
683
687
  type?: string;
@@ -971,10 +975,11 @@ declare const RUNTIME_CONFIG_KEYS: {
971
975
  declare const ANOMALY_TYPE_TO_NAME_MAP: Record<string, string>;
972
976
  declare const MORE = "MORE";
973
977
  declare const ELLIPSIS = "...";
978
+ declare const VIEW_MORE = "View More";
974
979
  declare const TIME_FILTER_LABEL: {
975
980
  readonly ONE_HOUR: "Last 1 hour";
976
981
  readonly SIX_HOURS: "Last 6 hours";
977
- readonly TWENTYFOUR_HOURS: "Last 24 hours";
982
+ readonly ONE_DAY: "Last 1 day";
978
983
  readonly TWO_DAYS: "Last 2 days";
979
984
  readonly SEVEN_DAYS: "Last 7 days";
980
985
  readonly CUSTOM: "Custom";
@@ -982,20 +987,20 @@ declare const TIME_FILTER_LABEL: {
982
987
  declare const TIME_FILTER_VALUES: {
983
988
  readonly ONE_HOUR: "1h";
984
989
  readonly SIX_HOURS: "6h";
985
- readonly TWENTYFOUR_HOURS: "24h";
990
+ readonly ONE_DAY: "1d";
986
991
  readonly TWO_DAYS: "2d";
987
992
  readonly SEVEN_DAYS: "7d";
988
993
  readonly CUSTOM: "Custom";
989
994
  };
990
995
  declare const ANOMALY_FILTER_DURATION_OPTIONS: readonly [{
991
- readonly label: "Last 24 hours";
992
- readonly value: "24h";
996
+ readonly label: "Last 1 hour";
997
+ readonly value: "1h";
993
998
  }, {
994
999
  readonly label: "Last 6 hours";
995
1000
  readonly value: "6h";
996
1001
  }, {
997
- readonly label: "Last 1 hour";
998
- readonly value: "1h";
1002
+ readonly label: "Last 1 day";
1003
+ readonly value: "1d";
999
1004
  }, {
1000
1005
  readonly label: "Last 2 days";
1001
1006
  readonly value: "2d";
@@ -1223,4 +1228,4 @@ declare function isYAxisGreaterThanThousand(dataArray: any): boolean;
1223
1228
  declare function divideYAxisByThousand(dataArray: any): any;
1224
1229
  declare function timeFormatXAxis(dataArray: any, timezone: string | undefined): any;
1225
1230
 
1226
- export { ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_TAG, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GenericFailure, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QueryPageParams, QueryType, QueryWaitEvents, RCAGuideline, REACT_APP_API_URL, REGION_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TPUrlParams, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBCodeBlockCopy, YBDateTimePicker, YBErrorIndicator, YBInfinitePagination, YBInput, YBInputField, YBLabel, YBModal, YBPagination, YBPanelItem, YBSelect, YBTable, YBToggle, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, divideYAxisByThousand, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, removeNullProperties, timeFormatXAxis, useCodeBlockStyles };
1231
+ export { ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_TAG, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GenericFailure, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QueryPageParams, QueryType, QueryWaitEvents, RCAGuideline, REACT_APP_API_URL, REGION_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TPUrlParams, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBCodeBlockCopy, YBDateTimePicker, YBErrorIndicator, YBInfinitePagination, YBInput, YBInputField, YBLabel, YBModal, YBPagination, YBPanelItem, YBSelect, YBTable, YBToggle, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, divideYAxisByThousand, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, removeNullProperties, timeFormatXAxis, useCodeBlockStyles };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "main": "dist/cjs/index.js",
5
5
  "types": "dist/types.d.ts",
6
6
  "author": "Rajagopalan Madhavan",