@harnessio/react-chaos-manager-client 1.73.0 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chaos-manager/src/services/hooks/useCleanupChaosResourcesV3Mutation.d.ts +34 -0
- package/dist/chaos-manager/src/services/hooks/useCleanupChaosResourcesV3Mutation.js +16 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosCleanupStatusV3Query.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosCleanupStatusV3Query.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetCleanupCommandUnitStatusesQuery.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useGetCleanupCommandUnitStatusesQuery.js +15 -0
- package/dist/chaos-manager/src/services/hooks/useGetProbesInStepExecutionQuery.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetProbesInStepExecutionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosServiceLoadTestsQuery.d.ts +46 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosServiceLoadTestsQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +17 -0
- package/dist/chaos-manager/src/services/index.js +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunRunContainerStatus.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunRunContainerStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunRunFailureDetails.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunRunFailureDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesListLoadTestsResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesListLoadTestsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLoadTestSummaryResponse.d.ts +31 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLoadTestSummaryResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentRunUpdateExperimentRunWithErrorRequest.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentRunUpdateExperimentRunWithErrorRequest.js +0 -3
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsCleanupExperimentRunResourcesBody.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsCleanupExperimentRunResourcesBody.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsCleanupExperimentRunResourcesResponse.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsCleanupExperimentRunResourcesResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetCleanupStatusResponse.d.ts +55 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetCleanupStatusResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentrunsCleanupExperimentRunResourcesResponse } from '../schemas/ExperimentrunsCleanupExperimentRunResourcesResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ExperimentrunsCleanupExperimentRunResourcesBody } from '../schemas/ExperimentrunsCleanupExperimentRunResourcesBody';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CleanupChaosResourcesV3MutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CleanupChaosResourcesV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type CleanupChaosResourcesV3RequestBody = ExperimentrunsCleanupExperimentRunResourcesBody;
|
|
17
|
+
export type CleanupChaosResourcesV3OkResponse = ExperimentrunsCleanupExperimentRunResourcesResponse;
|
|
18
|
+
export type CleanupChaosResourcesV3ErrorResponse = ApiRestError;
|
|
19
|
+
export interface CleanupChaosResourcesV3Props extends CleanupChaosResourcesV3MutationPathParams, Omit<FetcherOptions<CleanupChaosResourcesV3MutationQueryParams, CleanupChaosResourcesV3RequestBody>, 'url'> {
|
|
20
|
+
queryParams: CleanupChaosResourcesV3MutationQueryParams;
|
|
21
|
+
body: CleanupChaosResourcesV3RequestBody;
|
|
22
|
+
}
|
|
23
|
+
export interface CleanupChaosResourcesV3ResponseContainer {
|
|
24
|
+
body: CleanupChaosResourcesV3OkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function cleanupChaosResourcesV3(props: CleanupChaosResourcesV3Props): Promise<CleanupChaosResourcesV3ResponseContainer>;
|
|
28
|
+
export type CleanupChaosResourcesV3MutationProps<T extends keyof CleanupChaosResourcesV3Props> = Omit<CleanupChaosResourcesV3Props, T> & Partial<Pick<CleanupChaosResourcesV3Props, T>>;
|
|
29
|
+
/**
|
|
30
|
+
* Submits a cleanup of the resources applied by a run (identified by experimentRunId). Deletion scope is always derived server-side from the run id (ownership label + infra namespace) and is not client-controllable.
|
|
31
|
+
* Cleanup is single-flight per run: a same-kind re-submit while one is in-flight is idempotent (returns the existing taskId), and a different-kind (dry-run vs real) submit returns 409.
|
|
32
|
+
* The write path returns 403 when CHAOS_RESOURCE_CLEANUP_ENABLED is off.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useCleanupChaosResourcesV3Mutation<T extends keyof CleanupChaosResourcesV3Props>(props: Pick<Partial<CleanupChaosResourcesV3Props>, T>, options?: Omit<UseMutationOptions<CleanupChaosResourcesV3ResponseContainer, CleanupChaosResourcesV3ErrorResponse, CleanupChaosResourcesV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CleanupChaosResourcesV3ResponseContainer, ApiRestError, CleanupChaosResourcesV3MutationProps<T>, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function cleanupChaosResourcesV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/cleanup`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Submits a cleanup of the resources applied by a run (identified by experimentRunId). Deletion scope is always derived server-side from the run id (ownership label + infra namespace) and is not client-controllable.
|
|
11
|
+
* Cleanup is single-flight per run: a same-kind re-submit while one is in-flight is idempotent (returns the existing taskId), and a different-kind (dry-run vs real) submit returns 409.
|
|
12
|
+
* The write path returns 403 when CHAOS_RESOURCE_CLEANUP_ENABLED is off.
|
|
13
|
+
*/
|
|
14
|
+
export function useCleanupChaosResourcesV3Mutation(props, options) {
|
|
15
|
+
return useMutation((mutateProps) => cleanupChaosResourcesV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentrunsGetCleanupStatusResponse } from '../schemas/ExperimentrunsGetCleanupStatusResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosCleanupStatusV3QueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetChaosCleanupStatusV3QueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
experimentRunId?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetChaosCleanupStatusV3OkResponse = ExperimentrunsGetCleanupStatusResponse;
|
|
17
|
+
export type GetChaosCleanupStatusV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetChaosCleanupStatusV3Props extends GetChaosCleanupStatusV3QueryPathParams, Omit<FetcherOptions<GetChaosCleanupStatusV3QueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetChaosCleanupStatusV3QueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetChaosCleanupStatusV3ResponseContainer {
|
|
22
|
+
body: GetChaosCleanupStatusV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getChaosCleanupStatusV3(props: GetChaosCleanupStatusV3Props): Promise<GetChaosCleanupStatusV3ResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the latest cleanup delegate task for a run (identified by experimentRunId) plus the derived flags inProgress and canStartNewCleanup. Read-only and safe to poll.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetChaosCleanupStatusV3Query(props: GetChaosCleanupStatusV3Props, options?: Omit<UseQueryOptions<GetChaosCleanupStatusV3ResponseContainer, GetChaosCleanupStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosCleanupStatusV3ResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getChaosCleanupStatusV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/cleanup`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the latest cleanup delegate task for a run (identified by experimentRunId) plus the derived flags inProgress and canStartNewCleanup. Read-only and safe to poll.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosCleanupStatusV3Query(props, options) {
|
|
13
|
+
return useQuery(['getChaosCleanupStatusV3', props.identity, props.queryParams], ({ signal }) => getChaosCleanupStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { LogserviceCommandUnitStatusResponse } from '../schemas/LogserviceCommandUnitStatusResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetCleanupCommandUnitStatusesQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
uid: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetCleanupCommandUnitStatusesOkResponse = LogserviceCommandUnitStatusResponse;
|
|
12
|
+
export type GetCleanupCommandUnitStatusesErrorResponse = ApiRestError;
|
|
13
|
+
export interface GetCleanupCommandUnitStatusesProps extends Omit<FetcherOptions<GetCleanupCommandUnitStatusesQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetCleanupCommandUnitStatusesQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export interface GetCleanupCommandUnitStatusesResponseContainer {
|
|
17
|
+
body: GetCleanupCommandUnitStatusesOkResponse;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
}
|
|
20
|
+
export declare function getCleanupCommandUnitStatuses(props: GetCleanupCommandUnitStatusesProps): Promise<GetCleanupCommandUnitStatusesResponseContainer>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the status (not_started, running, completed) of the cleanup delegate task's single "Cleanup" command unit by checking log-service stream/blob endpoints.
|
|
23
|
+
* The returned logKey can be used to stream cleanup logs from log-service exactly like apply.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetCleanupCommandUnitStatusesQuery(props: GetCleanupCommandUnitStatusesProps, options?: Omit<UseQueryOptions<GetCleanupCommandUnitStatusesResponseContainer, GetCleanupCommandUnitStatusesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCleanupCommandUnitStatusesResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getCleanupCommandUnitStatuses(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/delegate-task/cleanup-command-unit-status`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the status (not_started, running, completed) of the cleanup delegate task's single "Cleanup" command unit by checking log-service stream/blob endpoints.
|
|
11
|
+
* The returned logKey can be used to stream cleanup logs from log-service exactly like apply.
|
|
12
|
+
*/
|
|
13
|
+
export function useGetCleanupCommandUnitStatusesQuery(props, options) {
|
|
14
|
+
return useQuery(['getCleanupCommandUnitStatuses', props.queryParams], ({ signal }) => getCleanupCommandUnitStatuses(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesProbeDetailsInExperimentResponse } from '../schemas/TypesProbeDetailsInExperimentResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { TypesProbeDetailsInExperimentRequest } from '../schemas/TypesProbeDetailsInExperimentRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface GetProbesInStepExecutionQueryQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetProbesInStepExecutionRequestBody = TypesProbeDetailsInExperimentRequest;
|
|
12
|
+
export type GetProbesInStepExecutionOkResponse = TypesProbeDetailsInExperimentResponse;
|
|
13
|
+
export type GetProbesInStepExecutionErrorResponse = ApiRestError;
|
|
14
|
+
export interface GetProbesInStepExecutionProps extends Omit<FetcherOptions<GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody>, 'url'> {
|
|
15
|
+
queryParams: GetProbesInStepExecutionQueryQueryParams;
|
|
16
|
+
body: GetProbesInStepExecutionRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface GetProbesInStepExecutionResponseContainer {
|
|
19
|
+
body: GetProbesInStepExecutionOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getProbesInStepExecution(props: GetProbesInStepExecutionProps): Promise<GetProbesInStepExecutionResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetProbesInStepExecutionQuery(props: GetProbesInStepExecutionProps, options?: Omit<UseQueryOptions<GetProbesInStepExecutionResponseContainer, GetProbesInStepExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProbesInStepExecutionResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getProbesInStepExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/step-execution`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProbesInStepExecutionQuery(props, options) {
|
|
13
|
+
return useQuery(['getProbesInStepExecution', props.queryParams, props.body], ({ signal }) => getProbesInStepExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosservicesListLoadTestsResponse } from '../schemas/ChaosservicesListLoadTestsResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListChaosServiceLoadTestsQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListChaosServiceLoadTestsQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
environmentIds?: string;
|
|
12
|
+
includeAllScope?: boolean;
|
|
13
|
+
infraIds?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @default 15
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
organizationIdentifier?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
parentUniqueId?: string;
|
|
24
|
+
projectIdentifier?: string;
|
|
25
|
+
search?: string;
|
|
26
|
+
'-'?: string;
|
|
27
|
+
sortAscending?: boolean;
|
|
28
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
29
|
+
tags?: string;
|
|
30
|
+
toolType?: string;
|
|
31
|
+
useParentUniqueID?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export type ListChaosServiceLoadTestsOkResponse = ChaosservicesListLoadTestsResponse;
|
|
34
|
+
export type ListChaosServiceLoadTestsErrorResponse = ApiRestError;
|
|
35
|
+
export interface ListChaosServiceLoadTestsProps extends ListChaosServiceLoadTestsQueryPathParams, Omit<FetcherOptions<ListChaosServiceLoadTestsQueryQueryParams, unknown>, 'url'> {
|
|
36
|
+
queryParams: ListChaosServiceLoadTestsQueryQueryParams;
|
|
37
|
+
}
|
|
38
|
+
export interface ListChaosServiceLoadTestsResponseContainer {
|
|
39
|
+
body: ListChaosServiceLoadTestsOkResponse;
|
|
40
|
+
headers: Headers;
|
|
41
|
+
}
|
|
42
|
+
export declare function listChaosServiceLoadTests(props: ListChaosServiceLoadTestsProps): Promise<ListChaosServiceLoadTestsResponseContainer>;
|
|
43
|
+
/**
|
|
44
|
+
* List the load tests whose serviceReferences include the given chaos service.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useListChaosServiceLoadTestsQuery(props: ListChaosServiceLoadTestsProps, options?: Omit<UseQueryOptions<ListChaosServiceLoadTestsResponseContainer, ListChaosServiceLoadTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosServiceLoadTestsResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listChaosServiceLoadTests(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/chaos-services/${props.identity}/load-tests`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List the load tests whose serviceReferences include the given chaos service.
|
|
11
|
+
*/
|
|
12
|
+
export function useListChaosServiceLoadTestsQuery(props, options) {
|
|
13
|
+
return useQuery(['listChaosServiceLoadTests', props.identity, props.queryParams], ({ signal }) => listChaosServiceLoadTests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -14,6 +14,8 @@ export type { BulkUpdateRecommendationStatusErrorResponse, BulkUpdateRecommendat
|
|
|
14
14
|
export { bulkUpdateRecommendationStatus, useBulkUpdateRecommendationStatusMutation, } from './hooks/useBulkUpdateRecommendationStatusMutation';
|
|
15
15
|
export type { CanRetryExperimentCreationErrorResponse, CanRetryExperimentCreationOkResponse, CanRetryExperimentCreationProps, CanRetryExperimentCreationQueryPathParams, CanRetryExperimentCreationQueryQueryParams, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
16
16
|
export { canRetryExperimentCreation, useCanRetryExperimentCreationQuery, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
17
|
+
export type { CleanupChaosResourcesV3ErrorResponse, CleanupChaosResourcesV3MutationPathParams, CleanupChaosResourcesV3MutationProps, CleanupChaosResourcesV3MutationQueryParams, CleanupChaosResourcesV3OkResponse, CleanupChaosResourcesV3Props, CleanupChaosResourcesV3RequestBody, } from './hooks/useCleanupChaosResourcesV3Mutation';
|
|
18
|
+
export { cleanupChaosResourcesV3, useCleanupChaosResourcesV3Mutation, } from './hooks/useCleanupChaosResourcesV3Mutation';
|
|
17
19
|
export type { CompareExperimentTemplateRevisionsErrorResponse, CompareExperimentTemplateRevisionsOkResponse, CompareExperimentTemplateRevisionsProps, CompareExperimentTemplateRevisionsQueryPathParams, CompareExperimentTemplateRevisionsQueryQueryParams, } from './hooks/useCompareExperimentTemplateRevisionsQuery';
|
|
18
20
|
export { compareExperimentTemplateRevisions, useCompareExperimentTemplateRevisionsQuery, } from './hooks/useCompareExperimentTemplateRevisionsQuery';
|
|
19
21
|
export type { CompareFaultTemplateRevisionsErrorResponse, CompareFaultTemplateRevisionsOkResponse, CompareFaultTemplateRevisionsProps, CompareFaultTemplateRevisionsQueryPathParams, CompareFaultTemplateRevisionsQueryQueryParams, } from './hooks/useCompareFaultTemplateRevisionsQuery';
|
|
@@ -132,6 +134,8 @@ export type { GetActionTemplateErrorResponse, GetActionTemplateOkResponse, GetAc
|
|
|
132
134
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
133
135
|
export type { GetActionTemplateRevisionDifferenceErrorResponse, GetActionTemplateRevisionDifferenceOkResponse, GetActionTemplateRevisionDifferenceProps, GetActionTemplateRevisionDifferenceQueryPathParams, GetActionTemplateRevisionDifferenceQueryQueryParams, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
134
136
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
137
|
+
export type { GetChaosCleanupStatusV3ErrorResponse, GetChaosCleanupStatusV3OkResponse, GetChaosCleanupStatusV3Props, GetChaosCleanupStatusV3QueryPathParams, GetChaosCleanupStatusV3QueryQueryParams, } from './hooks/useGetChaosCleanupStatusV3Query';
|
|
138
|
+
export { getChaosCleanupStatusV3, useGetChaosCleanupStatusV3Query, } from './hooks/useGetChaosCleanupStatusV3Query';
|
|
135
139
|
export type { GetChaosComponentVariableInternalErrorResponse, GetChaosComponentVariableInternalOkResponse, GetChaosComponentVariableInternalProps, GetChaosComponentVariableInternalQueryQueryParams, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
136
140
|
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
137
141
|
export type { GetChaosComponentVariableErrorResponse, GetChaosComponentVariableOkResponse, GetChaosComponentVariableProps, GetChaosComponentVariableQueryQueryParams, } from './hooks/useGetChaosComponentVariableQuery';
|
|
@@ -166,6 +170,8 @@ export type { GetChaosV2ExperimentRunErrorResponse, GetChaosV2ExperimentRunOkRes
|
|
|
166
170
|
export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hooks/useGetChaosV2ExperimentRunQuery';
|
|
167
171
|
export type { GetChaosV2ExperimentVariablesErrorResponse, GetChaosV2ExperimentVariablesOkResponse, GetChaosV2ExperimentVariablesProps, GetChaosV2ExperimentVariablesQueryPathParams, GetChaosV2ExperimentVariablesQueryQueryParams, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
168
172
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
173
|
+
export type { GetCleanupCommandUnitStatusesErrorResponse, GetCleanupCommandUnitStatusesOkResponse, GetCleanupCommandUnitStatusesProps, GetCleanupCommandUnitStatusesQueryQueryParams, } from './hooks/useGetCleanupCommandUnitStatusesQuery';
|
|
174
|
+
export { getCleanupCommandUnitStatuses, useGetCleanupCommandUnitStatusesQuery, } from './hooks/useGetCleanupCommandUnitStatusesQuery';
|
|
169
175
|
export type { GetCommandUnitStatusesErrorResponse, GetCommandUnitStatusesOkResponse, GetCommandUnitStatusesProps, GetCommandUnitStatusesQueryQueryParams, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
170
176
|
export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
171
177
|
export type { GetConditionErrorResponse, GetConditionOkResponse, GetConditionProps, GetConditionQueryPathParams, GetConditionQueryQueryParams, } from './hooks/useGetConditionQuery';
|
|
@@ -250,6 +256,8 @@ export type { GetProbeTemplateErrorResponse, GetProbeTemplateOkResponse, GetProb
|
|
|
250
256
|
export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
|
|
251
257
|
export type { GetProbesInExperimentErrorResponse, GetProbesInExperimentOkResponse, GetProbesInExperimentProps, GetProbesInExperimentQueryQueryParams, GetProbesInExperimentRequestBody, } from './hooks/useGetProbesInExperimentQuery';
|
|
252
258
|
export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
|
|
259
|
+
export type { GetProbesInStepExecutionErrorResponse, GetProbesInStepExecutionOkResponse, GetProbesInStepExecutionProps, GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
260
|
+
export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
253
261
|
export type { GetRecommendationErrorResponse, GetRecommendationOkResponse, GetRecommendationProps, GetRecommendationQueryQueryParams, } from './hooks/useGetRecommendationQuery';
|
|
254
262
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
255
263
|
export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetResourceUsageProps, } from './hooks/useGetResourceUsageQuery';
|
|
@@ -308,6 +316,8 @@ export type { ListChaosHubErrorResponse, ListChaosHubOkResponse, ListChaosHubPro
|
|
|
308
316
|
export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
|
|
309
317
|
export type { ListChaosServiceExecutionsErrorResponse, ListChaosServiceExecutionsOkResponse, ListChaosServiceExecutionsProps, ListChaosServiceExecutionsQueryPathParams, ListChaosServiceExecutionsQueryQueryParams, } from './hooks/useListChaosServiceExecutionsQuery';
|
|
310
318
|
export { listChaosServiceExecutions, useListChaosServiceExecutionsQuery, } from './hooks/useListChaosServiceExecutionsQuery';
|
|
319
|
+
export type { ListChaosServiceLoadTestsErrorResponse, ListChaosServiceLoadTestsOkResponse, ListChaosServiceLoadTestsProps, ListChaosServiceLoadTestsQueryPathParams, ListChaosServiceLoadTestsQueryQueryParams, } from './hooks/useListChaosServiceLoadTestsQuery';
|
|
320
|
+
export { listChaosServiceLoadTests, useListChaosServiceLoadTestsQuery, } from './hooks/useListChaosServiceLoadTestsQuery';
|
|
311
321
|
export type { ListChaosServicesErrorResponse, ListChaosServicesOkResponse, ListChaosServicesProps, ListChaosServicesQueryQueryParams, } from './hooks/useListChaosServicesQuery';
|
|
312
322
|
export { listChaosServices, useListChaosServicesQuery } from './hooks/useListChaosServicesQuery';
|
|
313
323
|
export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkResponse, ListChaosV2ExperimentProps, ListChaosV2ExperimentQueryQueryParams, } from './hooks/useListChaosV2ExperimentQuery';
|
|
@@ -578,6 +588,8 @@ export type { ChaosExperimentRunExperimentType } from './schemas/ChaosExperiment
|
|
|
578
588
|
export type { ChaosExperimentRunFaults } from './schemas/ChaosExperimentRunFaults';
|
|
579
589
|
export type { ChaosExperimentRunProbe } from './schemas/ChaosExperimentRunProbe';
|
|
580
590
|
export type { ChaosExperimentRunRuleDetails } from './schemas/ChaosExperimentRunRuleDetails';
|
|
591
|
+
export type { ChaosExperimentRunRunContainerStatus } from './schemas/ChaosExperimentRunRunContainerStatus';
|
|
592
|
+
export type { ChaosExperimentRunRunFailureDetails } from './schemas/ChaosExperimentRunRunFailureDetails';
|
|
581
593
|
export type { ChaosExperimentRunSecurityGovernanceNode } from './schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
582
594
|
export type { ChaosExperimentRunSecurityGovernanceNodeData } from './schemas/ChaosExperimentRunSecurityGovernanceNodeData';
|
|
583
595
|
export type { ChaosExperimentRunTemplateDetails } from './schemas/ChaosExperimentRunTemplateDetails';
|
|
@@ -706,6 +718,8 @@ export type { ChaosservicesDeleteResponse } from './schemas/ChaosservicesDeleteR
|
|
|
706
718
|
export type { ChaosservicesExperimentExecutionResponse } from './schemas/ChaosservicesExperimentExecutionResponse';
|
|
707
719
|
export type { ChaosservicesListChaosServiceResponse } from './schemas/ChaosservicesListChaosServiceResponse';
|
|
708
720
|
export type { ChaosservicesListExperimentExecutionsResponse } from './schemas/ChaosservicesListExperimentExecutionsResponse';
|
|
721
|
+
export type { ChaosservicesListLoadTestsResponse } from './schemas/ChaosservicesListLoadTestsResponse';
|
|
722
|
+
export type { ChaosservicesLoadTestSummaryResponse } from './schemas/ChaosservicesLoadTestSummaryResponse';
|
|
709
723
|
export type { ChaosservicesServiceProbeAssociation } from './schemas/ChaosservicesServiceProbeAssociation';
|
|
710
724
|
export type { ChaosservicesUpdateRequest } from './schemas/ChaosservicesUpdateRequest';
|
|
711
725
|
export type { ChaosserviceusageInfrastructureType } from './schemas/ChaosserviceusageInfrastructureType';
|
|
@@ -820,6 +834,9 @@ export type { ExperimentTargets } from './schemas/ExperimentTargets';
|
|
|
820
834
|
export type { ExperimentVmWareAuth } from './schemas/ExperimentVmWareAuth';
|
|
821
835
|
export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
|
|
822
836
|
export type { ExperimentWorkloadKind } from './schemas/ExperimentWorkloadKind';
|
|
837
|
+
export type { ExperimentrunsCleanupExperimentRunResourcesBody } from './schemas/ExperimentrunsCleanupExperimentRunResourcesBody';
|
|
838
|
+
export type { ExperimentrunsCleanupExperimentRunResourcesResponse } from './schemas/ExperimentrunsCleanupExperimentRunResourcesResponse';
|
|
839
|
+
export type { ExperimentrunsGetCleanupStatusResponse } from './schemas/ExperimentrunsGetCleanupStatusResponse';
|
|
823
840
|
export type { ExperimentrunsGetExperimentRunResponse } from './schemas/ExperimentrunsGetExperimentRunResponse';
|
|
824
841
|
export type { ExperimentrunsListExperimentRunItem } from './schemas/ExperimentrunsListExperimentRunItem';
|
|
825
842
|
export type { ExperimentrunsListExperimentRunsResponse } from './schemas/ExperimentrunsListExperimentRunsResponse';
|
|
@@ -6,6 +6,7 @@ export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/
|
|
|
6
6
|
export { bulkExperimentTagAdd, useBulkExperimentTagAddMutation, } from './hooks/useBulkExperimentTagAddMutation';
|
|
7
7
|
export { bulkUpdateRecommendationStatus, useBulkUpdateRecommendationStatusMutation, } from './hooks/useBulkUpdateRecommendationStatusMutation';
|
|
8
8
|
export { canRetryExperimentCreation, useCanRetryExperimentCreationQuery, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
9
|
+
export { cleanupChaosResourcesV3, useCleanupChaosResourcesV3Mutation, } from './hooks/useCleanupChaosResourcesV3Mutation';
|
|
9
10
|
export { compareExperimentTemplateRevisions, useCompareExperimentTemplateRevisionsQuery, } from './hooks/useCompareExperimentTemplateRevisionsQuery';
|
|
10
11
|
export { compareFaultTemplateRevisions, useCompareFaultTemplateRevisionsQuery, } from './hooks/useCompareFaultTemplateRevisionsQuery';
|
|
11
12
|
export { createAction, useCreateActionMutation } from './hooks/useCreateActionMutation';
|
|
@@ -65,6 +66,7 @@ export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActi
|
|
|
65
66
|
export { getAction, useGetActionQuery } from './hooks/useGetActionQuery';
|
|
66
67
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
67
68
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
69
|
+
export { getChaosCleanupStatusV3, useGetChaosCleanupStatusV3Query, } from './hooks/useGetChaosCleanupStatusV3Query';
|
|
68
70
|
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
69
71
|
export { getChaosComponentVariable, useGetChaosComponentVariableQuery, } from './hooks/useGetChaosComponentVariableQuery';
|
|
70
72
|
export { getChaosDashboard, useGetChaosDashboardQuery } from './hooks/useGetChaosDashboardQuery';
|
|
@@ -82,6 +84,7 @@ export { getChaosV2Experiment, useGetChaosV2ExperimentQuery, } from './hooks/use
|
|
|
82
84
|
export { getChaosV2ExperimentRunInternalApi, useGetChaosV2ExperimentRunInternalApiMutation, } from './hooks/useGetChaosV2ExperimentRunInternalApiMutation';
|
|
83
85
|
export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hooks/useGetChaosV2ExperimentRunQuery';
|
|
84
86
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
87
|
+
export { getCleanupCommandUnitStatuses, useGetCleanupCommandUnitStatusesQuery, } from './hooks/useGetCleanupCommandUnitStatusesQuery';
|
|
85
88
|
export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
86
89
|
export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
|
|
87
90
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
@@ -124,6 +127,7 @@ export { getProbeManifest, useGetProbeManifestQuery } from './hooks/useGetProbeM
|
|
|
124
127
|
export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
|
|
125
128
|
export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
|
|
126
129
|
export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
|
|
130
|
+
export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
127
131
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
128
132
|
export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
|
|
129
133
|
export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
|
|
@@ -153,6 +157,7 @@ export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hoo
|
|
|
153
157
|
export { listChaosExperimentRunsV3, useListChaosExperimentRunsV3Query, } from './hooks/useListChaosExperimentRunsV3Query';
|
|
154
158
|
export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
|
|
155
159
|
export { listChaosServiceExecutions, useListChaosServiceExecutionsQuery, } from './hooks/useListChaosServiceExecutionsQuery';
|
|
160
|
+
export { listChaosServiceLoadTests, useListChaosServiceLoadTestsQuery, } from './hooks/useListChaosServiceLoadTestsQuery';
|
|
156
161
|
export { listChaosServices, useListChaosServicesQuery } from './hooks/useListChaosServicesQuery';
|
|
157
162
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
158
163
|
export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
|
|
2
2
|
import type { ChaosExperimentRunExperimentType } from '../schemas/ChaosExperimentRunExperimentType';
|
|
3
|
+
import type { ChaosExperimentRunRunFailureDetails } from '../schemas/ChaosExperimentRunRunFailureDetails';
|
|
3
4
|
import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
|
|
4
5
|
import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
|
|
5
6
|
import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
@@ -20,6 +21,7 @@ export interface ChaosExperimentRunChaosExperimentRun {
|
|
|
20
21
|
experimentTags?: string[];
|
|
21
22
|
experimentType?: ChaosExperimentRunExperimentType;
|
|
22
23
|
experimentYaml?: string;
|
|
24
|
+
failureDetails?: ChaosExperimentRunRunFailureDetails;
|
|
23
25
|
faultIDs?: string[];
|
|
24
26
|
faultsAwaited?: number;
|
|
25
27
|
faultsFailed?: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChaosExperimentRunRunContainerStatus } from '../schemas/ChaosExperimentRunRunContainerStatus';
|
|
2
|
+
export interface ChaosExperimentRunRunFailureDetails {
|
|
3
|
+
containerStatuses?: ChaosExperimentRunRunContainerStatus[];
|
|
4
|
+
diagnosticEvents?: string[];
|
|
5
|
+
failedResourceName?: string;
|
|
6
|
+
failureCategory?: string;
|
|
7
|
+
podPhase?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChaosservicesLoadTestSummaryResponse } from '../schemas/ChaosservicesLoadTestSummaryResponse';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface ChaosservicesListLoadTestsResponse {
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: ChaosservicesLoadTestSummaryResponse[];
|
|
6
|
+
pagination?: SharedPaginationResponse;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface ChaosservicesLoadTestSummaryResponse {
|
|
2
|
+
/**
|
|
3
|
+
* account id to access the resource
|
|
4
|
+
*/
|
|
5
|
+
accountIdentifier: string;
|
|
6
|
+
createdAt?: number;
|
|
7
|
+
createdBy?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
envId?: string;
|
|
10
|
+
identity?: string;
|
|
11
|
+
infraId?: string;
|
|
12
|
+
lastExecuted?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* organization id to access the resource
|
|
16
|
+
*/
|
|
17
|
+
organizationIdentifier?: string;
|
|
18
|
+
/**
|
|
19
|
+
* resolved parent scope unique ID (from scope-info API or query param)
|
|
20
|
+
*/
|
|
21
|
+
parentUniqueId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* project id to access the resource
|
|
24
|
+
*/
|
|
25
|
+
projectIdentifier?: string;
|
|
26
|
+
serviceReferences?: string[];
|
|
27
|
+
tags?: string[];
|
|
28
|
+
toolType?: string;
|
|
29
|
+
updatedAt?: number;
|
|
30
|
+
updatedBy?: string;
|
|
31
|
+
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import type { ChaosExperimentRunRunFailureDetails } from '../schemas/ChaosExperimentRunRunFailureDetails';
|
|
1
2
|
export interface ExperimentRunUpdateExperimentRunWithErrorRequest {
|
|
2
3
|
accountIdentifier: string;
|
|
3
4
|
errorResponse?: string;
|
|
4
5
|
experimentID: string;
|
|
5
6
|
experimentRunID: string;
|
|
7
|
+
/**
|
|
8
|
+
* FailureDetails carries optional structured apply-failure diagnostics from
|
|
9
|
+
* k8s-ifs. Absent on the legacy path / older delegates / successful runs, so
|
|
10
|
+
* it is purely additive - existing callers that omit it are unaffected.
|
|
11
|
+
*/
|
|
12
|
+
failureDetails?: ChaosExperimentRunRunFailureDetails;
|
|
6
13
|
notifyID: string;
|
|
7
14
|
organizationIdentifier?: string;
|
|
8
15
|
parentUniqueId?: string;
|
package/dist/chaos-manager/src/services/schemas/ExperimentrunsCleanupExperimentRunResourcesBody.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ExperimentrunsCleanupExperimentRunResourcesBody {
|
|
2
|
+
confirmMassDeletion?: boolean;
|
|
3
|
+
dryRun?: boolean;
|
|
4
|
+
experimentRunId: string;
|
|
5
|
+
forceDelete?: boolean;
|
|
6
|
+
gracePeriodSeconds?: number;
|
|
7
|
+
/**
|
|
8
|
+
* MaxDeletions / ConfirmMassDeletion drive the ng-manager mass-deletion
|
|
9
|
+
* safety gate. Leave zero for the default behaviour; set ConfirmMassDeletion
|
|
10
|
+
* (or a higher/negative MaxDeletions) to proceed after a BLOCKED cleanup.
|
|
11
|
+
*/
|
|
12
|
+
maxDeletions?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ExperimentrunsCleanupExperimentRunResourcesResponse {
|
|
2
|
+
/**
|
|
3
|
+
* correlation id is used to debug micro svc communication
|
|
4
|
+
*/
|
|
5
|
+
correlationID?: string;
|
|
6
|
+
experimentId?: string;
|
|
7
|
+
experimentName?: string;
|
|
8
|
+
isCleanedUp?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* LogUID is the unique-per-cleanup log-streaming id for THIS cleanup. Cleanup
|
|
11
|
+
* is N:1 with a run, so the UI passes logUid (not the run id) as the `uid` to
|
|
12
|
+
* the cleanup command-unit-status endpoint to stream this cleanup's logs.
|
|
13
|
+
*/
|
|
14
|
+
logUid?: string;
|
|
15
|
+
taskId?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface ExperimentrunsGetCleanupStatusResponse {
|
|
2
|
+
canStartNewCleanup?: boolean;
|
|
3
|
+
/**
|
|
4
|
+
* CleanupBlockedReason explains why CanStartNewCleanup is false, so the UI can
|
|
5
|
+
* render an actionable message and gate the cleanup CTA to the phase-appropriate
|
|
6
|
+
* TERMINATE action from a single authoritative signal:
|
|
7
|
+
* - "experimentRunning" (run is Running -> Stop it first),
|
|
8
|
+
* - "queuedNotAborted" (run is Queued/Pending -> Abort it first),
|
|
9
|
+
* - "notTerminal" (any other non-terminal/unknown phase -> terminate first),
|
|
10
|
+
* - "inProgress" (a cleanup is already in-flight).
|
|
11
|
+
* Empty when cleanup is allowed. None are time-retryable: cleanup only ever
|
|
12
|
+
* proceeds once the run is terminal, and the sole bridge there is the terminate
|
|
13
|
+
* action (Stop/Abort), never elapsed time.
|
|
14
|
+
*/
|
|
15
|
+
cleanupBlockedReason?: string;
|
|
16
|
+
/**
|
|
17
|
+
* correlation id is used to debug micro svc communication
|
|
18
|
+
*/
|
|
19
|
+
correlationID?: string;
|
|
20
|
+
createdAt?: number;
|
|
21
|
+
/**
|
|
22
|
+
* DeletedResources is the itemized set the cleanup acted on. On a DRY RUN it is
|
|
23
|
+
* the "would-delete" preview list the UI renders before a real delete; on
|
|
24
|
+
* FAILED/PARTIAL it lists what was removed. Empty on a fully successful real
|
|
25
|
+
* delete (trimmed upstream to bound storage).
|
|
26
|
+
*/
|
|
27
|
+
deletedResources?: string[];
|
|
28
|
+
dryRun?: boolean;
|
|
29
|
+
errorMessage?: string;
|
|
30
|
+
experimentId?: string;
|
|
31
|
+
experimentName?: string;
|
|
32
|
+
experimentRunId?: string;
|
|
33
|
+
failedDeletions?: number;
|
|
34
|
+
failedResources?: string[];
|
|
35
|
+
found?: boolean;
|
|
36
|
+
inProgress?: boolean;
|
|
37
|
+
labelSelector?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LogUID is the unique-per-cleanup log-streaming id of the latest cleanup task;
|
|
40
|
+
* the UI passes it (not the run id) as the `uid` to the cleanup
|
|
41
|
+
* command-unit-status endpoint so the log key resolves to THIS cleanup's logs.
|
|
42
|
+
*/
|
|
43
|
+
logUid?: string;
|
|
44
|
+
namespace?: string;
|
|
45
|
+
status?: string;
|
|
46
|
+
successfulDeletions?: number;
|
|
47
|
+
taskId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Counts are ALWAYS emitted (no omitempty): a cleanup that legitimately found
|
|
50
|
+
* or deleted 0 resources must serialize as 0, not be dropped to null - the UI
|
|
51
|
+
* cannot otherwise distinguish "found zero" from "not reported".
|
|
52
|
+
*/
|
|
53
|
+
totalResourcesFound?: number;
|
|
54
|
+
updatedAt?: number;
|
|
55
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
|
|
2
2
|
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
3
|
+
import type { ChaosExperimentRunRunFailureDetails } from '../schemas/ChaosExperimentRunRunFailureDetails';
|
|
3
4
|
import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
|
|
4
5
|
import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
|
|
5
6
|
import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
@@ -27,6 +28,7 @@ export interface ExperimentrunsGetExperimentRunResponse {
|
|
|
27
28
|
*/
|
|
28
29
|
experimentType?: string;
|
|
29
30
|
experimentYaml?: string;
|
|
31
|
+
failureDetails?: ChaosExperimentRunRunFailureDetails;
|
|
30
32
|
faultIDs?: string[];
|
|
31
33
|
faultsAwaited?: number;
|
|
32
34
|
faultsFailed?: number;
|
package/package.json
CHANGED