@harnessio/react-chaos-manager-client 1.86.0 → 1.87.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/dist/chaos-manager/src/services/hooks/useListActionRunsQuery.d.ts +40 -0
- package/dist/chaos-manager/src/services/hooks/useListActionRunsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListDrTestRunsQuery.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useListDrTestRunsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeRunsQuery.d.ts +40 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeRunsQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +13 -0
- package/dist/chaos-manager/src/services/index.js +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsDrRun.d.ts +27 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsDrRun.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsListDrRunsResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsListDrRunsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunExperimentDetails.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunExperimentDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunItem.d.ts +41 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunItem.js +1 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunPipelineDetails.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunPipelineDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunSource.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/SharedExecutionRunSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/SharedListExecutionRunsResponse.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/SharedListExecutionRunsResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SharedListExecutionRunsResponse } from '../schemas/SharedListExecutionRunsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListActionRunsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
endTime?: number;
|
|
9
|
+
identities?: string;
|
|
10
|
+
includeAllScope?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
parentUniqueId?: string;
|
|
21
|
+
projectIdentifier?: string;
|
|
22
|
+
search?: string;
|
|
23
|
+
source?: 'ChaosExperiment' | 'DRTest';
|
|
24
|
+
startTime?: number;
|
|
25
|
+
statuses?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListActionRunsOkResponse = SharedListExecutionRunsResponse;
|
|
28
|
+
export type ListActionRunsErrorResponse = SharedError;
|
|
29
|
+
export interface ListActionRunsProps extends Omit<FetcherOptions<ListActionRunsQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListActionRunsQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export interface ListActionRunsResponseContainer {
|
|
33
|
+
body: ListActionRunsOkResponse;
|
|
34
|
+
headers: Headers;
|
|
35
|
+
}
|
|
36
|
+
export declare function listActionRuns(props: ListActionRunsProps): Promise<ListActionRunsResponseContainer>;
|
|
37
|
+
/**
|
|
38
|
+
* Lists the action executions of a project with pagination, most recently updated first. Covers actions run inside chaos experiments and inside DR tests; use the sources filter to narrow to one of them.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListActionRunsQuery(props: ListActionRunsProps, options?: Omit<UseQueryOptions<ListActionRunsResponseContainer, ListActionRunsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionRunsResponseContainer, SharedError>;
|
|
@@ -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 listActionRuns(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/actions/runs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists the action executions of a project with pagination, most recently updated first. Covers actions run inside chaos experiments and inside DR tests; use the sources filter to narrow to one of them.
|
|
11
|
+
*/
|
|
12
|
+
export function useListActionRunsQuery(props, options) {
|
|
13
|
+
return useQuery(['listActionRuns', props.queryParams], ({ signal }) => listActionRuns(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoscomponentsListDrRunsResponse } from '../schemas/ChaoscomponentsListDrRunsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListDrTestRunsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @default 15
|
|
10
|
+
*/
|
|
11
|
+
limit?: number;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
parentUniqueId?: string;
|
|
18
|
+
projectIdentifier?: string;
|
|
19
|
+
}
|
|
20
|
+
export type ListDrTestRunsOkResponse = ChaoscomponentsListDrRunsResponse;
|
|
21
|
+
export type ListDrTestRunsErrorResponse = SharedError;
|
|
22
|
+
export interface ListDrTestRunsProps extends Omit<FetcherOptions<ListDrTestRunsQueryQueryParams, unknown>, 'url'> {
|
|
23
|
+
queryParams: ListDrTestRunsQueryQueryParams;
|
|
24
|
+
}
|
|
25
|
+
export interface ListDrTestRunsResponseContainer {
|
|
26
|
+
body: ListDrTestRunsOkResponse;
|
|
27
|
+
headers: Headers;
|
|
28
|
+
}
|
|
29
|
+
export declare function listDrTestRuns(props: ListDrTestRunsProps): Promise<ListDrTestRunsResponseContainer>;
|
|
30
|
+
/**
|
|
31
|
+
* Lists the DR test runs of a project, most recently started first, with pagination. A run is a pipeline execution that recorded chaos component execution nodes.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useListDrTestRunsQuery(props: ListDrTestRunsProps, options?: Omit<UseQueryOptions<ListDrTestRunsResponseContainer, ListDrTestRunsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrTestRunsResponseContainer, SharedError>;
|
|
@@ -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 listDrTestRuns(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dr-tests/runs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists the DR test runs of a project, most recently started first, with pagination. A run is a pipeline execution that recorded chaos component execution nodes.
|
|
11
|
+
*/
|
|
12
|
+
export function useListDrTestRunsQuery(props, options) {
|
|
13
|
+
return useQuery(['listDRTestRuns', props.queryParams], ({ signal }) => listDrTestRuns(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SharedListExecutionRunsResponse } from '../schemas/SharedListExecutionRunsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListProbeRunsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
endTime?: number;
|
|
9
|
+
identities?: string;
|
|
10
|
+
includeAllScope?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
parentUniqueId?: string;
|
|
21
|
+
projectIdentifier?: string;
|
|
22
|
+
search?: string;
|
|
23
|
+
source?: 'ChaosExperiment' | 'DRTest';
|
|
24
|
+
startTime?: number;
|
|
25
|
+
statuses?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListProbeRunsOkResponse = SharedListExecutionRunsResponse;
|
|
28
|
+
export type ListProbeRunsErrorResponse = SharedError;
|
|
29
|
+
export interface ListProbeRunsProps extends Omit<FetcherOptions<ListProbeRunsQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListProbeRunsQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export interface ListProbeRunsResponseContainer {
|
|
33
|
+
body: ListProbeRunsOkResponse;
|
|
34
|
+
headers: Headers;
|
|
35
|
+
}
|
|
36
|
+
export declare function listProbeRuns(props: ListProbeRunsProps): Promise<ListProbeRunsResponseContainer>;
|
|
37
|
+
/**
|
|
38
|
+
* Lists the probe executions of a project with pagination, most recently updated first. Covers probes run inside chaos experiments and inside DR tests; use the sources filter to narrow to one of them.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListProbeRunsQuery(props: ListProbeRunsProps, options?: Omit<UseQueryOptions<ListProbeRunsResponseContainer, ListProbeRunsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeRunsResponseContainer, SharedError>;
|
|
@@ -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 listProbeRuns(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probes/runs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists the probe executions of a project with pagination, most recently updated first. Covers probes run inside chaos experiments and inside DR tests; use the sources filter to narrow to one of them.
|
|
11
|
+
*/
|
|
12
|
+
export function useListProbeRunsQuery(props, options) {
|
|
13
|
+
return useQuery(['listProbeRuns', props.queryParams], ({ signal }) => listProbeRuns(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -308,6 +308,8 @@ export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMut
|
|
|
308
308
|
export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
|
|
309
309
|
export type { ListActionMetadataErrorResponse, ListActionMetadataOkResponse, ListActionMetadataProps, ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody, } from './hooks/useListActionMetadataQuery';
|
|
310
310
|
export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
|
|
311
|
+
export type { ListActionRunsErrorResponse, ListActionRunsOkResponse, ListActionRunsProps, ListActionRunsQueryQueryParams, } from './hooks/useListActionRunsQuery';
|
|
312
|
+
export { listActionRuns, useListActionRunsQuery } from './hooks/useListActionRunsQuery';
|
|
311
313
|
export type { ListActionTemplateErrorResponse, ListActionTemplateOkResponse, ListActionTemplateProps, ListActionTemplateQueryQueryParams, } from './hooks/useListActionTemplateQuery';
|
|
312
314
|
export { listActionTemplate, useListActionTemplateQuery } from './hooks/useListActionTemplateQuery';
|
|
313
315
|
export type { ListActionTemplateRevisionsErrorResponse, ListActionTemplateRevisionsOkResponse, ListActionTemplateRevisionsProps, ListActionTemplateRevisionsQueryPathParams, ListActionTemplateRevisionsQueryQueryParams, } from './hooks/useListActionTemplateRevisionsQuery';
|
|
@@ -340,6 +342,8 @@ export type { ListConditionErrorResponse, ListConditionOkResponse, ListCondition
|
|
|
340
342
|
export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
|
|
341
343
|
export type { ListDashboardsV3ErrorResponse, ListDashboardsV3OkResponse, ListDashboardsV3Props, ListDashboardsV3QueryQueryParams, } from './hooks/useListDashboardsV3Query';
|
|
342
344
|
export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
|
|
345
|
+
export type { ListDrTestRunsErrorResponse, ListDrTestRunsOkResponse, ListDrTestRunsProps, ListDrTestRunsQueryQueryParams, } from './hooks/useListDrTestRunsQuery';
|
|
346
|
+
export { listDrTestRuns, useListDrTestRunsQuery } from './hooks/useListDrTestRunsQuery';
|
|
343
347
|
export type { ListDrTestsErrorResponse, ListDrTestsOkResponse, ListDrTestsProps, ListDrTestsQueryQueryParams, } from './hooks/useListDrTestsQuery';
|
|
344
348
|
export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
|
|
345
349
|
export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
|
|
@@ -394,6 +398,8 @@ export type { ListProbeExecutionsErrorResponse, ListProbeExecutionsOkResponse, L
|
|
|
394
398
|
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
395
399
|
export type { ListProbeMetadataErrorResponse, ListProbeMetadataOkResponse, ListProbeMetadataProps, ListProbeMetadataQueryQueryParams, ListProbeMetadataRequestBody, } from './hooks/useListProbeMetadataQuery';
|
|
396
400
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
401
|
+
export type { ListProbeRunsErrorResponse, ListProbeRunsOkResponse, ListProbeRunsProps, ListProbeRunsQueryQueryParams, } from './hooks/useListProbeRunsQuery';
|
|
402
|
+
export { listProbeRuns, useListProbeRunsQuery } from './hooks/useListProbeRunsQuery';
|
|
397
403
|
export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
|
|
398
404
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
399
405
|
export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, ListProbesQueryQueryParams, } from './hooks/useListProbesQuery';
|
|
@@ -656,10 +662,12 @@ export type { ChaoscomponentsCreateDrTestPipelineResponse } from './schemas/Chao
|
|
|
656
662
|
export type { ChaoscomponentsCreateDrTestPipelineResponseData } from './schemas/ChaoscomponentsCreateDrTestPipelineResponseData';
|
|
657
663
|
export type { ChaoscomponentsDeleteDrTestResponse } from './schemas/ChaoscomponentsDeleteDrTestResponse';
|
|
658
664
|
export type { ChaoscomponentsDeleteDrTestResponseData } from './schemas/ChaoscomponentsDeleteDrTestResponseData';
|
|
665
|
+
export type { ChaoscomponentsDrRun } from './schemas/ChaoscomponentsDrRun';
|
|
659
666
|
export type { ChaoscomponentsDrTest } from './schemas/ChaoscomponentsDrTest';
|
|
660
667
|
export type { ChaoscomponentsDrTestRunInfo } from './schemas/ChaoscomponentsDrTestRunInfo';
|
|
661
668
|
export type { ChaoscomponentsGetChaosComponentVariableData } from './schemas/ChaoscomponentsGetChaosComponentVariableData';
|
|
662
669
|
export type { ChaoscomponentsGetChaosComponentVariableResponse } from './schemas/ChaoscomponentsGetChaosComponentVariableResponse';
|
|
670
|
+
export type { ChaoscomponentsListDrRunsResponse } from './schemas/ChaoscomponentsListDrRunsResponse';
|
|
663
671
|
export type { ChaoscomponentsListDrTestsResponse } from './schemas/ChaoscomponentsListDrTestsResponse';
|
|
664
672
|
export type { ChaoscomponentsRunChaosComponentRequest } from './schemas/ChaoscomponentsRunChaosComponentRequest';
|
|
665
673
|
export type { ChaoscomponentsRunChaosComponentResponse } from './schemas/ChaoscomponentsRunChaosComponentResponse';
|
|
@@ -1342,6 +1350,11 @@ export type { SecurityGovernanceRecurrenceSpec } from './schemas/SecurityGoverna
|
|
|
1342
1350
|
export type { SecurityGovernanceTimeWindow } from './schemas/SecurityGovernanceTimeWindow';
|
|
1343
1351
|
export type { SecurityGovernanceWorkload } from './schemas/SecurityGovernanceWorkload';
|
|
1344
1352
|
export type { SharedError } from './schemas/SharedError';
|
|
1353
|
+
export type { SharedExecutionRunExperimentDetails } from './schemas/SharedExecutionRunExperimentDetails';
|
|
1354
|
+
export type { SharedExecutionRunItem } from './schemas/SharedExecutionRunItem';
|
|
1355
|
+
export type { SharedExecutionRunPipelineDetails } from './schemas/SharedExecutionRunPipelineDetails';
|
|
1356
|
+
export type { SharedExecutionRunSource } from './schemas/SharedExecutionRunSource';
|
|
1357
|
+
export type { SharedListExecutionRunsResponse } from './schemas/SharedListExecutionRunsResponse';
|
|
1345
1358
|
export type { SharedListMetadataResponse } from './schemas/SharedListMetadataResponse';
|
|
1346
1359
|
export type { SharedMetadata } from './schemas/SharedMetadata';
|
|
1347
1360
|
export type { SharedPaginationResponse } from './schemas/SharedPaginationResponse';
|
|
@@ -153,6 +153,7 @@ export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Qu
|
|
|
153
153
|
export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
|
|
154
154
|
export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
|
|
155
155
|
export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
|
|
156
|
+
export { listActionRuns, useListActionRunsQuery } from './hooks/useListActionRunsQuery';
|
|
156
157
|
export { listActionTemplate, useListActionTemplateQuery } from './hooks/useListActionTemplateQuery';
|
|
157
158
|
export { listActionTemplateRevisions, useListActionTemplateRevisionsQuery, } from './hooks/useListActionTemplateRevisionsQuery';
|
|
158
159
|
export { listActions, useListActionsQuery } from './hooks/useListActionsQuery';
|
|
@@ -169,6 +170,7 @@ export { listChaosServices, useListChaosServicesQuery } from './hooks/useListCha
|
|
|
169
170
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
170
171
|
export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
|
|
171
172
|
export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
|
|
173
|
+
export { listDrTestRuns, useListDrTestRunsQuery } from './hooks/useListDrTestRunsQuery';
|
|
172
174
|
export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
|
|
173
175
|
export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
|
|
174
176
|
export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
|
|
@@ -196,6 +198,7 @@ export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/u
|
|
|
196
198
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
197
199
|
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
198
200
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
201
|
+
export { listProbeRuns, useListProbeRunsQuery } from './hooks/useListProbeRunsQuery';
|
|
199
202
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
200
203
|
export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
|
|
201
204
|
export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PipelinesExecutorInfo } from '../schemas/PipelinesExecutorInfo';
|
|
2
|
+
export interface ChaoscomponentsDrRun {
|
|
3
|
+
/**
|
|
4
|
+
* account id to access the resource
|
|
5
|
+
*/
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
durationMs?: number;
|
|
8
|
+
executionId?: string;
|
|
9
|
+
executorInfo?: PipelinesExecutorInfo;
|
|
10
|
+
/**
|
|
11
|
+
* organization id to access the resource
|
|
12
|
+
*/
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
/**
|
|
15
|
+
* resolved parent scope unique ID (from scope-info API or query param)
|
|
16
|
+
*/
|
|
17
|
+
parentUniqueId?: string;
|
|
18
|
+
pipelineId?: string;
|
|
19
|
+
pipelineName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* project id to access the resource
|
|
22
|
+
*/
|
|
23
|
+
projectIdentifier?: string;
|
|
24
|
+
runSequence?: number;
|
|
25
|
+
startedAt?: number;
|
|
26
|
+
status?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChaoscomponentsDrRun } from '../schemas/ChaoscomponentsDrRun';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface ChaoscomponentsListDrRunsResponse {
|
|
4
|
+
items?: ChaoscomponentsDrRun[];
|
|
5
|
+
pagination?: SharedPaginationResponse;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
import type { SharedExecutionRunExperimentDetails } from '../schemas/SharedExecutionRunExperimentDetails';
|
|
3
|
+
import type { SharedExecutionRunPipelineDetails } from '../schemas/SharedExecutionRunPipelineDetails';
|
|
4
|
+
import type { SharedExecutionRunSource } from '../schemas/SharedExecutionRunSource';
|
|
5
|
+
export interface SharedExecutionRunItem {
|
|
6
|
+
createdBy?: HcesdkUserDetails;
|
|
7
|
+
/**
|
|
8
|
+
* DurationMs is 0 until the node reaches a final status.
|
|
9
|
+
*/
|
|
10
|
+
durationMs?: number;
|
|
11
|
+
/**
|
|
12
|
+
* ExperimentRunDetails is set for ChaosExperiment runs, resolved from the
|
|
13
|
+
* experiment run the node belongs to. It is absent when that run can no
|
|
14
|
+
* longer be read.
|
|
15
|
+
*/
|
|
16
|
+
experimentRunDetails?: SharedExecutionRunExperimentDetails;
|
|
17
|
+
finishedAt?: number;
|
|
18
|
+
infraId?: string;
|
|
19
|
+
infraType?: string;
|
|
20
|
+
lastUpdatedAt?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Name is the step name recorded on the node.
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
notifyId?: string;
|
|
26
|
+
parentIdentity?: string;
|
|
27
|
+
/**
|
|
28
|
+
* PipelineDetails is set for DRTest runs, and comes from the node itself.
|
|
29
|
+
*/
|
|
30
|
+
pipelineDetails?: SharedExecutionRunPipelineDetails;
|
|
31
|
+
runId?: string;
|
|
32
|
+
source?: SharedExecutionRunSource;
|
|
33
|
+
startedAt?: number;
|
|
34
|
+
status?: string;
|
|
35
|
+
stepType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type is the probe type (http, cmd, prom...) or the action type.
|
|
38
|
+
*/
|
|
39
|
+
type?: string;
|
|
40
|
+
updatedBy?: HcesdkUserDetails;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SharedExecutionRunSource = 'ChaosExperiment' | 'DRTest';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SharedExecutionRunItem } from '../schemas/SharedExecutionRunItem';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface SharedListExecutionRunsResponse {
|
|
4
|
+
/**
|
|
5
|
+
* correlation id is used to debug micro svc communication
|
|
6
|
+
*/
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
data?: SharedExecutionRunItem[];
|
|
9
|
+
pagination?: SharedPaginationResponse;
|
|
10
|
+
totalItems?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED