@harnessio/react-chaos-manager-client 1.4.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.
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.d.ts +2 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.js +2 -2
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +2 -2
- package/dist/chaos-manager/src/services/index.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +27 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeConditions.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeConditions.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +49 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFault.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from '../schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface GetChaosPipelineStepDetailsQueryPathParams {
|
|
@@ -12,7 +12,7 @@ export interface GetChaosPipelineStepDetailsQueryQueryParams {
|
|
|
12
12
|
organizationIdentifier: string;
|
|
13
13
|
projectIdentifier: string;
|
|
14
14
|
}
|
|
15
|
-
export type GetChaosPipelineStepDetailsOkResponse =
|
|
15
|
+
export type GetChaosPipelineStepDetailsOkResponse = ChaosexperimentpipelineGetChaosPipelineNodesResponse;
|
|
16
16
|
export type GetChaosPipelineStepDetailsErrorResponse = ApiRestError;
|
|
17
17
|
export interface GetChaosPipelineStepDetailsProps extends GetChaosPipelineStepDetailsQueryPathParams, Omit<FetcherOptions<GetChaosPipelineStepDetailsQueryQueryParams, unknown>, 'url'> {
|
|
18
18
|
queryParams: GetChaosPipelineStepDetailsQueryQueryParams;
|
|
@@ -323,6 +323,8 @@ export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructu
|
|
|
323
323
|
export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
|
|
324
324
|
export type { ChaosactiontemplateActionsTemplateCount } from './schemas/ChaosactiontemplateActionsTemplateCount';
|
|
325
325
|
export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
|
|
326
|
+
export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
327
|
+
export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
|
|
326
328
|
export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
|
|
327
329
|
export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
|
|
328
330
|
export type { ChaosfaulttemplateCreateFaultTemplateRequest } from './schemas/ChaosfaulttemplateCreateFaultTemplateRequest';
|
|
@@ -395,13 +397,18 @@ export type { ExecutionInfraType } from './schemas/ExecutionInfraType';
|
|
|
395
397
|
export type { ExecutionProbeData } from './schemas/ExecutionProbeData';
|
|
396
398
|
export type { ExecutionProbeIterations } from './schemas/ExecutionProbeIterations';
|
|
397
399
|
export type { ExecutionPromProbe } from './schemas/ExecutionPromProbe';
|
|
400
|
+
export type { ExperimentActionRef } from './schemas/ExperimentActionRef';
|
|
398
401
|
export type { ExperimentApplication } from './schemas/ExperimentApplication';
|
|
399
402
|
export type { ExperimentChaosInputs } from './schemas/ExperimentChaosInputs';
|
|
400
403
|
export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
|
|
401
404
|
export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
|
|
402
405
|
export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
|
|
406
|
+
export type { ExperimentFaultRef } from './schemas/ExperimentFaultRef';
|
|
403
407
|
export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
|
|
404
408
|
export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
|
|
409
|
+
export type { ExperimentProbeActions } from './schemas/ExperimentProbeActions';
|
|
410
|
+
export type { ExperimentProbeConditions } from './schemas/ExperimentProbeConditions';
|
|
411
|
+
export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
|
|
405
412
|
export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
|
|
406
413
|
export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
|
|
407
414
|
export type { ExperimentSecret } from './schemas/ExperimentSecret';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
|
|
2
|
+
import type { ChaosexperimentpipelineReferenceEntities } from '../schemas/ChaosexperimentpipelineReferenceEntities';
|
|
3
|
+
export interface ChaosexperimentpipelineGetChaosPipelineNodesResponse {
|
|
4
|
+
chaosExecutionNode?: ChaosExecutionNodesChaosExecutionNode;
|
|
5
|
+
refEntities?: ChaosexperimentpipelineReferenceEntities;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExperimentActionRef } from '../schemas/ExperimentActionRef';
|
|
2
|
+
import type { ExperimentFaultRef } from '../schemas/ExperimentFaultRef';
|
|
3
|
+
import type { ExperimentProbeRef } from '../schemas/ExperimentProbeRef';
|
|
4
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
|
+
export interface ChaosexperimentpipelineReferenceEntities {
|
|
6
|
+
actionRef?: ExperimentActionRef;
|
|
7
|
+
faultRef?: ExperimentFaultRef;
|
|
8
|
+
probeRef?: ExperimentProbeRef;
|
|
9
|
+
variables?: TemplateVariable[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -64,6 +64,10 @@ export interface ChaoshubresourcesChaosHubResource {
|
|
|
64
64
|
*/
|
|
65
65
|
isDefaultHub?: boolean;
|
|
66
66
|
isRemoved: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* IsTemplatised denotes if template is available for the fault
|
|
69
|
+
*/
|
|
70
|
+
isTemplatised?: boolean;
|
|
67
71
|
/**
|
|
68
72
|
* K8sFault yml in encoded form (k8s-fault.yaml)
|
|
69
73
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { V1EnvVar } from '../schemas/V1EnvVar';
|
|
2
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
3
|
+
export interface ExperimentActionRef {
|
|
4
|
+
/**
|
|
5
|
+
* Args of the action
|
|
6
|
+
*/
|
|
7
|
+
args?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* ContinueOnCompletion to continue on completion
|
|
10
|
+
*/
|
|
11
|
+
continueOnCompletion?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* ENV of the action
|
|
14
|
+
*/
|
|
15
|
+
env?: V1EnvVar[];
|
|
16
|
+
/**
|
|
17
|
+
* HubRef of the fault reference
|
|
18
|
+
*/
|
|
19
|
+
hubRef?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Identity of the action reference
|
|
22
|
+
*/
|
|
23
|
+
identity?: string;
|
|
24
|
+
/**
|
|
25
|
+
* InfraID contains the infrastructure id
|
|
26
|
+
*/
|
|
27
|
+
infraId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the action reference
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Revision of the fault reference
|
|
34
|
+
*/
|
|
35
|
+
revision?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Variables to store the variables
|
|
38
|
+
*/
|
|
39
|
+
values?: TemplateVariableMinimum[];
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
2
|
+
export interface ExperimentFaultRef {
|
|
3
|
+
/**
|
|
4
|
+
* HubRef of the fault reference
|
|
5
|
+
*/
|
|
6
|
+
hubRef?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Identity of the fault reference
|
|
9
|
+
*/
|
|
10
|
+
identity?: string;
|
|
11
|
+
/**
|
|
12
|
+
* InfraID contains the infrastructure id
|
|
13
|
+
*/
|
|
14
|
+
infraId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the fault reference
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Revision of the fault reference
|
|
21
|
+
*/
|
|
22
|
+
revision?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Variables to store the variables
|
|
25
|
+
*/
|
|
26
|
+
values?: TemplateVariableMinimum[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { V1EnvVar } from '../schemas/V1EnvVar';
|
|
2
|
+
export interface ExperimentProbeActions {
|
|
3
|
+
/**
|
|
4
|
+
* Args of the action
|
|
5
|
+
*/
|
|
6
|
+
args?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Condition to check the condition
|
|
9
|
+
*/
|
|
10
|
+
condition?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ENV of the action
|
|
13
|
+
*/
|
|
14
|
+
env?: V1EnvVar[];
|
|
15
|
+
/**
|
|
16
|
+
* Identity of the action
|
|
17
|
+
*/
|
|
18
|
+
identity?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ExperimentProbeActions } from '../schemas/ExperimentProbeActions';
|
|
2
|
+
import type { ExperimentProbeConditions } from '../schemas/ExperimentProbeConditions';
|
|
3
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
|
+
export interface ExperimentProbeRef {
|
|
5
|
+
/**
|
|
6
|
+
* Actions to be performed
|
|
7
|
+
*/
|
|
8
|
+
actions?: ExperimentProbeActions[];
|
|
9
|
+
/**
|
|
10
|
+
* Conditions to be checked
|
|
11
|
+
*/
|
|
12
|
+
conditions?: ExperimentProbeConditions[];
|
|
13
|
+
/**
|
|
14
|
+
* Duration of the probe
|
|
15
|
+
*/
|
|
16
|
+
duration?: string;
|
|
17
|
+
/**
|
|
18
|
+
* EnableDataCollection to enable data collection
|
|
19
|
+
*/
|
|
20
|
+
enableDataCollection?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* HubRef of the fault reference
|
|
23
|
+
*/
|
|
24
|
+
hubRef?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Identity of the probe
|
|
27
|
+
*/
|
|
28
|
+
identity?: string;
|
|
29
|
+
/**
|
|
30
|
+
* InfraID contains the infrastructure id
|
|
31
|
+
*/
|
|
32
|
+
infraId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the probe
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Revision of the fault reference
|
|
39
|
+
*/
|
|
40
|
+
revision?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Variables to store the variables
|
|
43
|
+
*/
|
|
44
|
+
values?: TemplateVariableMinimum[];
|
|
45
|
+
/**
|
|
46
|
+
* Weightage of the probe
|
|
47
|
+
*/
|
|
48
|
+
weightage?: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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