@harnessio/react-chaos-manager-client 1.5.0 → 1.5.1-beta.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.
|
@@ -4,12 +4,13 @@ import type { ApiRestError } from '../schemas/ApiRestError';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface GetChaosPipelineExecutionQueryPathParams {
|
|
6
6
|
experimentId: string;
|
|
7
|
-
experimentRunId: string;
|
|
8
7
|
}
|
|
9
8
|
export interface GetChaosPipelineExecutionQueryQueryParams {
|
|
10
9
|
accountIdentifier: string;
|
|
11
10
|
organizationIdentifier: string;
|
|
12
11
|
projectIdentifier: string;
|
|
12
|
+
notifyId: string;
|
|
13
|
+
experimentRunId: string;
|
|
13
14
|
}
|
|
14
15
|
export type GetChaosPipelineExecutionOkResponse = ChaosExecutionNodesChaosExecutionResponse;
|
|
15
16
|
export type GetChaosPipelineExecutionErrorResponse = ApiRestError;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getChaosPipelineExecution(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/${props.experimentId}
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/${props.experimentId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get a chaos pipeline execution
|
|
11
11
|
*/
|
|
12
12
|
export function useGetChaosPipelineExecutionQuery(props, options) {
|
|
13
|
-
return useQuery(['getChaosPipelineExecution', props.experimentId, props.
|
|
13
|
+
return useQuery(['getChaosPipelineExecution', props.experimentId, props.queryParams], ({ signal }) => getChaosPipelineExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,7 +3,10 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
|
3
3
|
export interface K8sfaultK8SFault {
|
|
4
4
|
description?: string;
|
|
5
5
|
identity?: string;
|
|
6
|
+
infras?: string[];
|
|
7
|
+
keywords?: string[];
|
|
6
8
|
name?: string;
|
|
9
|
+
platforms?: string[];
|
|
7
10
|
revision?: number;
|
|
8
11
|
spec?: K8sfaultK8SFaultSpec;
|
|
9
12
|
tags?: string[];
|
package/package.json
CHANGED