@harnessio/react-chaos-manager-client 1.11.1-beta.0 → 1.12.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/useGetFaultVariablesQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/{useFetFaultVariablesQuery.js → useGetFaultVariablesQuery.js} +3 -3
- package/dist/chaos-manager/src/services/index.d.ts +6 -2
- package/dist/chaos-manager/src/services/index.js +1 -1
- package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.d.ts +7 -6
- package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.js +0 -3
- package/dist/chaos-manager/src/services/schemas/ExecutionActionData.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/MongodbIdentifiers.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/MongodbIdentifiers.js +4 -0
- package/dist/chaos-manager/src/services/schemas/MongodbImportType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/MongodbImportType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ProbeApmProbeTemplate.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ProbeApmProbeType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ProbeDynatraceApmProbeInputs.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ProbeDynatraceApmProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/TypesImportProbeTemplateRequest.d.ts +7 -6
- package/dist/chaos-manager/src/services/schemas/TypesImportProbeTemplateRequest.js +0 -3
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/V1ApmProbeInputs.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/V1DynatraceApmProbeInputs.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/V1DynatraceApmProbeInputs.js +1 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useFetFaultVariablesQuery.d.ts +0 -28
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaultFaultVariables } from '../schemas/ChaosfaultFaultVariables';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetFaultVariablesQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetFaultVariablesQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
isEnterprise?: boolean;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetFaultVariablesOkResponse = ChaosfaultFaultVariables;
|
|
16
|
+
export type GetFaultVariablesErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetFaultVariablesProps extends GetFaultVariablesQueryPathParams, Omit<FetcherOptions<GetFaultVariablesQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetFaultVariablesQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetFaultVariablesResponseContainer {
|
|
21
|
+
body: GetFaultVariablesOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getFaultVariables(props: GetFaultVariablesProps): Promise<GetFaultVariablesResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the list of variables in a fault
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetFaultVariablesQuery(props: GetFaultVariablesProps, options?: Omit<UseQueryOptions<GetFaultVariablesResponseContainer, GetFaultVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultVariablesResponseContainer, ApiRestError>;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
-
export function
|
|
6
|
+
export function getFaultVariables(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/faults/${props.identity}/variables`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get the list of variables in a fault
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return useQuery(['
|
|
12
|
+
export function useGetFaultVariablesQuery(props, options) {
|
|
13
|
+
return useQuery(['getFaultVariables', props.identity, props.queryParams], ({ signal }) => getFaultVariables(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -62,8 +62,6 @@ export type { EnableProbeErrorResponse, EnableProbeMutationPathParams, EnablePro
|
|
|
62
62
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
63
63
|
export type { ExperimentExecutionNodeDetailsErrorResponse, ExperimentExecutionNodeDetailsOkResponse, ExperimentExecutionNodeDetailsProps, ExperimentExecutionNodeDetailsQueryPathParams, ExperimentExecutionNodeDetailsQueryQueryParams, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
64
64
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
65
|
-
export type { FetFaultVariablesErrorResponse, FetFaultVariablesOkResponse, FetFaultVariablesProps, FetFaultVariablesQueryPathParams, FetFaultVariablesQueryQueryParams, } from './hooks/useFetFaultVariablesQuery';
|
|
66
|
-
export { fetFaultVariables, useFetFaultVariablesQuery } from './hooks/useFetFaultVariablesQuery';
|
|
67
65
|
export type { GetAccountServiceDetailsErrorResponse, GetAccountServiceDetailsOkResponse, GetAccountServiceDetailsProps, GetAccountServiceDetailsQueryPathParams, GetAccountServiceDetailsQueryQueryParams, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
68
66
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
69
67
|
export type { GetAccountServiceUsageStatsErrorResponse, GetAccountServiceUsageStatsOkResponse, GetAccountServiceUsageStatsProps, GetAccountServiceUsageStatsQueryPathParams, GetAccountServiceUsageStatsQueryQueryParams, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
@@ -112,6 +110,8 @@ export type { GetFaultTemplateVariablesErrorResponse, GetFaultTemplateVariablesO
|
|
|
112
110
|
export { getFaultTemplateVariables, useGetFaultTemplateVariablesQuery, } from './hooks/useGetFaultTemplateVariablesQuery';
|
|
113
111
|
export type { GetFaultTemplateYamlErrorResponse, GetFaultTemplateYamlOkResponse, GetFaultTemplateYamlProps, GetFaultTemplateYamlQueryPathParams, GetFaultTemplateYamlQueryQueryParams, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
114
112
|
export { getFaultTemplateYaml, useGetFaultTemplateYamlQuery, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
113
|
+
export type { GetFaultVariablesErrorResponse, GetFaultVariablesOkResponse, GetFaultVariablesProps, GetFaultVariablesQueryPathParams, GetFaultVariablesQueryQueryParams, } from './hooks/useGetFaultVariablesQuery';
|
|
114
|
+
export { getFaultVariables, useGetFaultVariablesQuery } from './hooks/useGetFaultVariablesQuery';
|
|
115
115
|
export type { GetFaultYamlErrorResponse, GetFaultYamlOkResponse, GetFaultYamlProps, GetFaultYamlQueryPathParams, GetFaultYamlQueryQueryParams, } from './hooks/useGetFaultYamlQuery';
|
|
116
116
|
export { getFaultYaml, useGetFaultYamlQuery } from './hooks/useGetFaultYamlQuery';
|
|
117
117
|
export type { GetGamedayRunV2ErrorResponse, GetGamedayRunV2OkResponse, GetGamedayRunV2Props, GetGamedayRunV2QueryPathParams, GetGamedayRunV2QueryQueryParams, } from './hooks/useGetGamedayRunV2Query';
|
|
@@ -608,6 +608,8 @@ export type { ModelWeightages } from './schemas/ModelWeightages';
|
|
|
608
608
|
export type { ModelWorkflowRun } from './schemas/ModelWorkflowRun';
|
|
609
609
|
export type { ModelWorkflowRunStatus } from './schemas/ModelWorkflowRunStatus';
|
|
610
610
|
export type { ModelWorkflowType } from './schemas/ModelWorkflowType';
|
|
611
|
+
export type { MongodbIdentifiers } from './schemas/MongodbIdentifiers';
|
|
612
|
+
export type { MongodbImportType } from './schemas/MongodbImportType';
|
|
611
613
|
export type { NetworkmapCanRetryExperimentCreationResponse } from './schemas/NetworkmapCanRetryExperimentCreationResponse';
|
|
612
614
|
export type { NetworkmapGetTargetNetworkMapResponse } from './schemas/NetworkmapGetTargetNetworkMapResponse';
|
|
613
615
|
export type { NetworkmapGetTargetServiceResponse } from './schemas/NetworkmapGetTargetServiceResponse';
|
|
@@ -635,6 +637,7 @@ export type { ProbeDatadogMetrics } from './schemas/ProbeDatadogMetrics';
|
|
|
635
637
|
export type { ProbeDatadogMetricsTemplate } from './schemas/ProbeDatadogMetricsTemplate';
|
|
636
638
|
export type { ProbeDatadogProbe } from './schemas/ProbeDatadogProbe';
|
|
637
639
|
export type { ProbeDatadogProbeTemplate } from './schemas/ProbeDatadogProbeTemplate';
|
|
640
|
+
export type { ProbeDynatraceApmProbeInputs } from './schemas/ProbeDynatraceApmProbeInputs';
|
|
638
641
|
export type { ProbeDynatraceMetricsTemplate } from './schemas/ProbeDynatraceMetricsTemplate';
|
|
639
642
|
export type { ProbeDynatraceProbe } from './schemas/ProbeDynatraceProbe';
|
|
640
643
|
export type { ProbeDynatraceProbeTemplate } from './schemas/ProbeDynatraceProbeTemplate';
|
|
@@ -801,6 +804,7 @@ export type { V1DatadogSyntheticsTestType } from './schemas/V1DatadogSyntheticsT
|
|
|
801
804
|
export type { V1DownwardApiProjection } from './schemas/V1DownwardApiProjection';
|
|
802
805
|
export type { V1DownwardApiVolumeFile } from './schemas/V1DownwardApiVolumeFile';
|
|
803
806
|
export type { V1DownwardApiVolumeSource } from './schemas/V1DownwardApiVolumeSource';
|
|
807
|
+
export type { V1DynatraceApmProbeInputs } from './schemas/V1DynatraceApmProbeInputs';
|
|
804
808
|
export type { V1DynatraceProbeInputs } from './schemas/V1DynatraceProbeInputs';
|
|
805
809
|
export type { V1EmptyDirVolumeSource } from './schemas/V1EmptyDirVolumeSource';
|
|
806
810
|
export type { V1EnvFromSource } from './schemas/V1EnvFromSource';
|
|
@@ -30,7 +30,6 @@ export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/
|
|
|
30
30
|
export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './hooks/useDeleteTargetNetworkMapMutation';
|
|
31
31
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
32
32
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
33
|
-
export { fetFaultVariables, useFetFaultVariablesQuery } from './hooks/useFetFaultVariablesQuery';
|
|
34
33
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
35
34
|
export { getAccountServiceUsageStats, useGetAccountServiceUsageStatsQuery, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
36
35
|
export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActionManifestQuery';
|
|
@@ -55,6 +54,7 @@ export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultT
|
|
|
55
54
|
export { getFaultTemplateRevisions, useGetFaultTemplateRevisionsQuery, } from './hooks/useGetFaultTemplateRevisionsQuery';
|
|
56
55
|
export { getFaultTemplateVariables, useGetFaultTemplateVariablesQuery, } from './hooks/useGetFaultTemplateVariablesQuery';
|
|
57
56
|
export { getFaultTemplateYaml, useGetFaultTemplateYamlQuery, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
57
|
+
export { getFaultVariables, useGetFaultVariablesQuery } from './hooks/useGetFaultVariablesQuery';
|
|
58
58
|
export { getFaultYaml, useGetFaultYamlQuery } from './hooks/useGetFaultYamlQuery';
|
|
59
59
|
export { getGamedayRunV2, useGetGamedayRunV2Query } from './hooks/useGetGamedayRunV2Query';
|
|
60
60
|
export { getGamedayV2, useGetGamedayV2Query } from './hooks/useGetGamedayV2Query';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ActionActionTemplateProperties } from '../schemas/ActionActionTemplateProperties';
|
|
2
2
|
import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
|
|
3
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
3
4
|
import type { ActionsInfrastructureType } from '../schemas/ActionsInfrastructureType';
|
|
4
5
|
import type { ActionsRecentExecutions } from '../schemas/ActionsRecentExecutions';
|
|
5
6
|
import type { ActionActionTemplateRunProperties } from '../schemas/ActionActionTemplateRunProperties';
|
|
@@ -16,7 +17,9 @@ export interface ActionsActionResponse {
|
|
|
16
17
|
description?: string;
|
|
17
18
|
hubRef?: string;
|
|
18
19
|
identity?: string;
|
|
20
|
+
importType?: MongodbImportType;
|
|
19
21
|
infrastructureType?: ActionsInfrastructureType;
|
|
22
|
+
isImported?: boolean;
|
|
20
23
|
isRemoved?: boolean;
|
|
21
24
|
name: string;
|
|
22
25
|
orgID?: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { MongodbIdentifiers } from '../schemas/MongodbIdentifiers';
|
|
2
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
1
3
|
export interface ActionsImportActionTemplateRequest {
|
|
2
|
-
|
|
3
|
-
actionRef?: string;
|
|
4
|
+
actionRef: string;
|
|
4
5
|
description?: string;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
hubIdentifiers?: MongodbIdentifiers;
|
|
7
|
+
hubRef: string;
|
|
8
|
+
identity: string;
|
|
9
|
+
importType: MongodbImportType;
|
|
7
10
|
name: string;
|
|
8
|
-
orgID?: string;
|
|
9
|
-
projectID?: string;
|
|
10
11
|
tags?: string[];
|
|
11
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActionActionTemplateProperties } from '../schemas/ActionActionTemplateProperties';
|
|
2
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
2
3
|
import type { ActionsInfrastructureType } from '../schemas/ActionsInfrastructureType';
|
|
3
4
|
import type { ActionsRecentExecutions } from '../schemas/ActionsRecentExecutions';
|
|
4
5
|
import type { ActionActionTemplateRunProperties } from '../schemas/ActionActionTemplateRunProperties';
|
|
@@ -12,6 +13,7 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAc
|
|
|
12
13
|
description?: string;
|
|
13
14
|
hubRef?: string;
|
|
14
15
|
identity?: string;
|
|
16
|
+
importType?: MongodbImportType;
|
|
15
17
|
infrastructureType?: ActionsInfrastructureType;
|
|
16
18
|
isRemoved?: boolean;
|
|
17
19
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MongodbImportType = 'LOCAL' | 'REFERENCE';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
|
|
2
2
|
import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
|
|
3
|
+
import type { ProbeDynatraceApmProbeInputs } from '../schemas/ProbeDynatraceApmProbeInputs';
|
|
3
4
|
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
|
|
4
5
|
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
|
|
5
6
|
import type { ProbeApmProbeType } from '../schemas/ProbeApmProbeType';
|
|
6
7
|
export interface ProbeApmProbeTemplate {
|
|
7
8
|
appDynamicsProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs;
|
|
8
9
|
comparator?: ProbeComparatorTemplate;
|
|
10
|
+
dynatraceApmProbeInputs?: ProbeDynatraceApmProbeInputs;
|
|
9
11
|
prometheusProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs;
|
|
10
12
|
splunkObservabilityProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs;
|
|
11
13
|
type?: ProbeApmProbeType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ProbeApmProbeType = 'AppDynamics' | 'Prometheus' | 'SplunkObservability';
|
|
1
|
+
export type ProbeApmProbeType = 'AppDynamics' | 'Dynatrace' | 'Prometheus' | 'SplunkObservability';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
|
|
2
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
2
3
|
import type { TypesInfrastructureType } from '../schemas/TypesInfrastructureType';
|
|
3
4
|
import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
|
|
4
5
|
import type { TypesProbeRecentExecutions } from '../schemas/TypesProbeRecentExecutions';
|
|
@@ -9,13 +10,17 @@ export interface TypesGetProbeResponse {
|
|
|
9
10
|
createdAt?: number;
|
|
10
11
|
createdBy?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
|
|
11
12
|
description?: string;
|
|
13
|
+
hubRef?: string;
|
|
12
14
|
identity?: string;
|
|
15
|
+
importType?: MongodbImportType;
|
|
13
16
|
infrastructureType?: TypesInfrastructureType;
|
|
14
17
|
isEnabled?: boolean;
|
|
18
|
+
isImported?: boolean;
|
|
15
19
|
name?: string;
|
|
16
20
|
probeId?: string;
|
|
17
21
|
probeProperties?: ProbeProbeTemplateProperties;
|
|
18
22
|
probeReferenceCount?: number;
|
|
23
|
+
probeTemplateRef?: string;
|
|
19
24
|
recentProbeRuns?: TypesProbeRecentExecutions[];
|
|
20
25
|
runProperties?: ProbeProbeTemplateRunProperties;
|
|
21
26
|
tags?: string[];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { MongodbIdentifiers } from '../schemas/MongodbIdentifiers';
|
|
2
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
1
3
|
export interface TypesImportProbeTemplateRequest {
|
|
2
|
-
accountID: string;
|
|
3
4
|
description?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
hubIdentifiers?: MongodbIdentifiers;
|
|
6
|
+
hubRef: string;
|
|
7
|
+
identity: string;
|
|
8
|
+
importType: MongodbImportType;
|
|
6
9
|
name: string;
|
|
7
|
-
|
|
8
|
-
probeRef?: string;
|
|
9
|
-
projectID?: string;
|
|
10
|
+
probeRef: string;
|
|
10
11
|
tags?: string[];
|
|
11
12
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
1
2
|
import type { TypesInfrastructureType } from '../schemas/TypesInfrastructureType';
|
|
2
3
|
import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
|
|
3
4
|
import type { TypesProbeRecentExecutions } from '../schemas/TypesProbeRecentExecutions';
|
|
@@ -6,13 +7,17 @@ import type { TypesProbeType } from '../schemas/TypesProbeType';
|
|
|
6
7
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
7
8
|
export interface TypesProbeRequest {
|
|
8
9
|
description?: string;
|
|
10
|
+
hubRef?: string;
|
|
9
11
|
identity?: string;
|
|
12
|
+
importType?: MongodbImportType;
|
|
10
13
|
infrastructureType?: TypesInfrastructureType;
|
|
11
14
|
isEnabled?: boolean;
|
|
15
|
+
isImported?: boolean;
|
|
12
16
|
name?: string;
|
|
13
17
|
probeId?: string;
|
|
14
18
|
probeProperties?: ProbeProbeTemplateProperties;
|
|
15
19
|
probeReferenceCount?: number;
|
|
20
|
+
probeTemplateRef?: string;
|
|
16
21
|
recentProbeRuns?: TypesProbeRecentExecutions[];
|
|
17
22
|
runProperties?: ProbeProbeTemplateRunProperties;
|
|
18
23
|
tags?: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { V1AppDynamicsInputs } from '../schemas/V1AppDynamicsInputs';
|
|
2
2
|
import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
|
|
3
|
+
import type { V1DynatraceApmProbeInputs } from '../schemas/V1DynatraceApmProbeInputs';
|
|
3
4
|
import type { V1PrometheusInputs } from '../schemas/V1PrometheusInputs';
|
|
4
5
|
import type { V1SplunkObservabilityInputs } from '../schemas/V1SplunkObservabilityInputs';
|
|
5
6
|
export interface V1ApmProbeInputs {
|
|
@@ -11,6 +12,10 @@ export interface V1ApmProbeInputs {
|
|
|
11
12
|
* Comparator check for the correctness of the probe output
|
|
12
13
|
*/
|
|
13
14
|
comparator?: V1ComparatorInfo;
|
|
15
|
+
/**
|
|
16
|
+
* DynatraceApmProbeInputs contains the inputs required for Dynatrace probe
|
|
17
|
+
*/
|
|
18
|
+
dynatraceApmProbeInputs?: V1DynatraceApmProbeInputs;
|
|
14
19
|
/**
|
|
15
20
|
* PrometheusInputs contains the inputs required for prometheus probe
|
|
16
21
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { V1Metrics } from '../schemas/V1Metrics';
|
|
2
|
+
export interface V1DynatraceApmProbeInputs {
|
|
3
|
+
/**
|
|
4
|
+
* AuthSecretName secret name for the authentication
|
|
5
|
+
*/
|
|
6
|
+
authSecretName?: string;
|
|
7
|
+
/**
|
|
8
|
+
* DurationInMin contains the duration in minutes
|
|
9
|
+
*/
|
|
10
|
+
durationInMin?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Endpoint for the Splunk Observability probe
|
|
13
|
+
*/
|
|
14
|
+
endpoint?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Raw metrcis details of the Dynatrace probe
|
|
17
|
+
*/
|
|
18
|
+
metrics?: V1Metrics;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ChaosfaultFaultVariables } from '../schemas/ChaosfaultFaultVariables';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface FetFaultVariablesQueryPathParams {
|
|
6
|
-
identity: string;
|
|
7
|
-
}
|
|
8
|
-
export interface FetFaultVariablesQueryQueryParams {
|
|
9
|
-
accountIdentifier: string;
|
|
10
|
-
correlationID?: string;
|
|
11
|
-
isEnterprise?: boolean;
|
|
12
|
-
organizationIdentifier?: string;
|
|
13
|
-
projectIdentifier?: string;
|
|
14
|
-
}
|
|
15
|
-
export type FetFaultVariablesOkResponse = ChaosfaultFaultVariables;
|
|
16
|
-
export type FetFaultVariablesErrorResponse = ApiRestError;
|
|
17
|
-
export interface FetFaultVariablesProps extends FetFaultVariablesQueryPathParams, Omit<FetcherOptions<FetFaultVariablesQueryQueryParams, unknown>, 'url'> {
|
|
18
|
-
queryParams: FetFaultVariablesQueryQueryParams;
|
|
19
|
-
}
|
|
20
|
-
export interface FetFaultVariablesResponseContainer {
|
|
21
|
-
body: FetFaultVariablesOkResponse;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
}
|
|
24
|
-
export declare function fetFaultVariables(props: FetFaultVariablesProps): Promise<FetFaultVariablesResponseContainer>;
|
|
25
|
-
/**
|
|
26
|
-
* Get the list of variables in a fault
|
|
27
|
-
*/
|
|
28
|
-
export declare function useFetFaultVariablesQuery(props: FetFaultVariablesProps, options?: Omit<UseQueryOptions<FetFaultVariablesResponseContainer, FetFaultVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetFaultVariablesResponseContainer, ApiRestError>;
|