@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,267 @@
|
|
|
1
|
+
import type { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from 'react-query';
|
|
2
|
+
import type { BadRequestResponse } from '../../model/badRequestResponse';
|
|
3
|
+
import type { ConflictResponse } from '../../model/conflictResponse';
|
|
4
|
+
import type { DeleteUniverseParams } from '../../model/deleteUniverseParams';
|
|
5
|
+
import type { ForbiddenResponse } from '../../model/forbiddenResponse';
|
|
6
|
+
import type { InternalErrorResponse } from '../../model/internalErrorResponse';
|
|
7
|
+
import type { ListUniverseNodesParams } from '../../model/listUniverseNodesParams';
|
|
8
|
+
import type { ListUniverseRuntimeConfigsParams } from '../../model/listUniverseRuntimeConfigsParams';
|
|
9
|
+
import type { ListUniversesParams } from '../../model/listUniversesParams';
|
|
10
|
+
import type { MetadataRefresh } from '../../model/metadataRefresh';
|
|
11
|
+
import type { MetadataRefreshSpec } from '../../model/metadataRefreshSpec';
|
|
12
|
+
import type { NotFoundResponse } from '../../model/notFoundResponse';
|
|
13
|
+
import type { RuntimeConfig } from '../../model/runtimeConfig';
|
|
14
|
+
import type { RuntimeConfigSpec } from '../../model/runtimeConfigSpec';
|
|
15
|
+
import type { UnauthorizedResponse } from '../../model/unauthorizedResponse';
|
|
16
|
+
import type { Universe } from '../../model/universe';
|
|
17
|
+
import type { UniverseNodePagedResp } from '../../model/universeNodePagedResp';
|
|
18
|
+
import type { UniversePagedResp } from '../../model/universePagedResp';
|
|
19
|
+
import type { UniverseSpec } from '../../model/universeSpec';
|
|
20
|
+
import { paRequest } from '../../../http';
|
|
21
|
+
type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
|
|
22
|
+
type WritableKeys<T> = {
|
|
23
|
+
[P in keyof T]-?: IfEquals<{
|
|
24
|
+
[Q in P]: T[P];
|
|
25
|
+
}, {
|
|
26
|
+
-readonly [Q in P]: T[P];
|
|
27
|
+
}, P>;
|
|
28
|
+
}[keyof T];
|
|
29
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
30
|
+
type DistributeReadOnlyOverUnions<T> = T extends any ? NonReadonly<T> : never;
|
|
31
|
+
type Writable<T> = Pick<T, WritableKeys<T>>;
|
|
32
|
+
type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
33
|
+
[P in keyof Writable<T>]: T[P] extends object ? NonReadonly<NonNullable<T[P]>> : T[P];
|
|
34
|
+
} : DistributeReadOnlyOverUnions<T>;
|
|
35
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
36
|
+
/**
|
|
37
|
+
* Lists the universes registered with Perf Advisor, including ones it has collected no data
|
|
38
|
+
* for yet. Ordered by `sort_by`, `NAME` (case-insensitive) by default, ascending by default.
|
|
39
|
+
* @summary List universes
|
|
40
|
+
*/
|
|
41
|
+
export declare const listUniverses: (params?: ListUniversesParams, options?: SecondParameter<typeof paRequest>) => Promise<UniversePagedResp>;
|
|
42
|
+
export declare const getListUniversesQueryKey: (params?: ListUniversesParams) => readonly ["/universes", ...ListUniversesParams[]];
|
|
43
|
+
export declare const getListUniversesQueryOptions: <TData = import("../../model").Pagination & {
|
|
44
|
+
entities: Universe[];
|
|
45
|
+
}, TError = import("../../model").Error>(params?: ListUniversesParams, options?: {
|
|
46
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
47
|
+
entities: Universe[];
|
|
48
|
+
}, TError, TData, QueryKey> | undefined;
|
|
49
|
+
request?: SecondParameter<typeof paRequest>;
|
|
50
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
51
|
+
entities: Universe[];
|
|
52
|
+
}, TError, TData, QueryKey> & {
|
|
53
|
+
queryKey: QueryKey;
|
|
54
|
+
};
|
|
55
|
+
export type ListUniversesQueryResult = NonNullable<Awaited<ReturnType<typeof listUniverses>>>;
|
|
56
|
+
export type ListUniversesQueryError = BadRequestResponse | UnauthorizedResponse | InternalErrorResponse;
|
|
57
|
+
/**
|
|
58
|
+
* @summary List universes
|
|
59
|
+
*/
|
|
60
|
+
export declare function useListUniverses<TData = Awaited<ReturnType<typeof listUniverses>>, TError = BadRequestResponse | UnauthorizedResponse | InternalErrorResponse>(params?: ListUniversesParams, options?: {
|
|
61
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listUniverses>>, TError, TData>;
|
|
62
|
+
request?: SecondParameter<typeof paRequest>;
|
|
63
|
+
}): UseQueryResult<TData, TError> & {
|
|
64
|
+
queryKey: QueryKey;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Returns a registered universe.
|
|
68
|
+
* @summary Get a universe
|
|
69
|
+
*/
|
|
70
|
+
export declare const getUniverse: (universeId: string, options?: SecondParameter<typeof paRequest>) => Promise<Universe>;
|
|
71
|
+
export declare const getGetUniverseQueryKey: (universeId: string) => readonly [`/universes/${string}`];
|
|
72
|
+
export declare const getGetUniverseQueryOptions: <TData = Universe, TError = import("../../model").Error>(universeId: string, options?: {
|
|
73
|
+
query?: UseQueryOptions<Universe, TError, TData, QueryKey> | undefined;
|
|
74
|
+
request?: SecondParameter<typeof paRequest>;
|
|
75
|
+
} | undefined) => UseQueryOptions<Universe, TError, TData, QueryKey> & {
|
|
76
|
+
queryKey: QueryKey;
|
|
77
|
+
};
|
|
78
|
+
export type GetUniverseQueryResult = NonNullable<Awaited<ReturnType<typeof getUniverse>>>;
|
|
79
|
+
export type GetUniverseQueryError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
80
|
+
/**
|
|
81
|
+
* @summary Get a universe
|
|
82
|
+
*/
|
|
83
|
+
export declare function useGetUniverse<TData = Awaited<ReturnType<typeof getUniverse>>, TError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, options?: {
|
|
84
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUniverse>>, TError, TData>;
|
|
85
|
+
request?: SecondParameter<typeof paRequest>;
|
|
86
|
+
}): UseQueryResult<TData, TError> & {
|
|
87
|
+
queryKey: QueryKey;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Registers the universe with Perf Advisor, or replaces the spec of a universe already
|
|
91
|
+
* registered. YBA and YBM call this when a universe is added to Perf Advisor. Registering a
|
|
92
|
+
* universe Perf Advisor doesn't know yet takes a session or API token; YBA and YBM tokens are
|
|
93
|
+
* checked against a registered universe, so they can only update one.
|
|
94
|
+
* @summary Register or update a universe
|
|
95
|
+
*/
|
|
96
|
+
export declare const registerUniverse: (universeId: string, universeSpec: NonReadonly<UniverseSpec>, options?: SecondParameter<typeof paRequest>) => Promise<Universe>;
|
|
97
|
+
export declare const getRegisterUniverseMutationKey: () => readonly ["registerUniverse"];
|
|
98
|
+
export declare const getRegisterUniverseMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
99
|
+
mutation?: UseMutationOptions<Universe, TError, RegisterUniverseMutationVariables, TContext> | undefined;
|
|
100
|
+
request?: SecondParameter<typeof paRequest>;
|
|
101
|
+
} | undefined) => UseMutationOptions<Universe, TError, RegisterUniverseMutationVariables, TContext>;
|
|
102
|
+
export type RegisterUniverseMutationResult = NonNullable<Awaited<ReturnType<typeof registerUniverse>>>;
|
|
103
|
+
export type RegisterUniverseMutationBody = NonReadonly<UniverseSpec>;
|
|
104
|
+
export type RegisterUniverseMutationError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | ConflictResponse | InternalErrorResponse;
|
|
105
|
+
export type RegisterUniverseMutationVariables = {
|
|
106
|
+
universeId: string;
|
|
107
|
+
data: NonReadonly<UniverseSpec>;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* @summary Register or update a universe
|
|
111
|
+
*/
|
|
112
|
+
export declare const useRegisterUniverse: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
113
|
+
mutation?: UseMutationOptions<Universe, TError, RegisterUniverseMutationVariables, TContext> | undefined;
|
|
114
|
+
request?: SecondParameter<typeof paRequest>;
|
|
115
|
+
} | undefined) => UseMutationResult<Universe, TError, RegisterUniverseMutationVariables, TContext>;
|
|
116
|
+
/**
|
|
117
|
+
* Stops monitoring the universe and removes its registration.
|
|
118
|
+
* @summary Delete a universe
|
|
119
|
+
*/
|
|
120
|
+
export declare const deleteUniverse: (universeId: string, params?: DeleteUniverseParams, options?: SecondParameter<typeof paRequest>) => Promise<void>;
|
|
121
|
+
export declare const getDeleteUniverseMutationKey: () => readonly ["deleteUniverse"];
|
|
122
|
+
export declare const getDeleteUniverseMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
123
|
+
mutation?: UseMutationOptions<void, TError, DeleteUniverseMutationVariables, TContext> | undefined;
|
|
124
|
+
request?: SecondParameter<typeof paRequest>;
|
|
125
|
+
} | undefined) => UseMutationOptions<void, TError, DeleteUniverseMutationVariables, TContext>;
|
|
126
|
+
export type DeleteUniverseMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUniverse>>>;
|
|
127
|
+
export type DeleteUniverseMutationError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
128
|
+
export type DeleteUniverseMutationVariables = {
|
|
129
|
+
universeId: string;
|
|
130
|
+
params?: DeleteUniverseParams;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* @summary Delete a universe
|
|
134
|
+
*/
|
|
135
|
+
export declare const useDeleteUniverse: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
136
|
+
mutation?: UseMutationOptions<void, TError, DeleteUniverseMutationVariables, TContext> | undefined;
|
|
137
|
+
request?: SecondParameter<typeof paRequest>;
|
|
138
|
+
} | undefined) => UseMutationResult<void, TError, DeleteUniverseMutationVariables, TContext>;
|
|
139
|
+
/**
|
|
140
|
+
* Lists the nodes the universe had at any point in the time range, which defaults to the last
|
|
141
|
+
* day, including nodes removed during it. Ordered by name, ascending by default.
|
|
142
|
+
* @summary List a universe's nodes
|
|
143
|
+
*/
|
|
144
|
+
export declare const listUniverseNodes: (universeId: string, params?: ListUniverseNodesParams, options?: SecondParameter<typeof paRequest>) => Promise<UniverseNodePagedResp>;
|
|
145
|
+
export declare const getListUniverseNodesQueryKey: (universeId: string, params?: ListUniverseNodesParams) => readonly [`/universes/${string}/nodes`, ...ListUniverseNodesParams[]];
|
|
146
|
+
export declare const getListUniverseNodesQueryOptions: <TData = import("../../model").Pagination & {
|
|
147
|
+
entities: import("../../model").UniverseNode[];
|
|
148
|
+
}, TError = import("../../model").Error>(universeId: string, params?: ListUniverseNodesParams, options?: {
|
|
149
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
150
|
+
entities: import("../../model").UniverseNode[];
|
|
151
|
+
}, TError, TData, QueryKey> | undefined;
|
|
152
|
+
request?: SecondParameter<typeof paRequest>;
|
|
153
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
154
|
+
entities: import("../../model").UniverseNode[];
|
|
155
|
+
}, TError, TData, QueryKey> & {
|
|
156
|
+
queryKey: QueryKey;
|
|
157
|
+
};
|
|
158
|
+
export type ListUniverseNodesQueryResult = NonNullable<Awaited<ReturnType<typeof listUniverseNodes>>>;
|
|
159
|
+
export type ListUniverseNodesQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
160
|
+
/**
|
|
161
|
+
* @summary List a universe's nodes
|
|
162
|
+
*/
|
|
163
|
+
export declare function useListUniverseNodes<TData = Awaited<ReturnType<typeof listUniverseNodes>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListUniverseNodesParams, options?: {
|
|
164
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listUniverseNodes>>, TError, TData>;
|
|
165
|
+
request?: SecondParameter<typeof paRequest>;
|
|
166
|
+
}): UseQueryResult<TData, TError> & {
|
|
167
|
+
queryKey: QueryKey;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Starts syncing the given metadata from the universe right away rather than on the next
|
|
171
|
+
* scheduled sync. Returns once the syncs are started; their progress is in the universe's
|
|
172
|
+
* `info.sync.processes`.
|
|
173
|
+
* @summary Refresh universe metadata
|
|
174
|
+
*/
|
|
175
|
+
export declare const refreshUniverseMetadata: (universeId: string, metadataRefreshSpec: MetadataRefreshSpec, options?: SecondParameter<typeof paRequest>) => Promise<MetadataRefresh>;
|
|
176
|
+
export declare const getRefreshUniverseMetadataMutationKey: () => readonly ["refreshUniverseMetadata"];
|
|
177
|
+
export declare const getRefreshUniverseMetadataMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
178
|
+
mutation?: UseMutationOptions<MetadataRefresh, TError, RefreshUniverseMetadataMutationVariables, TContext> | undefined;
|
|
179
|
+
request?: SecondParameter<typeof paRequest>;
|
|
180
|
+
} | undefined) => UseMutationOptions<MetadataRefresh, TError, RefreshUniverseMetadataMutationVariables, TContext>;
|
|
181
|
+
export type RefreshUniverseMetadataMutationResult = NonNullable<Awaited<ReturnType<typeof refreshUniverseMetadata>>>;
|
|
182
|
+
export type RefreshUniverseMetadataMutationBody = MetadataRefreshSpec;
|
|
183
|
+
export type RefreshUniverseMetadataMutationError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
184
|
+
export type RefreshUniverseMetadataMutationVariables = {
|
|
185
|
+
universeId: string;
|
|
186
|
+
data: MetadataRefreshSpec;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @summary Refresh universe metadata
|
|
190
|
+
*/
|
|
191
|
+
export declare const useRefreshUniverseMetadata: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
192
|
+
mutation?: UseMutationOptions<MetadataRefresh, TError, RefreshUniverseMetadataMutationVariables, TContext> | undefined;
|
|
193
|
+
request?: SecondParameter<typeof paRequest>;
|
|
194
|
+
} | undefined) => UseMutationResult<MetadataRefresh, TError, RefreshUniverseMetadataMutationVariables, TContext>;
|
|
195
|
+
/**
|
|
196
|
+
* Lists the runtime configuration effective for the universe: values set for the universe,
|
|
197
|
+
* otherwise inherited from its customer, globally, or the defaults. Ordered by key.
|
|
198
|
+
* @summary List a universe's runtime configuration
|
|
199
|
+
*/
|
|
200
|
+
export declare const listUniverseRuntimeConfigs: (universeId: string, params?: ListUniverseRuntimeConfigsParams, options?: SecondParameter<typeof paRequest>) => Promise<RuntimeConfig[]>;
|
|
201
|
+
export declare const getListUniverseRuntimeConfigsQueryKey: (universeId: string, params?: ListUniverseRuntimeConfigsParams) => readonly [`/universes/${string}/runtime-configs`, ...ListUniverseRuntimeConfigsParams[]];
|
|
202
|
+
export declare const getListUniverseRuntimeConfigsQueryOptions: <TData = RuntimeConfig[], TError = import("../../model").Error>(universeId: string, params?: ListUniverseRuntimeConfigsParams, options?: {
|
|
203
|
+
query?: UseQueryOptions<RuntimeConfig[], TError, TData, QueryKey> | undefined;
|
|
204
|
+
request?: SecondParameter<typeof paRequest>;
|
|
205
|
+
} | undefined) => UseQueryOptions<RuntimeConfig[], TError, TData, QueryKey> & {
|
|
206
|
+
queryKey: QueryKey;
|
|
207
|
+
};
|
|
208
|
+
export type ListUniverseRuntimeConfigsQueryResult = NonNullable<Awaited<ReturnType<typeof listUniverseRuntimeConfigs>>>;
|
|
209
|
+
export type ListUniverseRuntimeConfigsQueryError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
210
|
+
/**
|
|
211
|
+
* @summary List a universe's runtime configuration
|
|
212
|
+
*/
|
|
213
|
+
export declare function useListUniverseRuntimeConfigs<TData = Awaited<ReturnType<typeof listUniverseRuntimeConfigs>>, TError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListUniverseRuntimeConfigsParams, options?: {
|
|
214
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listUniverseRuntimeConfigs>>, TError, TData>;
|
|
215
|
+
request?: SecondParameter<typeof paRequest>;
|
|
216
|
+
}): UseQueryResult<TData, TError> & {
|
|
217
|
+
queryKey: QueryKey;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Sets the value of the key for this universe only.
|
|
221
|
+
* @summary Set a runtime configuration value for a universe
|
|
222
|
+
*/
|
|
223
|
+
export declare const setUniverseRuntimeConfig: (universeId: string, key: string, runtimeConfigSpec: RuntimeConfigSpec, options?: SecondParameter<typeof paRequest>) => Promise<RuntimeConfig>;
|
|
224
|
+
export declare const getSetUniverseRuntimeConfigMutationKey: () => readonly ["setUniverseRuntimeConfig"];
|
|
225
|
+
export declare const getSetUniverseRuntimeConfigMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
226
|
+
mutation?: UseMutationOptions<RuntimeConfig, TError, SetUniverseRuntimeConfigMutationVariables, TContext> | undefined;
|
|
227
|
+
request?: SecondParameter<typeof paRequest>;
|
|
228
|
+
} | undefined) => UseMutationOptions<RuntimeConfig, TError, SetUniverseRuntimeConfigMutationVariables, TContext>;
|
|
229
|
+
export type SetUniverseRuntimeConfigMutationResult = NonNullable<Awaited<ReturnType<typeof setUniverseRuntimeConfig>>>;
|
|
230
|
+
export type SetUniverseRuntimeConfigMutationBody = RuntimeConfigSpec;
|
|
231
|
+
export type SetUniverseRuntimeConfigMutationError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
232
|
+
export type SetUniverseRuntimeConfigMutationVariables = {
|
|
233
|
+
universeId: string;
|
|
234
|
+
key: string;
|
|
235
|
+
data: RuntimeConfigSpec;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* @summary Set a runtime configuration value for a universe
|
|
239
|
+
*/
|
|
240
|
+
export declare const useSetUniverseRuntimeConfig: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
241
|
+
mutation?: UseMutationOptions<RuntimeConfig, TError, SetUniverseRuntimeConfigMutationVariables, TContext> | undefined;
|
|
242
|
+
request?: SecondParameter<typeof paRequest>;
|
|
243
|
+
} | undefined) => UseMutationResult<RuntimeConfig, TError, SetUniverseRuntimeConfigMutationVariables, TContext>;
|
|
244
|
+
/**
|
|
245
|
+
* Removes the value set for this universe, so the inherited value applies again.
|
|
246
|
+
* @summary Remove a universe's runtime configuration value
|
|
247
|
+
*/
|
|
248
|
+
export declare const deleteUniverseRuntimeConfig: (universeId: string, key: string, options?: SecondParameter<typeof paRequest>) => Promise<void>;
|
|
249
|
+
export declare const getDeleteUniverseRuntimeConfigMutationKey: () => readonly ["deleteUniverseRuntimeConfig"];
|
|
250
|
+
export declare const getDeleteUniverseRuntimeConfigMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
251
|
+
mutation?: UseMutationOptions<void, TError, DeleteUniverseRuntimeConfigMutationVariables, TContext> | undefined;
|
|
252
|
+
request?: SecondParameter<typeof paRequest>;
|
|
253
|
+
} | undefined) => UseMutationOptions<void, TError, DeleteUniverseRuntimeConfigMutationVariables, TContext>;
|
|
254
|
+
export type DeleteUniverseRuntimeConfigMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUniverseRuntimeConfig>>>;
|
|
255
|
+
export type DeleteUniverseRuntimeConfigMutationError = UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
256
|
+
export type DeleteUniverseRuntimeConfigMutationVariables = {
|
|
257
|
+
universeId: string;
|
|
258
|
+
key: string;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* @summary Remove a universe's runtime configuration value
|
|
262
|
+
*/
|
|
263
|
+
export declare const useDeleteUniverseRuntimeConfig: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
264
|
+
mutation?: UseMutationOptions<void, TError, DeleteUniverseRuntimeConfigMutationVariables, TContext> | undefined;
|
|
265
|
+
request?: SecondParameter<typeof paRequest>;
|
|
266
|
+
} | undefined) => UseMutationResult<void, TError, DeleteUniverseRuntimeConfigMutationVariables, TContext>;
|
|
267
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from 'react-query';
|
|
2
|
+
import type { BadRequestResponse } from '../../model/badRequestResponse';
|
|
3
|
+
import type { ConflictResponse } from '../../model/conflictResponse';
|
|
4
|
+
import type { InternalErrorResponse } from '../../model/internalErrorResponse';
|
|
5
|
+
import type { ListUsersParams } from '../../model/listUsersParams';
|
|
6
|
+
import type { NotFoundResponse } from '../../model/notFoundResponse';
|
|
7
|
+
import type { UnauthorizedResponse } from '../../model/unauthorizedResponse';
|
|
8
|
+
import type { User } from '../../model/user';
|
|
9
|
+
import type { UserPagedResp } from '../../model/userPagedResp';
|
|
10
|
+
import type { UserSpec } from '../../model/userSpec';
|
|
11
|
+
import { paRequest } from '../../../http';
|
|
12
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
13
|
+
/**
|
|
14
|
+
* Lists the local Perf Advisor users. Ordered by name, ascending by default.
|
|
15
|
+
* @summary List users
|
|
16
|
+
*/
|
|
17
|
+
export declare const listUsers: (params?: ListUsersParams, options?: SecondParameter<typeof paRequest>) => Promise<UserPagedResp>;
|
|
18
|
+
export declare const getListUsersQueryKey: (params?: ListUsersParams) => readonly ["/users", ...ListUsersParams[]];
|
|
19
|
+
export declare const getListUsersQueryOptions: <TData = import("../../model").Pagination & {
|
|
20
|
+
entities: User[];
|
|
21
|
+
}, TError = import("../../model").Error>(params?: ListUsersParams, options?: {
|
|
22
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
23
|
+
entities: User[];
|
|
24
|
+
}, TError, TData, QueryKey> | undefined;
|
|
25
|
+
request?: SecondParameter<typeof paRequest>;
|
|
26
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
27
|
+
entities: User[];
|
|
28
|
+
}, TError, TData, QueryKey> & {
|
|
29
|
+
queryKey: QueryKey;
|
|
30
|
+
};
|
|
31
|
+
export type ListUsersQueryResult = NonNullable<Awaited<ReturnType<typeof listUsers>>>;
|
|
32
|
+
export type ListUsersQueryError = BadRequestResponse | UnauthorizedResponse | InternalErrorResponse;
|
|
33
|
+
/**
|
|
34
|
+
* @summary List users
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListUsers<TData = Awaited<ReturnType<typeof listUsers>>, TError = BadRequestResponse | UnauthorizedResponse | InternalErrorResponse>(params?: ListUsersParams, options?: {
|
|
37
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listUsers>>, TError, TData>;
|
|
38
|
+
request?: SecondParameter<typeof paRequest>;
|
|
39
|
+
}): UseQueryResult<TData, TError> & {
|
|
40
|
+
queryKey: QueryKey;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Creates a local Perf Advisor user. Perf Advisor assigns the UUID.
|
|
44
|
+
* @summary Create a user
|
|
45
|
+
*/
|
|
46
|
+
export declare const createUser: (userSpec: UserSpec, options?: SecondParameter<typeof paRequest>) => Promise<User>;
|
|
47
|
+
export declare const getCreateUserMutationKey: () => readonly ["createUser"];
|
|
48
|
+
export declare const getCreateUserMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
49
|
+
mutation?: UseMutationOptions<User, TError, CreateUserMutationVariables, TContext> | undefined;
|
|
50
|
+
request?: SecondParameter<typeof paRequest>;
|
|
51
|
+
} | undefined) => UseMutationOptions<User, TError, CreateUserMutationVariables, TContext>;
|
|
52
|
+
export type CreateUserMutationResult = NonNullable<Awaited<ReturnType<typeof createUser>>>;
|
|
53
|
+
export type CreateUserMutationBody = UserSpec;
|
|
54
|
+
export type CreateUserMutationError = BadRequestResponse | UnauthorizedResponse | ConflictResponse | InternalErrorResponse;
|
|
55
|
+
export type CreateUserMutationVariables = {
|
|
56
|
+
data: UserSpec;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @summary Create a user
|
|
60
|
+
*/
|
|
61
|
+
export declare const useCreateUser: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
62
|
+
mutation?: UseMutationOptions<User, TError, CreateUserMutationVariables, TContext> | undefined;
|
|
63
|
+
request?: SecondParameter<typeof paRequest>;
|
|
64
|
+
} | undefined) => UseMutationResult<User, TError, CreateUserMutationVariables, TContext>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a local Perf Advisor user.
|
|
67
|
+
* @summary Get a user
|
|
68
|
+
*/
|
|
69
|
+
export declare const getUser: (userId: string, options?: SecondParameter<typeof paRequest>) => Promise<User>;
|
|
70
|
+
export declare const getGetUserQueryKey: (userId: string) => readonly [`/users/${string}`];
|
|
71
|
+
export declare const getGetUserQueryOptions: <TData = User, TError = import("../../model").Error>(userId: string, options?: {
|
|
72
|
+
query?: UseQueryOptions<User, TError, TData, QueryKey> | undefined;
|
|
73
|
+
request?: SecondParameter<typeof paRequest>;
|
|
74
|
+
} | undefined) => UseQueryOptions<User, TError, TData, QueryKey> & {
|
|
75
|
+
queryKey: QueryKey;
|
|
76
|
+
};
|
|
77
|
+
export type GetUserQueryResult = NonNullable<Awaited<ReturnType<typeof getUser>>>;
|
|
78
|
+
export type GetUserQueryError = UnauthorizedResponse | NotFoundResponse | InternalErrorResponse;
|
|
79
|
+
/**
|
|
80
|
+
* @summary Get a user
|
|
81
|
+
*/
|
|
82
|
+
export declare function useGetUser<TData = Awaited<ReturnType<typeof getUser>>, TError = UnauthorizedResponse | NotFoundResponse | InternalErrorResponse>(userId: string, options?: {
|
|
83
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUser>>, TError, TData>;
|
|
84
|
+
request?: SecondParameter<typeof paRequest>;
|
|
85
|
+
}): UseQueryResult<TData, TError> & {
|
|
86
|
+
queryKey: QueryKey;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Replaces the spec of a user.
|
|
90
|
+
* @summary Edit a user
|
|
91
|
+
*/
|
|
92
|
+
export declare const editUser: (userId: string, userSpec: UserSpec, options?: SecondParameter<typeof paRequest>) => Promise<User>;
|
|
93
|
+
export declare const getEditUserMutationKey: () => readonly ["editUser"];
|
|
94
|
+
export declare const getEditUserMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
95
|
+
mutation?: UseMutationOptions<User, TError, EditUserMutationVariables, TContext> | undefined;
|
|
96
|
+
request?: SecondParameter<typeof paRequest>;
|
|
97
|
+
} | undefined) => UseMutationOptions<User, TError, EditUserMutationVariables, TContext>;
|
|
98
|
+
export type EditUserMutationResult = NonNullable<Awaited<ReturnType<typeof editUser>>>;
|
|
99
|
+
export type EditUserMutationBody = UserSpec;
|
|
100
|
+
export type EditUserMutationError = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
101
|
+
export type EditUserMutationVariables = {
|
|
102
|
+
userId: string;
|
|
103
|
+
data: UserSpec;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @summary Edit a user
|
|
107
|
+
*/
|
|
108
|
+
export declare const useEditUser: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
109
|
+
mutation?: UseMutationOptions<User, TError, EditUserMutationVariables, TContext> | undefined;
|
|
110
|
+
request?: SecondParameter<typeof paRequest>;
|
|
111
|
+
} | undefined) => UseMutationResult<User, TError, EditUserMutationVariables, TContext>;
|
|
112
|
+
/**
|
|
113
|
+
* Deletes a local Perf Advisor user.
|
|
114
|
+
* @summary Delete a user
|
|
115
|
+
*/
|
|
116
|
+
export declare const deleteUser: (userId: string, options?: SecondParameter<typeof paRequest>) => Promise<void>;
|
|
117
|
+
export declare const getDeleteUserMutationKey: () => readonly ["deleteUser"];
|
|
118
|
+
export declare const getDeleteUserMutationOptions: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
119
|
+
mutation?: UseMutationOptions<void, TError, DeleteUserMutationVariables, TContext> | undefined;
|
|
120
|
+
request?: SecondParameter<typeof paRequest>;
|
|
121
|
+
} | undefined) => UseMutationOptions<void, TError, DeleteUserMutationVariables, TContext>;
|
|
122
|
+
export type DeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUser>>>;
|
|
123
|
+
export type DeleteUserMutationError = UnauthorizedResponse | NotFoundResponse | ConflictResponse | InternalErrorResponse;
|
|
124
|
+
export type DeleteUserMutationVariables = {
|
|
125
|
+
userId: string;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @summary Delete a user
|
|
129
|
+
*/
|
|
130
|
+
export declare const useDeleteUser: <TError = import("../../model").Error, TContext = unknown>(options?: {
|
|
131
|
+
mutation?: UseMutationOptions<void, TError, DeleteUserMutationVariables, TContext> | undefined;
|
|
132
|
+
request?: SecondParameter<typeof paRequest>;
|
|
133
|
+
} | undefined) => UseMutationResult<void, TError, DeleteUserMutationVariables, TContext>;
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { QueryKey, UseQueryOptions, UseQueryResult } from 'react-query';
|
|
2
|
+
import type { BadRequestResponse } from '../../model/badRequestResponse';
|
|
3
|
+
import type { DatabaseStatsPagedResp } from '../../model/databaseStatsPagedResp';
|
|
4
|
+
import type { ForbiddenResponse } from '../../model/forbiddenResponse';
|
|
5
|
+
import type { GetQueryStatsParams } from '../../model/getQueryStatsParams';
|
|
6
|
+
import type { InternalErrorResponse } from '../../model/internalErrorResponse';
|
|
7
|
+
import type { ListDatabaseStatsParams } from '../../model/listDatabaseStatsParams';
|
|
8
|
+
import type { ListNodeStatsParams } from '../../model/listNodeStatsParams';
|
|
9
|
+
import type { ListQueriesParams } from '../../model/listQueriesParams';
|
|
10
|
+
import type { ListQueryStatsParams } from '../../model/listQueryStatsParams';
|
|
11
|
+
import type { NodeStatsPagedResp } from '../../model/nodeStatsPagedResp';
|
|
12
|
+
import type { NotFoundResponse } from '../../model/notFoundResponse';
|
|
13
|
+
import type { QueryPagedResp } from '../../model/queryPagedResp';
|
|
14
|
+
import type { QueryStats } from '../../model/queryStats';
|
|
15
|
+
import type { QueryStatsPagedResp } from '../../model/queryStatsPagedResp';
|
|
16
|
+
import type { UnauthorizedResponse } from '../../model/unauthorizedResponse';
|
|
17
|
+
import { paRequest } from '../../../http';
|
|
18
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the YSQL statements (from pg_stat_statements) and the YCQL statements active in the
|
|
21
|
+
* time range, which defaults to the last day: their text and identity, without statistics.
|
|
22
|
+
* `listQueryStats` has the statistics. YSQL and YCQL statements are read separately and
|
|
23
|
+
* merged in memory. Ordered by `sort_by`, ascending by default. Statements without the sorted
|
|
24
|
+
* value (a YCQL statement has no user) come last in either direction.
|
|
25
|
+
* @summary List statements
|
|
26
|
+
*/
|
|
27
|
+
export declare const listQueries: (universeId: string, params?: ListQueriesParams, options?: SecondParameter<typeof paRequest>) => Promise<QueryPagedResp>;
|
|
28
|
+
export declare const getListQueriesQueryKey: (universeId: string, params?: ListQueriesParams) => readonly [`/universes/${string}/queries`, ...ListQueriesParams[]];
|
|
29
|
+
export declare const getListQueriesQueryOptions: <TData = import("../../model").Pagination & {
|
|
30
|
+
entities: import("../../model").Query[];
|
|
31
|
+
}, TError = import("../../model").Error>(universeId: string, params?: ListQueriesParams, options?: {
|
|
32
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
33
|
+
entities: import("../../model").Query[];
|
|
34
|
+
}, TError, TData, QueryKey> | undefined;
|
|
35
|
+
request?: SecondParameter<typeof paRequest>;
|
|
36
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
37
|
+
entities: import("../../model").Query[];
|
|
38
|
+
}, TError, TData, QueryKey> & {
|
|
39
|
+
queryKey: QueryKey;
|
|
40
|
+
};
|
|
41
|
+
export type ListQueriesQueryResult = NonNullable<Awaited<ReturnType<typeof listQueries>>>;
|
|
42
|
+
export type ListQueriesQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
43
|
+
/**
|
|
44
|
+
* @summary List statements
|
|
45
|
+
*/
|
|
46
|
+
export declare function useListQueries<TData = Awaited<ReturnType<typeof listQueries>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListQueriesParams, options?: {
|
|
47
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listQueries>>, TError, TData>;
|
|
48
|
+
request?: SecondParameter<typeof paRequest>;
|
|
49
|
+
}): UseQueryResult<TData, TError> & {
|
|
50
|
+
queryKey: QueryKey;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Lists the statistics of YSQL, YCQL and background statements over the time range, which
|
|
54
|
+
* defaults to the last day. Only statements with activity in the time range are listed; for
|
|
55
|
+
* one statement whatever its activity, use `getQueryStats`. Ordered by `sort_by`, descending
|
|
56
|
+
* by default.
|
|
57
|
+
* @summary List statement statistics
|
|
58
|
+
*/
|
|
59
|
+
export declare const listQueryStats: (universeId: string, params?: ListQueryStatsParams, options?: SecondParameter<typeof paRequest>) => Promise<QueryStatsPagedResp>;
|
|
60
|
+
export declare const getListQueryStatsQueryKey: (universeId: string, params?: ListQueryStatsParams) => readonly [`/universes/${string}/query-stats`, ...ListQueryStatsParams[]];
|
|
61
|
+
export declare const getListQueryStatsQueryOptions: <TData = import("../../model").Pagination & {
|
|
62
|
+
entities: QueryStats[];
|
|
63
|
+
}, TError = import("../../model").Error>(universeId: string, params?: ListQueryStatsParams, options?: {
|
|
64
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
65
|
+
entities: QueryStats[];
|
|
66
|
+
}, TError, TData, QueryKey> | undefined;
|
|
67
|
+
request?: SecondParameter<typeof paRequest>;
|
|
68
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
69
|
+
entities: QueryStats[];
|
|
70
|
+
}, TError, TData, QueryKey> & {
|
|
71
|
+
queryKey: QueryKey;
|
|
72
|
+
};
|
|
73
|
+
export type ListQueryStatsQueryResult = NonNullable<Awaited<ReturnType<typeof listQueryStats>>>;
|
|
74
|
+
export type ListQueryStatsQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
75
|
+
/**
|
|
76
|
+
* @summary List statement statistics
|
|
77
|
+
*/
|
|
78
|
+
export declare function useListQueryStats<TData = Awaited<ReturnType<typeof listQueryStats>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListQueryStatsParams, options?: {
|
|
79
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listQueryStats>>, TError, TData>;
|
|
80
|
+
request?: SecondParameter<typeof paRequest>;
|
|
81
|
+
}): UseQueryResult<TData, TError> & {
|
|
82
|
+
queryKey: QueryKey;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Returns one statement and its statistics over the time range, which defaults to the last
|
|
86
|
+
* day. Unlike `listQueryStats`, it returns the statement even without activity in the time
|
|
87
|
+
* range. For a YSQL statement, `info.plans` holds the execution plans, recorded by Query Plan
|
|
88
|
+
* Management, that were used in the time range. Unlike v1, which returned every retained plan
|
|
89
|
+
* when called without a start time, older plans need an earlier `start_time`. A background
|
|
90
|
+
* activity's id (0 to 13) is only found with `db_id` 0.
|
|
91
|
+
* @summary Get statement statistics
|
|
92
|
+
*/
|
|
93
|
+
export declare const getQueryStats: (universeId: string, queryKeyParam: string, params?: GetQueryStatsParams, options?: SecondParameter<typeof paRequest>) => Promise<QueryStats>;
|
|
94
|
+
export declare const getGetQueryStatsQueryKey: (universeId: string, queryKeyParam: string, params?: GetQueryStatsParams) => readonly [`/universes/${string}/query-stats/${string}`, ...GetQueryStatsParams[]];
|
|
95
|
+
export declare const getGetQueryStatsQueryOptions: <TData = QueryStats, TError = import("../../model").Error>(universeId: string, queryKeyParam: string, params?: GetQueryStatsParams, options?: {
|
|
96
|
+
query?: UseQueryOptions<QueryStats, TError, TData, QueryKey> | undefined;
|
|
97
|
+
request?: SecondParameter<typeof paRequest>;
|
|
98
|
+
} | undefined) => UseQueryOptions<QueryStats, TError, TData, QueryKey> & {
|
|
99
|
+
queryKey: QueryKey;
|
|
100
|
+
};
|
|
101
|
+
export type GetQueryStatsQueryResult = NonNullable<Awaited<ReturnType<typeof getQueryStats>>>;
|
|
102
|
+
export type GetQueryStatsQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
103
|
+
/**
|
|
104
|
+
* @summary Get statement statistics
|
|
105
|
+
*/
|
|
106
|
+
export declare function useGetQueryStats<TData = Awaited<ReturnType<typeof getQueryStats>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, queryKeyParam: string, params?: GetQueryStatsParams, options?: {
|
|
107
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getQueryStats>>, TError, TData>;
|
|
108
|
+
request?: SecondParameter<typeof paRequest>;
|
|
109
|
+
}): UseQueryResult<TData, TError> & {
|
|
110
|
+
queryKey: QueryKey;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Lists the statistics of YSQL databases and YCQL keyspaces over the time range, which
|
|
114
|
+
* defaults to the last day. A keyspace has `cpu.universe_ratio`, from active session history,
|
|
115
|
+
* but not the other `cpu` figures or `storage`, which are YSQL metrics. `load.total_eps_ratio`
|
|
116
|
+
* is not set, and `summary` only sets `total_size_bytes`. Ordered by `sort_by`, descending by
|
|
117
|
+
* default.
|
|
118
|
+
* @summary List database statistics
|
|
119
|
+
*/
|
|
120
|
+
export declare const listDatabaseStats: (universeId: string, params?: ListDatabaseStatsParams, options?: SecondParameter<typeof paRequest>) => Promise<DatabaseStatsPagedResp>;
|
|
121
|
+
export declare const getListDatabaseStatsQueryKey: (universeId: string, params?: ListDatabaseStatsParams) => readonly [`/universes/${string}/database-stats`, ...ListDatabaseStatsParams[]];
|
|
122
|
+
export declare const getListDatabaseStatsQueryOptions: <TData = import("../../model").Pagination & {
|
|
123
|
+
summary?: import("../../model").StatsSummary | undefined;
|
|
124
|
+
entities: import("../../model").DatabaseStats[];
|
|
125
|
+
}, TError = import("../../model").Error>(universeId: string, params?: ListDatabaseStatsParams, options?: {
|
|
126
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
127
|
+
summary?: import("../../model").StatsSummary | undefined;
|
|
128
|
+
entities: import("../../model").DatabaseStats[];
|
|
129
|
+
}, TError, TData, QueryKey> | undefined;
|
|
130
|
+
request?: SecondParameter<typeof paRequest>;
|
|
131
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
132
|
+
summary?: import("../../model").StatsSummary | undefined;
|
|
133
|
+
entities: import("../../model").DatabaseStats[];
|
|
134
|
+
}, TError, TData, QueryKey> & {
|
|
135
|
+
queryKey: QueryKey;
|
|
136
|
+
};
|
|
137
|
+
export type ListDatabaseStatsQueryResult = NonNullable<Awaited<ReturnType<typeof listDatabaseStats>>>;
|
|
138
|
+
export type ListDatabaseStatsQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
139
|
+
/**
|
|
140
|
+
* @summary List database statistics
|
|
141
|
+
*/
|
|
142
|
+
export declare function useListDatabaseStats<TData = Awaited<ReturnType<typeof listDatabaseStats>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListDatabaseStatsParams, options?: {
|
|
143
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listDatabaseStats>>, TError, TData>;
|
|
144
|
+
request?: SecondParameter<typeof paRequest>;
|
|
145
|
+
}): UseQueryResult<TData, TError> & {
|
|
146
|
+
queryKey: QueryKey;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Lists statistics of the universe's nodes over the time range, which defaults to the last
|
|
150
|
+
* day. Ordered by `sort_by`, descending by default.
|
|
151
|
+
* @summary List node statistics
|
|
152
|
+
*/
|
|
153
|
+
export declare const listNodeStats: (universeId: string, params?: ListNodeStatsParams, options?: SecondParameter<typeof paRequest>) => Promise<NodeStatsPagedResp>;
|
|
154
|
+
export declare const getListNodeStatsQueryKey: (universeId: string, params?: ListNodeStatsParams) => readonly [`/universes/${string}/node-stats`, ...ListNodeStatsParams[]];
|
|
155
|
+
export declare const getListNodeStatsQueryOptions: <TData = import("../../model").Pagination & {
|
|
156
|
+
entities: import("../../model").NodeStats[];
|
|
157
|
+
}, TError = import("../../model").Error>(universeId: string, params?: ListNodeStatsParams, options?: {
|
|
158
|
+
query?: UseQueryOptions<import("../../model").Pagination & {
|
|
159
|
+
entities: import("../../model").NodeStats[];
|
|
160
|
+
}, TError, TData, QueryKey> | undefined;
|
|
161
|
+
request?: SecondParameter<typeof paRequest>;
|
|
162
|
+
} | undefined) => UseQueryOptions<import("../../model").Pagination & {
|
|
163
|
+
entities: import("../../model").NodeStats[];
|
|
164
|
+
}, TError, TData, QueryKey> & {
|
|
165
|
+
queryKey: QueryKey;
|
|
166
|
+
};
|
|
167
|
+
export type ListNodeStatsQueryResult = NonNullable<Awaited<ReturnType<typeof listNodeStats>>>;
|
|
168
|
+
export type ListNodeStatsQueryError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse;
|
|
169
|
+
/**
|
|
170
|
+
* @summary List node statistics
|
|
171
|
+
*/
|
|
172
|
+
export declare function useListNodeStats<TData = Awaited<ReturnType<typeof listNodeStats>>, TError = BadRequestResponse | UnauthorizedResponse | ForbiddenResponse | NotFoundResponse | InternalErrorResponse>(universeId: string, params?: ListNodeStatsParams, options?: {
|
|
173
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof listNodeStats>>, TError, TData>;
|
|
174
|
+
request?: SecondParameter<typeof paRequest>;
|
|
175
|
+
}): UseQueryResult<TData, TError> & {
|
|
176
|
+
queryKey: QueryKey;
|
|
177
|
+
};
|
|
178
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './api/anomaly/anomaly';
|
|
2
|
+
export * from './api/customer/customer';
|
|
3
|
+
export * from './api/export-config/export-config';
|
|
4
|
+
export * from './api/graph/graph';
|
|
5
|
+
export * from './api/info/info';
|
|
6
|
+
export * from './api/runtime-config/runtime-config';
|
|
7
|
+
export * from './api/schema/schema';
|
|
8
|
+
export * from './api/support-bundle/support-bundle';
|
|
9
|
+
export * from './api/universe/universe';
|
|
10
|
+
export * from './api/user/user';
|
|
11
|
+
export * from './api/workload/workload';
|
|
@@ -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
|
+
/**
|
|
13
|
+
* Activity to leave out of the active session history the rows are ranked by.
|
|
14
|
+
*/
|
|
15
|
+
export interface ActivityExclusions {
|
|
16
|
+
/** Leave out activity in these wait event types. */
|
|
17
|
+
exclude_wait_event_types?: string[];
|
|
18
|
+
/** Leave out activity in these wait events. */
|
|
19
|
+
exclude_wait_events?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Leave out the activity of these statements, by the `query_id` statement statistics report: a YSQL or YCQL query id, or a background activity's id (0 to 13).
|
|
22
|
+
* @items.pattern ^-?\d+$
|
|
23
|
+
*/
|
|
24
|
+
exclude_query_ids?: string[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* When a statement was first and last seen active.
|
|
14
|
+
*/
|
|
15
|
+
export interface ActivityPeriod {
|
|
16
|
+
/** When the statement was first seen active. */
|
|
17
|
+
readonly first_active?: string;
|
|
18
|
+
/** When the statement was last seen active. */
|
|
19
|
+
readonly last_active?: string;
|
|
20
|
+
}
|