@harnessio/react-chaos-manager-client 1.66.0 → 1.66.2
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/useGetChaosComponentVariableInternalQuery.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableInternalQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +6 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogApmProbeInputs.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogApmProbeInputs.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogApmProbeInputs.d.ts +18 -1
- package/dist/chaos-manager/src/services/schemas/V1DatadogV2Query.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogV2Query.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2OnboardingRequest.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoscomponentsGetChaosComponentVariableResponse } from '../schemas/ChaoscomponentsGetChaosComponentVariableResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosComponentVariableInternalQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
hubReference?: string;
|
|
9
|
+
identifier?: string;
|
|
10
|
+
kind?: 'resource' | 'template';
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
type?: 'Action' | 'Fault' | 'Probe';
|
|
15
|
+
}
|
|
16
|
+
export type GetChaosComponentVariableInternalOkResponse = ChaoscomponentsGetChaosComponentVariableResponse;
|
|
17
|
+
export type GetChaosComponentVariableInternalErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetChaosComponentVariableInternalProps extends Omit<FetcherOptions<GetChaosComponentVariableInternalQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetChaosComponentVariableInternalQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetChaosComponentVariableInternalResponseContainer {
|
|
22
|
+
body: GetChaosComponentVariableInternalOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getChaosComponentVariableInternal(props: GetChaosComponentVariableInternalProps): Promise<GetChaosComponentVariableInternalResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetChaosComponentVariableInternalQuery(props: GetChaosComponentVariableInternalProps, options?: Omit<UseQueryOptions<GetChaosComponentVariableInternalResponseContainer, GetChaosComponentVariableInternalErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosComponentVariableInternalResponseContainer, 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 getChaosComponentVariableInternal(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internalv3/integrations/get-chaos-component-variable`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosComponentVariableInternalQuery(props, options) {
|
|
13
|
+
return useQuery(['getChaosComponentVariableInternal', props.queryParams], ({ signal }) => getChaosComponentVariableInternal(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -126,6 +126,8 @@ export type { GetActionTemplateErrorResponse, GetActionTemplateOkResponse, GetAc
|
|
|
126
126
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
127
127
|
export type { GetActionTemplateRevisionDifferenceErrorResponse, GetActionTemplateRevisionDifferenceOkResponse, GetActionTemplateRevisionDifferenceProps, GetActionTemplateRevisionDifferenceQueryPathParams, GetActionTemplateRevisionDifferenceQueryQueryParams, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
128
128
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
129
|
+
export type { GetChaosComponentVariableInternalErrorResponse, GetChaosComponentVariableInternalOkResponse, GetChaosComponentVariableInternalProps, GetChaosComponentVariableInternalQueryQueryParams, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
130
|
+
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
129
131
|
export type { GetChaosComponentVariableErrorResponse, GetChaosComponentVariableOkResponse, GetChaosComponentVariableProps, GetChaosComponentVariableQueryQueryParams, } from './hooks/useGetChaosComponentVariableQuery';
|
|
130
132
|
export { getChaosComponentVariable, useGetChaosComponentVariableQuery, } from './hooks/useGetChaosComponentVariableQuery';
|
|
131
133
|
export type { GetChaosDashboardErrorResponse, GetChaosDashboardOkResponse, GetChaosDashboardProps, } from './hooks/useGetChaosDashboardQuery';
|
|
@@ -856,6 +858,7 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDyna
|
|
|
856
858
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics';
|
|
857
859
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogApmProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogApmProbeInputs';
|
|
858
860
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType';
|
|
861
|
+
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query';
|
|
859
862
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs';
|
|
860
863
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
|
|
861
864
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs';
|
|
@@ -895,6 +898,7 @@ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeIn
|
|
|
895
898
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics';
|
|
896
899
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogApmProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogApmProbeInputs';
|
|
897
900
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType';
|
|
901
|
+
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query';
|
|
898
902
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs';
|
|
899
903
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
|
|
900
904
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs';
|
|
@@ -1322,6 +1326,7 @@ export type { V1ContainerProbeInputs } from './schemas/V1ContainerProbeInputs';
|
|
|
1322
1326
|
export type { V1CsiVolumeSource } from './schemas/V1CsiVolumeSource';
|
|
1323
1327
|
export type { V1DatadogApmProbeInputs } from './schemas/V1DatadogApmProbeInputs';
|
|
1324
1328
|
export type { V1DatadogMetrics } from './schemas/V1DatadogMetrics';
|
|
1329
|
+
export type { V1DatadogV2Query } from './schemas/V1DatadogV2Query';
|
|
1325
1330
|
export type { V1DownwardApiProjection } from './schemas/V1DownwardApiProjection';
|
|
1326
1331
|
export type { V1DownwardApiVolumeFile } from './schemas/V1DownwardApiVolumeFile';
|
|
1327
1332
|
export type { V1DownwardApiVolumeSource } from './schemas/V1DownwardApiVolumeSource';
|
|
@@ -1440,6 +1445,7 @@ export type { V2OnboardingConfirmServiceOnboardingResponse } from './schemas/V2O
|
|
|
1440
1445
|
export type { V2OnboardingDiscoveredService } from './schemas/V2OnboardingDiscoveredService';
|
|
1441
1446
|
export type { V2OnboardingExperiments } from './schemas/V2OnboardingExperiments';
|
|
1442
1447
|
export type { V2OnboardingListOnboardedServicesResponse } from './schemas/V2OnboardingListOnboardedServicesResponse';
|
|
1448
|
+
export type { V2OnboardingManualMethod } from './schemas/V2OnboardingManualMethod';
|
|
1443
1449
|
export type { V2OnboardingNetworkMapCreationMode } from './schemas/V2OnboardingNetworkMapCreationMode';
|
|
1444
1450
|
export type { V2OnboardingOnboardServicesRequest } from './schemas/V2OnboardingOnboardServicesRequest';
|
|
1445
1451
|
export type { V2OnboardingOnboardServicesResponse } from './schemas/V2OnboardingOnboardServicesResponse';
|
|
@@ -62,6 +62,7 @@ export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActi
|
|
|
62
62
|
export { getAction, useGetActionQuery } from './hooks/useGetActionQuery';
|
|
63
63
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
64
64
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
65
|
+
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
65
66
|
export { getChaosComponentVariable, useGetChaosComponentVariableQuery, } from './hooks/useGetChaosComponentVariableQuery';
|
|
66
67
|
export { getChaosDashboard, useGetChaosDashboardQuery } from './hooks/useGetChaosDashboardQuery';
|
|
67
68
|
export { getChaosExperimentRunReportJson, useGetChaosExperimentRunReportJsonQuery, } from './hooks/useGetChaosExperimentRunReportJsonQuery';
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query';
|
|
1
2
|
import type { ProbeSyntheticsTest } from '../schemas/ProbeSyntheticsTest';
|
|
2
3
|
export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogApmProbeInputs {
|
|
4
|
+
aggregation?: string;
|
|
3
5
|
connectorID?: string;
|
|
4
6
|
durationInMin?: {};
|
|
7
|
+
formula?: string;
|
|
8
|
+
queries?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogV2Query[];
|
|
5
9
|
query?: string;
|
|
10
|
+
/**
|
|
11
|
+
* v2 timeseries query fields. Optional and backward compatible; when QueryType is "v2"
|
|
12
|
+
*/
|
|
13
|
+
queryType?: string;
|
|
6
14
|
syntheticsTest?: ProbeSyntheticsTest;
|
|
7
15
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query';
|
|
1
2
|
import type { ProbeSyntheticsTestTemplate } from '../schemas/ProbeSyntheticsTestTemplate';
|
|
2
3
|
export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogApmProbeInputs {
|
|
4
|
+
aggregation?: string;
|
|
3
5
|
connectorID?: string;
|
|
4
6
|
durationInMin?: {};
|
|
7
|
+
formula?: string;
|
|
8
|
+
queries?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogV2Query[];
|
|
5
9
|
query?: string;
|
|
10
|
+
queryType?: string;
|
|
6
11
|
syntheticsTest?: ProbeSyntheticsTestTemplate;
|
|
7
12
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { V1DatadogV2Query } from '../schemas/V1DatadogV2Query';
|
|
1
2
|
import type { GithubComHarnessHceSaasHceSdkCommonProbeV1SyntheticsTest } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1SyntheticsTest';
|
|
2
3
|
export interface V1DatadogApmProbeInputs {
|
|
4
|
+
/**
|
|
5
|
+
* Aggregation collapses the resulting timeseries to a single value for comparison.
|
|
6
|
+
*/
|
|
7
|
+
aggregation?: string;
|
|
3
8
|
/**
|
|
4
9
|
* DurationInMin contains the duration in minutes
|
|
5
10
|
*/
|
|
@@ -9,9 +14,21 @@ export interface V1DatadogApmProbeInputs {
|
|
|
9
14
|
*/
|
|
10
15
|
endpoint?: string;
|
|
11
16
|
/**
|
|
12
|
-
*
|
|
17
|
+
* Formula is the expression evaluated against the named queries, e.g. "errors / hits".
|
|
18
|
+
*/
|
|
19
|
+
formula?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Queries is the list of named v2 timeseries queries. Used only when QueryType is "v2".
|
|
22
|
+
*/
|
|
23
|
+
queries?: V1DatadogV2Query[];
|
|
24
|
+
/**
|
|
25
|
+
* Raw metrics details of the Datadog probe (legacy v1 single-query path)
|
|
13
26
|
*/
|
|
14
27
|
query?: string;
|
|
28
|
+
/**
|
|
29
|
+
* QueryType selects the Datadog query API version(v1 or v2)
|
|
30
|
+
*/
|
|
31
|
+
queryType?: string;
|
|
15
32
|
/**
|
|
16
33
|
* synthetics test parameters
|
|
17
34
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface V1DatadogV2Query {
|
|
2
|
+
/**
|
|
3
|
+
* DataSource selects the query backend. Supported: "metrics", "apm_metrics".
|
|
4
|
+
*/
|
|
5
|
+
dataSource?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name is the query identifier referenced by the Formula.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Params is the map of parameters for the query. Used only when DataSource is "apm_metrics".
|
|
12
|
+
*/
|
|
13
|
+
params?: {
|
|
14
|
+
[key: string]: number[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type V2OnboardingManualMethod = 'NetworkMap' | 'Service';
|
|
@@ -2,6 +2,7 @@ import type { V2OnboardingAutoCreatedNetworkMapStatus } from '../schemas/V2Onboa
|
|
|
2
2
|
import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
|
|
3
3
|
import type { V2OnboardingDiscoveredService } from '../schemas/V2OnboardingDiscoveredService';
|
|
4
4
|
import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
|
|
5
|
+
import type { V2OnboardingManualMethod } from '../schemas/V2OnboardingManualMethod';
|
|
5
6
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
6
7
|
import type { V2OnboardingChaosServiceStatus } from '../schemas/V2OnboardingChaosServiceStatus';
|
|
7
8
|
import type { V2OnboardingRunSafeExperimentStatus } from '../schemas/V2OnboardingRunSafeExperimentStatus';
|
|
@@ -19,6 +20,7 @@ export interface V2OnboardingV2Onboarding {
|
|
|
19
20
|
environmentRef?: string;
|
|
20
21
|
infrastructureRef?: string;
|
|
21
22
|
isRemoved: boolean;
|
|
23
|
+
manualMethod?: V2OnboardingManualMethod;
|
|
22
24
|
mode?: V2OnboardingOnboardingMode;
|
|
23
25
|
namespace?: string;
|
|
24
26
|
onboardingChaosServiceStatus?: V2OnboardingChaosServiceStatus;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
|
|
2
2
|
import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
|
|
3
|
+
import type { V2OnboardingManualMethod } from '../schemas/V2OnboardingManualMethod';
|
|
3
4
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
4
5
|
export interface V2OnboardingV2OnboardingRequest {
|
|
5
6
|
chaosAdvanceConfiguration?: V2OnboardingChaosInfraAdvanceConfiguration;
|
|
@@ -7,6 +8,7 @@ export interface V2OnboardingV2OnboardingRequest {
|
|
|
7
8
|
environmentRef: string;
|
|
8
9
|
infrastructureRef: string;
|
|
9
10
|
isAIEnabled?: boolean;
|
|
11
|
+
manualMethod?: V2OnboardingManualMethod;
|
|
10
12
|
mode: V2OnboardingOnboardingMode;
|
|
11
13
|
serviceAccount?: string;
|
|
12
14
|
}
|
package/package.json
CHANGED