@yugabytedb/perf-advisor-client 0.0.0-stage → 0.0.1
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/README.md +32 -2
- package/dist/generated/api/anomaly/anomaly.d.ts +228 -0
- package/dist/generated/api/customer/customer.d.ts +200 -0
- package/dist/generated/api/export-config/export-config.d.ts +175 -0
- package/dist/generated/api/graph/graph.d.ts +62 -0
- package/dist/generated/api/info/info.d.ts +30 -0
- package/dist/generated/api/runtime-config/runtime-config.d.ts +80 -0
- package/dist/generated/api/schema/schema.d.ts +214 -0
- package/dist/generated/api/support-bundle/support-bundle.d.ts +167 -0
- package/dist/generated/api/universe/universe.d.ts +267 -0
- package/dist/generated/api/user/user.d.ts +134 -0
- package/dist/generated/api/workload/workload.d.ts +178 -0
- package/dist/generated/api.d.ts +11 -0
- package/dist/generated/model/activityExclusions.d.ts +25 -0
- package/dist/generated/model/activityPeriod.d.ts +20 -0
- package/dist/generated/model/aggregatedLineSettings.d.ts +22 -0
- package/dist/generated/model/aggregatedLineSettingsAggregation.d.ts +18 -0
- package/dist/generated/model/anomaly.d.ts +18 -0
- package/dist/generated/model/anomalyDetails.d.ts +18 -0
- package/dist/generated/model/anomalyDetection.d.ts +18 -0
- package/dist/generated/model/anomalyDetectionInfo.d.ts +21 -0
- package/dist/generated/model/anomalyDetectionInfoState.d.ts +21 -0
- package/dist/generated/model/anomalyEntity.d.ts +23 -0
- package/dist/generated/model/anomalyEntityLabels.d.ts +17 -0
- package/dist/generated/model/anomalyFilter.d.ts +32 -0
- package/dist/generated/model/anomalyGraph.d.ts +27 -0
- package/dist/generated/model/anomalyGroup.d.ts +18 -0
- package/dist/generated/model/anomalyGroupInfo.d.ts +21 -0
- package/dist/generated/model/anomalyGroupPagedResp.d.ts +16 -0
- package/dist/generated/model/anomalyGroupsOfType.d.ts +28 -0
- package/dist/generated/model/anomalyIndexDetails.d.ts +24 -0
- package/dist/generated/model/anomalyInfo.d.ts +46 -0
- package/dist/generated/model/anomalyPagedResp.d.ts +16 -0
- package/dist/generated/model/anomalySortBy.d.ts +23 -0
- package/dist/generated/model/anomalyType.d.ts +30 -0
- package/dist/generated/model/badRequestResponse.d.ts +16 -0
- package/dist/generated/model/clusterRef.d.ts +19 -0
- package/dist/generated/model/clusterRefClusterType.d.ts +17 -0
- package/dist/generated/model/conflictResponse.d.ts +16 -0
- package/dist/generated/model/cpuStats.d.ts +24 -0
- package/dist/generated/model/credentials.d.ts +32 -0
- package/dist/generated/model/credentialsType.d.ts +23 -0
- package/dist/generated/model/customer.d.ts +20 -0
- package/dist/generated/model/customerInfo.d.ts +14 -0
- package/dist/generated/model/customerPagedResp.d.ts +16 -0
- package/dist/generated/model/customerSpec.d.ts +32 -0
- package/dist/generated/model/database.d.ts +18 -0
- package/dist/generated/model/databaseInfo.d.ts +16 -0
- package/dist/generated/model/databasePagedResp.d.ts +16 -0
- package/dist/generated/model/databaseSchema.d.ts +18 -0
- package/dist/generated/model/databaseSchemaInfo.d.ts +14 -0
- package/dist/generated/model/databaseSchemaPagedResp.d.ts +16 -0
- package/dist/generated/model/databaseStats.d.ts +18 -0
- package/dist/generated/model/databaseStatsFilter.d.ts +27 -0
- package/dist/generated/model/databaseStatsInfo.d.ts +27 -0
- package/dist/generated/model/databaseStatsPagedResp.d.ts +19 -0
- package/dist/generated/model/databaseStatsSortBy.d.ts +24 -0
- package/dist/generated/model/databaseType.d.ts +21 -0
- package/dist/generated/model/deleteSupportBundleParams.d.ts +17 -0
- package/dist/generated/model/deleteUniverseParams.d.ts +19 -0
- package/dist/generated/model/endpoint.d.ts +19 -0
- package/dist/generated/model/error.d.ts +37 -0
- package/dist/generated/model/estimateSupportBundleSizeParams.d.ts +23 -0
- package/dist/generated/model/exportConfig.d.ts +20 -0
- package/dist/generated/model/exportConfigCheck.d.ts +18 -0
- package/dist/generated/model/exportConfigInfo.d.ts +14 -0
- package/dist/generated/model/exportConfigMetrics.d.ts +19 -0
- package/dist/generated/model/exportConfigPagedResp.d.ts +16 -0
- package/dist/generated/model/exportConfigSpec.d.ts +34 -0
- package/dist/generated/model/exportConfigValidation.d.ts +20 -0
- package/dist/generated/model/exportConfigValidationSpec.d.ts +23 -0
- package/dist/generated/model/fieldError.d.ts +16 -0
- package/dist/generated/model/forbiddenResponse.d.ts +16 -0
- package/dist/generated/model/getAnomalyGroupParams.d.ts +18 -0
- package/dist/generated/model/getQueryStatsParams.d.ts +24 -0
- package/dist/generated/model/graph.d.ts +24 -0
- package/dist/generated/model/graphAxis.d.ts +19 -0
- package/dist/generated/model/graphAxisAlias.d.ts +17 -0
- package/dist/generated/model/graphCatalogEntry.d.ts +30 -0
- package/dist/generated/model/graphFilters.d.ts +18 -0
- package/dist/generated/model/graphGroupByOption.d.ts +17 -0
- package/dist/generated/model/graphLayout.d.ts +26 -0
- package/dist/generated/model/graphQuerySpec.d.ts +35 -0
- package/dist/generated/model/graphSeries.d.ts +32 -0
- package/dist/generated/model/graphSeriesLabels.d.ts +17 -0
- package/dist/generated/model/graphSettings.d.ts +25 -0
- package/dist/generated/model/graphSettingsAggregatedValueFunction.d.ts +18 -0
- package/dist/generated/model/graphSettingsSplitMode.d.ts +17 -0
- package/dist/generated/model/graphSettingsSplitType.d.ts +18 -0
- package/dist/generated/model/graphWindow.d.ts +19 -0
- package/dist/generated/model/index.d.ts +18 -0
- package/dist/generated/model/indexColumn.d.ts +21 -0
- package/dist/generated/model/indexDefinition.d.ts +19 -0
- package/dist/generated/model/indexFilter.d.ts +28 -0
- package/dist/generated/model/indexFlags.d.ts +23 -0
- package/dist/generated/model/indexInfo.d.ts +33 -0
- package/dist/generated/model/indexPagedResp.d.ts +16 -0
- package/dist/generated/model/indexSortBy.d.ts +19 -0
- package/dist/generated/model/internalErrorResponse.d.ts +16 -0
- package/dist/generated/model/kubernetesPod.d.ts +18 -0
- package/dist/generated/model/latencyStats.d.ts +22 -0
- package/dist/generated/model/listAnomaliesParams.d.ts +38 -0
- package/dist/generated/model/listAnomalyGroupsByTypeParams.d.ts +33 -0
- package/dist/generated/model/listAnomalyGroupsParams.d.ts +36 -0
- package/dist/generated/model/listCustomerRuntimeConfigsParams.d.ts +17 -0
- package/dist/generated/model/listCustomersParams.d.ts +18 -0
- package/dist/generated/model/listDatabaseSchemasParams.d.ts +18 -0
- package/dist/generated/model/listDatabaseStatsParams.d.ts +53 -0
- package/dist/generated/model/listDatabasesParams.d.ts +23 -0
- package/dist/generated/model/listExportConfigsParams.d.ts +18 -0
- package/dist/generated/model/listIndexesParams.d.ts +33 -0
- package/dist/generated/model/listMaterializedViewsParams.d.ts +33 -0
- package/dist/generated/model/listNodeStatsParams.d.ts +44 -0
- package/dist/generated/model/listQueriesParams.d.ts +33 -0
- package/dist/generated/model/listQueryStatsParams.d.ts +59 -0
- package/dist/generated/model/listRuntimeConfigsParams.d.ts +17 -0
- package/dist/generated/model/listSupportBundlesParams.d.ts +18 -0
- package/dist/generated/model/listTableStatsParams.d.ts +37 -0
- package/dist/generated/model/listTabletStatsParams.d.ts +58 -0
- package/dist/generated/model/listUniverseNodesParams.d.ts +28 -0
- package/dist/generated/model/listUniverseRuntimeConfigsParams.d.ts +17 -0
- package/dist/generated/model/listUniversesParams.d.ts +31 -0
- package/dist/generated/model/listUsersParams.d.ts +18 -0
- package/dist/generated/model/loadStats.d.ts +24 -0
- package/dist/generated/model/materializedView.d.ts +18 -0
- package/dist/generated/model/materializedViewFilter.d.ts +26 -0
- package/dist/generated/model/materializedViewInfo.d.ts +22 -0
- package/dist/generated/model/materializedViewPagedResp.d.ts +16 -0
- package/dist/generated/model/materializedViewSortBy.d.ts +18 -0
- package/dist/generated/model/metadataRefresh.d.ts +20 -0
- package/dist/generated/model/metadataRefreshResult.d.ts +24 -0
- package/dist/generated/model/metadataRefreshResultStatus.d.ts +22 -0
- package/dist/generated/model/metadataRefreshSpec.d.ts +19 -0
- package/dist/generated/model/metadataRefreshTarget.d.ts +18 -0
- package/dist/generated/model/metricsExportEndpoint.d.ts +21 -0
- package/dist/generated/model/metricsExportEndpointProtocol.d.ts +19 -0
- package/dist/generated/model/nodeFilter.d.ts +27 -0
- package/dist/generated/model/nodePlacement.d.ts +19 -0
- package/dist/generated/model/nodeStats.d.ts +18 -0
- package/dist/generated/model/nodeStatsInfo.d.ts +23 -0
- package/dist/generated/model/nodeStatsPagedResp.d.ts +16 -0
- package/dist/generated/model/nodeStatsSortBy.d.ts +19 -0
- package/dist/generated/model/notFoundResponse.d.ts +16 -0
- package/dist/generated/model/objectLifecycle.d.ts +22 -0
- package/dist/generated/model/objectNamespace.d.ts +20 -0
- package/dist/generated/model/objectRef.d.ts +19 -0
- package/dist/generated/model/pageRequest.d.ts +31 -0
- package/dist/generated/model/pagination.d.ts +22 -0
- package/dist/generated/model/perfAdvisor.d.ts +18 -0
- package/dist/generated/model/perfAdvisorInfo.d.ts +21 -0
- package/dist/generated/model/query.d.ts +18 -0
- package/dist/generated/model/queryFilter.d.ts +29 -0
- package/dist/generated/model/queryInfo.d.ts +29 -0
- package/dist/generated/model/queryPagedResp.d.ts +16 -0
- package/dist/generated/model/queryPlan.d.ts +26 -0
- package/dist/generated/model/queryPlanExecutionTime.d.ts +20 -0
- package/dist/generated/model/queryPlanUsage.d.ts +19 -0
- package/dist/generated/model/querySortBy.d.ts +19 -0
- package/dist/generated/model/queryStats.d.ts +18 -0
- package/dist/generated/model/queryStatsFilter.d.ts +35 -0
- package/dist/generated/model/queryStatsInfo.d.ts +40 -0
- package/dist/generated/model/queryStatsPagedResp.d.ts +16 -0
- package/dist/generated/model/queryStatsSortBy.d.ts +26 -0
- package/dist/generated/model/queryType.d.ts +21 -0
- package/dist/generated/model/rcaGuideline.d.ts +17 -0
- package/dist/generated/model/rcaRecommendation.d.ts +16 -0
- package/dist/generated/model/relationType.d.ts +21 -0
- package/dist/generated/model/replicationStatus.d.ts +25 -0
- package/dist/generated/model/runtimeConfig.d.ts +20 -0
- package/dist/generated/model/runtimeConfigInfo.d.ts +23 -0
- package/dist/generated/model/runtimeConfigInfoAllowedScopesItem.d.ts +17 -0
- package/dist/generated/model/runtimeConfigInfoType.d.ts +19 -0
- package/dist/generated/model/runtimeConfigSpec.d.ts +15 -0
- package/dist/generated/model/scrapedMetricsEndpoint.d.ts +19 -0
- package/dist/generated/model/serverType.d.ts +19 -0
- package/dist/generated/model/sortDirection.d.ts +16 -0
- package/dist/generated/model/statsSummary.d.ts +22 -0
- package/dist/generated/model/storageSize.d.ts +22 -0
- package/dist/generated/model/supportBundle.d.ts +20 -0
- package/dist/generated/model/supportBundleInfo.d.ts +21 -0
- package/dist/generated/model/supportBundleInfoState.d.ts +21 -0
- package/dist/generated/model/supportBundleMetricFormat.d.ts +19 -0
- package/dist/generated/model/supportBundlePagedResp.d.ts +16 -0
- package/dist/generated/model/supportBundleSizeEstimate.d.ts +19 -0
- package/dist/generated/model/supportBundleSpec.d.ts +28 -0
- package/dist/generated/model/supportBundleSpecMetricFormat.d.ts +20 -0
- package/dist/generated/model/syncStatus.d.ts +20 -0
- package/dist/generated/model/tableColumn.d.ts +16 -0
- package/dist/generated/model/tableRef.d.ts +23 -0
- package/dist/generated/model/tableStats.d.ts +18 -0
- package/dist/generated/model/tableStatsFilter.d.ts +29 -0
- package/dist/generated/model/tableStatsInfo.d.ts +43 -0
- package/dist/generated/model/tableStatsPagedResp.d.ts +19 -0
- package/dist/generated/model/tableStatsSortBy.d.ts +19 -0
- package/dist/generated/model/tabletPlacement.d.ts +19 -0
- package/dist/generated/model/tabletRelation.d.ts +24 -0
- package/dist/generated/model/tabletStats.d.ts +18 -0
- package/dist/generated/model/tabletStatsFilter.d.ts +33 -0
- package/dist/generated/model/tabletStatsInfo.d.ts +35 -0
- package/dist/generated/model/tabletStatsPagedResp.d.ts +19 -0
- package/dist/generated/model/tabletStatsSortBy.d.ts +18 -0
- package/dist/generated/model/timeWindow.d.ts +20 -0
- package/dist/generated/model/unauthorizedResponse.d.ts +16 -0
- package/dist/generated/model/universe.d.ts +20 -0
- package/dist/generated/model/universeClusterInfo.d.ts +17 -0
- package/dist/generated/model/universeCollectionInfo.d.ts +26 -0
- package/dist/generated/model/universeDatabaseSpec.d.ts +21 -0
- package/dist/generated/model/universeFeature.d.ts +19 -0
- package/dist/generated/model/universeFeatures.d.ts +29 -0
- package/dist/generated/model/universeInfo.d.ts +38 -0
- package/dist/generated/model/universeMetricsExportSpec.d.ts +22 -0
- package/dist/generated/model/universeNode.d.ts +18 -0
- package/dist/generated/model/universeNodeInfo.d.ts +28 -0
- package/dist/generated/model/universeNodePagedResp.d.ts +16 -0
- package/dist/generated/model/universePagedResp.d.ts +16 -0
- package/dist/generated/model/universeSortBy.d.ts +21 -0
- package/dist/generated/model/universeSpec.d.ts +30 -0
- package/dist/generated/model/universeSpecCollectionMode.d.ts +22 -0
- package/dist/generated/model/universeState.d.ts +18 -0
- package/dist/generated/model/universeSyncInfo.d.ts +22 -0
- package/dist/generated/model/universeSyncStatus.d.ts +21 -0
- package/dist/generated/model/universeSyncStatusProcess.d.ts +28 -0
- package/dist/generated/model/user.d.ts +20 -0
- package/dist/generated/model/userInfo.d.ts +14 -0
- package/dist/generated/model/userPagedResp.d.ts +16 -0
- package/dist/generated/model/userSpec.d.ts +16 -0
- package/dist/generated/model/waitEvent.d.ts +20 -0
- package/dist/generated/model/waitEventFilter.d.ts +20 -0
- package/dist/generated/model/waitEventGrouping.d.ts +16 -0
- package/dist/generated/model/waitEventLoad.d.ts +22 -0
- package/dist/generated/model/ybaInfo.d.ts +17 -0
- package/dist/generated/model/ybmClusterInfo.d.ts +18 -0
- package/dist/generated/model/ybmProject.d.ts +18 -0
- package/dist/generated/model.d.ts +220 -0
- package/dist/http.d.ts +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2234 -0
- package/package.json +39 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { TimeWindow } from './timeWindow';
|
|
13
|
+
import type { WaitEventGrouping } from './waitEventGrouping';
|
|
14
|
+
export type GetQueryStatsParams = {
|
|
15
|
+
/**
|
|
16
|
+
* The time window: `start_time` and `end_time`, each a query parameter of its own. `end_time` defaults to now; each operation documents the default `start_time`.
|
|
17
|
+
*/
|
|
18
|
+
window?: TimeWindow;
|
|
19
|
+
/**
|
|
20
|
+
* Break each row's load down by wait event type (`TYPE`) or by wait event (`EVENT`), in
|
|
21
|
+
* `info.wait_events`. Without it there is no breakdown.
|
|
22
|
+
*/
|
|
23
|
+
group_events_by?: WaitEventGrouping;
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphLayout } from './graphLayout';
|
|
13
|
+
import type { GraphSeries } from './graphSeries';
|
|
14
|
+
/**
|
|
15
|
+
* Data of one queried graph.
|
|
16
|
+
*/
|
|
17
|
+
export interface Graph {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly successful: boolean;
|
|
20
|
+
readonly error_message?: string;
|
|
21
|
+
readonly step_seconds?: number;
|
|
22
|
+
layout?: GraphLayout;
|
|
23
|
+
readonly series?: readonly GraphSeries[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphAxisAlias } from './graphAxisAlias';
|
|
13
|
+
export interface GraphAxis {
|
|
14
|
+
readonly type?: string;
|
|
15
|
+
/** Display names of series, by series name. */
|
|
16
|
+
readonly alias?: GraphAxisAlias;
|
|
17
|
+
readonly tick_suffix?: string;
|
|
18
|
+
readonly tick_format?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Display names of series, by series name.
|
|
14
|
+
*/
|
|
15
|
+
export type GraphAxisAlias = {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphLayout } from './graphLayout';
|
|
13
|
+
/**
|
|
14
|
+
* A graph Perf Advisor can draw.
|
|
15
|
+
*/
|
|
16
|
+
export interface GraphCatalogEntry {
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly title?: string;
|
|
19
|
+
/** `METRIC` - a metric graph; `ANOMALY` - anomalies over time. New values may be added. */
|
|
20
|
+
readonly kind?: string;
|
|
21
|
+
/** Where the data comes from: `NODE` (node metrics) or `PA` (Perf Advisor's own). New values may be added. */
|
|
22
|
+
readonly data_source?: string;
|
|
23
|
+
/** Whether the graph needs `range_seconds` in its query. */
|
|
24
|
+
readonly range?: boolean;
|
|
25
|
+
layout?: GraphLayout;
|
|
26
|
+
/** Graph labels (snake_case) the graph can be filtered by. */
|
|
27
|
+
readonly supported_filters?: readonly string[];
|
|
28
|
+
/** Graph labels (snake_case) the graph can be split by. */
|
|
29
|
+
readonly supported_group_by?: readonly string[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Label values to keep (or exclude), by graph label in snake_case - for example `query_id`,
|
|
14
|
+
* `db_id`, `instance_name` or `table_name`. A graph's catalog entry lists the labels it supports.
|
|
15
|
+
*/
|
|
16
|
+
export interface GraphFilters {
|
|
17
|
+
[key: string]: string[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
export interface GraphGroupByOption {
|
|
13
|
+
/** Graph label (snake_case). */
|
|
14
|
+
readonly label?: string;
|
|
15
|
+
/** Display name. */
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphAxis } from './graphAxis';
|
|
13
|
+
import type { GraphGroupByOption } from './graphGroupByOption';
|
|
14
|
+
/**
|
|
15
|
+
* How to draw a graph.
|
|
16
|
+
*/
|
|
17
|
+
export interface GraphLayout {
|
|
18
|
+
readonly title?: string;
|
|
19
|
+
/** `COMMON` or `ASH` (active session history). New values may be added. */
|
|
20
|
+
readonly type?: string;
|
|
21
|
+
x_axis?: GraphAxis;
|
|
22
|
+
y_axis?: GraphAxis;
|
|
23
|
+
readonly supported_group_by?: readonly GraphGroupByOption[];
|
|
24
|
+
/** Graph labels (snake_case) the series are split by. */
|
|
25
|
+
readonly current_group_by?: readonly string[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { AggregatedLineSettings } from './aggregatedLineSettings';
|
|
13
|
+
import type { GraphFilters } from './graphFilters';
|
|
14
|
+
import type { GraphSettings } from './graphSettings';
|
|
15
|
+
import type { GraphWindow } from './graphWindow';
|
|
16
|
+
/**
|
|
17
|
+
* A graph to draw for a universe, over a time window.
|
|
18
|
+
*/
|
|
19
|
+
export interface GraphQuerySpec {
|
|
20
|
+
/** Graph name, from the graph catalog. */
|
|
21
|
+
name: string;
|
|
22
|
+
window: GraphWindow;
|
|
23
|
+
/** Range of range graphs. */
|
|
24
|
+
range_seconds?: number;
|
|
25
|
+
filters?: GraphFilters;
|
|
26
|
+
exclude_filters?: GraphFilters;
|
|
27
|
+
/** Graph labels (snake_case) to split the series by. */
|
|
28
|
+
group_by?: string[];
|
|
29
|
+
aggregated_line?: AggregatedLineSettings;
|
|
30
|
+
settings?: GraphSettings;
|
|
31
|
+
/** Whether to drop points without a value. */
|
|
32
|
+
replace_nan?: boolean;
|
|
33
|
+
/** Whether to add missing points so all series share timestamps. */
|
|
34
|
+
fill_missing_points?: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphSeriesLabels } from './graphSeriesLabels';
|
|
13
|
+
import type { TableRef } from './tableRef';
|
|
14
|
+
import type { WaitEvent } from './waitEvent';
|
|
15
|
+
/**
|
|
16
|
+
* One line of a graph.
|
|
17
|
+
*/
|
|
18
|
+
export interface GraphSeries {
|
|
19
|
+
readonly name?: string;
|
|
20
|
+
/** Label values identifying the series. */
|
|
21
|
+
readonly labels?: GraphSeriesLabels;
|
|
22
|
+
readonly instance_name?: string;
|
|
23
|
+
table?: TableRef;
|
|
24
|
+
readonly type?: string;
|
|
25
|
+
wait_event?: WaitEvent;
|
|
26
|
+
/** Whether the series is universe-wide rather than for one node. */
|
|
27
|
+
readonly global?: boolean;
|
|
28
|
+
/** Point times, in milliseconds since the epoch. */
|
|
29
|
+
readonly timestamps: readonly number[];
|
|
30
|
+
/** Point values, matching `timestamps`. Null where there is no value. */
|
|
31
|
+
readonly values: readonly (number | null)[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Label values identifying the series.
|
|
14
|
+
*/
|
|
15
|
+
export type GraphSeriesLabels = {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphSettingsAggregatedValueFunction } from './graphSettingsAggregatedValueFunction';
|
|
13
|
+
import type { GraphSettingsSplitMode } from './graphSettingsSplitMode';
|
|
14
|
+
import type { GraphSettingsSplitType } from './graphSettingsSplitType';
|
|
15
|
+
/**
|
|
16
|
+
* How to split a graph into the top or bottom series.
|
|
17
|
+
*/
|
|
18
|
+
export interface GraphSettings {
|
|
19
|
+
split_mode?: GraphSettingsSplitMode;
|
|
20
|
+
split_type?: GraphSettingsSplitType;
|
|
21
|
+
split_count?: number;
|
|
22
|
+
/** Whether to add a series aggregating the rest. */
|
|
23
|
+
return_aggregated_value?: boolean;
|
|
24
|
+
aggregated_value_function?: GraphSettingsAggregatedValueFunction;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
export type GraphSettingsAggregatedValueFunction = typeof GraphSettingsAggregatedValueFunction[keyof typeof GraphSettingsAggregatedValueFunction];
|
|
13
|
+
export declare const GraphSettingsAggregatedValueFunction: {
|
|
14
|
+
readonly MIN: "MIN";
|
|
15
|
+
readonly MAX: "MAX";
|
|
16
|
+
readonly AVG: "AVG";
|
|
17
|
+
readonly SUM: "SUM";
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
export type GraphSettingsSplitMode = typeof GraphSettingsSplitMode[keyof typeof GraphSettingsSplitMode];
|
|
13
|
+
export declare const GraphSettingsSplitMode: {
|
|
14
|
+
readonly NONE: "NONE";
|
|
15
|
+
readonly TOP: "TOP";
|
|
16
|
+
readonly BOTTOM: "BOTTOM";
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
export type GraphSettingsSplitType = typeof GraphSettingsSplitType[keyof typeof GraphSettingsSplitType];
|
|
13
|
+
export declare const GraphSettingsSplitType: {
|
|
14
|
+
readonly NONE: "NONE";
|
|
15
|
+
readonly NODE: "NODE";
|
|
16
|
+
readonly TABLE: "TABLE";
|
|
17
|
+
readonly NAMESPACE: "NAMESPACE";
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { TimeWindow } from './timeWindow';
|
|
13
|
+
/**
|
|
14
|
+
* The period a graph covers, and its resolution.
|
|
15
|
+
*/
|
|
16
|
+
export type GraphWindow = TimeWindow & {
|
|
17
|
+
/** Seconds between the graph's points. */
|
|
18
|
+
step_seconds?: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { IndexInfo } from './indexInfo';
|
|
13
|
+
/**
|
|
14
|
+
* A YSQL index.
|
|
15
|
+
*/
|
|
16
|
+
export interface Index {
|
|
17
|
+
info: IndexInfo;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A column or expression of an index.
|
|
14
|
+
*/
|
|
15
|
+
export interface IndexColumn {
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
/** The column, or the expression, as the index defines it. */
|
|
18
|
+
readonly definition?: string;
|
|
19
|
+
/** Ordering and other options, such as `HASH` or `ASC NULLS LAST`. */
|
|
20
|
+
readonly options?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An index, by name, with its definition.
|
|
14
|
+
*/
|
|
15
|
+
export interface IndexDefinition {
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
/** The `CREATE INDEX` statement. */
|
|
18
|
+
readonly definition?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Which indexes to list.
|
|
14
|
+
*/
|
|
15
|
+
export interface IndexFilter {
|
|
16
|
+
/** Only indexes of this database, by exact name. */
|
|
17
|
+
namespace_name?: string;
|
|
18
|
+
/** Only indexes of this schema, by exact name. */
|
|
19
|
+
schema_name?: string;
|
|
20
|
+
/** Only indexes of this table, by exact name. */
|
|
21
|
+
table_name?: string;
|
|
22
|
+
/** Only the index with this exact name. */
|
|
23
|
+
index_name?: string;
|
|
24
|
+
/** Only indexes whose name contains this text, ignoring case. */
|
|
25
|
+
index_name_contains?: string;
|
|
26
|
+
/** Only indexes whose definition contains this text. */
|
|
27
|
+
definition?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What kind of index it is.
|
|
14
|
+
*/
|
|
15
|
+
export interface IndexFlags {
|
|
16
|
+
/** Whether it is the table's primary key. */
|
|
17
|
+
readonly primary?: boolean;
|
|
18
|
+
readonly unique?: boolean;
|
|
19
|
+
/** Whether it backs a constraint, such as a primary key or unique constraint. */
|
|
20
|
+
readonly constraint_index?: boolean;
|
|
21
|
+
/** Whether a unique index treats nulls as equal (`NULLS NOT DISTINCT`). */
|
|
22
|
+
readonly null_not_distinct?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { IndexColumn } from './indexColumn';
|
|
13
|
+
import type { IndexFlags } from './indexFlags';
|
|
14
|
+
import type { ObjectLifecycle } from './objectLifecycle';
|
|
15
|
+
import type { ObjectNamespace } from './objectNamespace';
|
|
16
|
+
export interface IndexInfo {
|
|
17
|
+
namespace: ObjectNamespace;
|
|
18
|
+
readonly index_name: string;
|
|
19
|
+
readonly table_name?: string;
|
|
20
|
+
/** Index OID. */
|
|
21
|
+
readonly index_id?: number;
|
|
22
|
+
/** Access method, for example `lsm`. */
|
|
23
|
+
readonly index_type?: string;
|
|
24
|
+
readonly tablespace_name?: string;
|
|
25
|
+
/** CREATE INDEX statement. */
|
|
26
|
+
readonly definition?: string;
|
|
27
|
+
/** Predicate of a partial index. */
|
|
28
|
+
readonly where_clause?: string;
|
|
29
|
+
lifecycle?: ObjectLifecycle;
|
|
30
|
+
flags?: IndexFlags;
|
|
31
|
+
/** The indexed columns and expressions, in order. */
|
|
32
|
+
readonly columns?: readonly IndexColumn[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { Index } from './index';
|
|
13
|
+
import type { Pagination } from './pagination';
|
|
14
|
+
export type IndexPagedResp = Pagination & {
|
|
15
|
+
entities: Index[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
export type IndexSortBy = typeof IndexSortBy[keyof typeof IndexSortBy];
|
|
13
|
+
export declare const IndexSortBy: {
|
|
14
|
+
readonly NAMESPACE_NAME: "NAMESPACE_NAME";
|
|
15
|
+
readonly SCHEMA_NAME: "SCHEMA_NAME";
|
|
16
|
+
readonly TABLE_NAME: "TABLE_NAME";
|
|
17
|
+
readonly INDEX_NAME: "INDEX_NAME";
|
|
18
|
+
readonly FIRST_SEEN_TIME: "FIRST_SEEN_TIME";
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { Error } from './error';
|
|
13
|
+
/**
|
|
14
|
+
* Unexpected server error.
|
|
15
|
+
*/
|
|
16
|
+
export type InternalErrorResponse = Error;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The Kubernetes pod a node runs in.
|
|
14
|
+
*/
|
|
15
|
+
export interface KubernetesPod {
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
readonly namespace?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Latency over the requested period. Not set without samples.
|
|
14
|
+
*/
|
|
15
|
+
export interface LatencyStats {
|
|
16
|
+
/** Average latency, in milliseconds. */
|
|
17
|
+
readonly avg_ms?: number;
|
|
18
|
+
/** 90th percentile latency, in milliseconds. */
|
|
19
|
+
readonly p90_ms?: number;
|
|
20
|
+
/** 99th percentile latency, in milliseconds. */
|
|
21
|
+
readonly p99_ms?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Perf Advisor API
|
|
5
|
+
* Perf Advisor v2 REST API.
|
|
6
|
+
*
|
|
7
|
+
* Resources are returned as `{ spec, info }`: `spec` holds the properties a client sets,
|
|
8
|
+
* `info` holds read-only properties Perf Advisor computes.
|
|
9
|
+
*
|
|
10
|
+
* OpenAPI spec version: v2
|
|
11
|
+
*/
|
|
12
|
+
import type { AnomalyFilter } from './anomalyFilter';
|
|
13
|
+
import type { AnomalySortBy } from './anomalySortBy';
|
|
14
|
+
import type { NodeFilter } from './nodeFilter';
|
|
15
|
+
import type { PageRequest } from './pageRequest';
|
|
16
|
+
import type { TimeWindow } from './timeWindow';
|
|
17
|
+
export type ListAnomaliesParams = {
|
|
18
|
+
/**
|
|
19
|
+
* The page to return: `offset`, `limit`, `direction` and `need_total_count`, each a query parameter of its own.
|
|
20
|
+
*/
|
|
21
|
+
paging?: PageRequest;
|
|
22
|
+
/**
|
|
23
|
+
* The time window: `start_time` and `end_time`, each a query parameter of its own. `end_time` defaults to now; each operation documents the default `start_time`.
|
|
24
|
+
*/
|
|
25
|
+
window?: TimeWindow;
|
|
26
|
+
/**
|
|
27
|
+
* Which anomalies to list: `anomaly_type`, `category`, `type`, `summary`, `query`, `database_name`, `schema_name` and `table_name`, each a query parameter of its own.
|
|
28
|
+
*/
|
|
29
|
+
filter?: AnomalyFilter;
|
|
30
|
+
/**
|
|
31
|
+
* Which nodes' data to include: `cluster_uuids`, `region_codes`, `zone_codes`, `node_names` and `server_types`, each a query parameter of its own.
|
|
32
|
+
*/
|
|
33
|
+
nodes?: NodeFilter;
|
|
34
|
+
/**
|
|
35
|
+
* What to sort by, `START_TIME` by default. Ties are broken by the anomaly UUID.
|
|
36
|
+
*/
|
|
37
|
+
sort_by?: AnomalySortBy;
|
|
38
|
+
};
|