@harnessio/react-chaos-manager-client 1.15.1-beta.0 → 1.15.1-beta.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.
Files changed (22) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +4 -0
  2. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +29 -0
  3. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +14 -0
  4. package/dist/chaos-manager/src/services/index.d.ts +7 -0
  5. package/dist/chaos-manager/src/services/index.js +1 -0
  6. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +7 -0
  7. package/dist/chaos-manager/src/services/schemas/ProbeApmProbeTemplate.d.ts +2 -0
  8. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicMetric.d.ts +4 -0
  9. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicMetric.js +4 -0
  10. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicProbeInputs.d.ts +5 -0
  11. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicProbeInputs.js +1 -0
  12. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  13. package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
  14. package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
  15. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +3 -0
  16. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +4 -0
  17. package/dist/chaos-manager/src/services/schemas/V1ApmProbeInputs.d.ts +5 -0
  18. package/dist/chaos-manager/src/services/schemas/V1NewrelicInputs.d.ts +19 -0
  19. package/dist/chaos-manager/src/services/schemas/V1NewrelicInputs.js +1 -0
  20. package/dist/chaos-manager/src/services/schemas/V1NewrelicMetric.d.ts +10 -0
  21. package/dist/chaos-manager/src/services/schemas/V1NewrelicMetric.js +4 -0
  22. package/package.json +1 -1
@@ -15,6 +15,10 @@ export interface ListTargetNetworkMapsQueryQueryParams {
15
15
  * @default 10
16
16
  */
17
17
  limit: number;
18
+ environmentIdentifier?: string;
19
+ infraId?: string;
20
+ all?: boolean;
21
+ minimal?: boolean;
18
22
  search?: string;
19
23
  }
20
24
  export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import type { TypesProbeVerifyRequest } from '../schemas/TypesProbeVerifyRequest';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface VerifyProbeMutationPathParams {
6
+ probeId: string;
7
+ }
8
+ export interface VerifyProbeMutationQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type VerifyProbeRequestBody = TypesProbeVerifyRequest;
14
+ export type VerifyProbeOkResponse = string;
15
+ export type VerifyProbeErrorResponse = ApiRestError;
16
+ export interface VerifyProbeProps extends VerifyProbeMutationPathParams, Omit<FetcherOptions<VerifyProbeMutationQueryParams, VerifyProbeRequestBody>, 'url'> {
17
+ queryParams: VerifyProbeMutationQueryParams;
18
+ body: VerifyProbeRequestBody;
19
+ }
20
+ export interface VerifyProbeResponseContainer {
21
+ body: VerifyProbeOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function verifyProbe(props: VerifyProbeProps): Promise<VerifyProbeResponseContainer>;
25
+ export type VerifyProbeMutationProps<T extends keyof VerifyProbeProps> = Omit<VerifyProbeProps, T> & Partial<Pick<VerifyProbeProps, T>>;
26
+ /**
27
+ * Verify a probe
28
+ */
29
+ export declare function useVerifyProbeMutation<T extends keyof VerifyProbeProps>(props: Pick<Partial<VerifyProbeProps>, T>, options?: Omit<UseMutationOptions<VerifyProbeResponseContainer, VerifyProbeErrorResponse, VerifyProbeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<VerifyProbeResponseContainer, ApiRestError, VerifyProbeMutationProps<T>, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function verifyProbe(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/verify`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Verify a probe
11
+ */
12
+ export function useVerifyProbeMutation(props, options) {
13
+ return useMutation((mutateProps) => verifyProbe(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -284,6 +284,8 @@ export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathP
284
284
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
285
285
  export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
286
286
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
287
+ export type { VerifyProbeErrorResponse, VerifyProbeMutationPathParams, VerifyProbeMutationProps, VerifyProbeMutationQueryParams, VerifyProbeOkResponse, VerifyProbeProps, VerifyProbeRequestBody, } from './hooks/useVerifyProbeMutation';
288
+ export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
287
289
  export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
288
290
  export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
289
291
  export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
@@ -664,6 +666,8 @@ export type { ProbeLinuxCmdProbe } from './schemas/ProbeLinuxCmdProbe';
664
666
  export type { ProbeMethod } from './schemas/ProbeMethod';
665
667
  export type { ProbeMethodTemplate } from './schemas/ProbeMethodTemplate';
666
668
  export type { ProbeMetrics } from './schemas/ProbeMetrics';
669
+ export type { ProbeNewrelicMetric } from './schemas/ProbeNewrelicMetric';
670
+ export type { ProbeNewrelicProbeInputs } from './schemas/ProbeNewrelicProbeInputs';
667
671
  export type { ProbeProbeTemplateProperties } from './schemas/ProbeProbeTemplateProperties';
668
672
  export type { ProbeProbeTemplateRunProperties } from './schemas/ProbeProbeTemplateRunProperties';
669
673
  export type { ProbeProbeType } from './schemas/ProbeProbeType';
@@ -766,6 +770,7 @@ export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnable
766
770
  export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
767
771
  export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
768
772
  export type { TypesProbeType } from './schemas/TypesProbeType';
773
+ export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
769
774
  export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
770
775
  export type { TypesRun } from './schemas/TypesRun';
771
776
  export type { TypesScenarioType } from './schemas/TypesScenarioType';
@@ -850,6 +855,8 @@ export type { V1ManagedFieldsEntry } from './schemas/V1ManagedFieldsEntry';
850
855
  export type { V1ManagedFieldsOperationType } from './schemas/V1ManagedFieldsOperationType';
851
856
  export type { V1Metrics } from './schemas/V1Metrics';
852
857
  export type { V1MountPropagationMode } from './schemas/V1MountPropagationMode';
858
+ export type { V1NewrelicInputs } from './schemas/V1NewrelicInputs';
859
+ export type { V1NewrelicMetric } from './schemas/V1NewrelicMetric';
853
860
  export type { V1NewrelicMetrics } from './schemas/V1NewrelicMetrics';
854
861
  export type { V1NewrelicProbeInputs } from './schemas/V1NewrelicProbeInputs';
855
862
  export type { V1NfsVolumeSource } from './schemas/V1NfsVolumeSource';
@@ -141,3 +141,4 @@ export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation
141
141
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
142
142
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
143
143
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
144
+ export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
@@ -34,6 +34,9 @@ export interface GithubComHarnessHceSaasHceSdkCommonProbeV1Probe {
34
34
  * inputs needed for the http probe
35
35
  */
36
36
  'httpProbe/inputs'?: V1HttpProbeInputs;
37
+ /**
38
+ * ID is the unique identifier for the probe
39
+ */
37
40
  id?: string;
38
41
  /**
39
42
  * inputs needed for the k8s probe
@@ -52,6 +55,10 @@ export interface GithubComHarnessHceSaasHceSdkCommonProbeV1Probe {
52
55
  * inputs needed for the Newrelic probe
53
56
  */
54
57
  'newrelicProbe/inputs'?: V1NewrelicProbeInputs;
58
+ /**
59
+ * ProbeRef is the reference to the probe
60
+ */
61
+ probeRef?: string;
55
62
  /**
56
63
  * inputs needed for the prometheus probe
57
64
  */
@@ -1,6 +1,7 @@
1
1
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
2
2
  import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
3
3
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs';
4
+ import type { ProbeNewrelicProbeInputs } from '../schemas/ProbeNewrelicProbeInputs';
4
5
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
5
6
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
6
7
  import type { ProbeApmProbeType } from '../schemas/ProbeApmProbeType';
@@ -8,6 +9,7 @@ export interface ProbeApmProbeTemplate {
8
9
  appDynamicsProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs;
9
10
  comparator?: ProbeComparatorTemplate;
10
11
  dynatraceApmProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs;
12
+ newrelicProbeInputs?: ProbeNewrelicProbeInputs;
11
13
  prometheusProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs;
12
14
  splunkObservabilityProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs;
13
15
  type?: ProbeApmProbeType;
@@ -0,0 +1,4 @@
1
+ export interface ProbeNewrelicMetric {
2
+ query?: string;
3
+ queryMetric?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { ProbeNewrelicMetric } from '../schemas/ProbeNewrelicMetric';
2
+ export interface ProbeNewrelicProbeInputs {
3
+ connectorID?: string;
4
+ newrelicMetric?: ProbeNewrelicMetric;
5
+ }
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
2
+ Format?: string;
3
3
  }
@@ -16,6 +16,7 @@ export interface TypesGetProbeResponse {
16
16
  infrastructureType?: TypesInfrastructureType;
17
17
  isEnabled?: boolean;
18
18
  isImported?: boolean;
19
+ isVerified?: boolean;
19
20
  name?: string;
20
21
  probeId?: string;
21
22
  probeProperties?: ProbeProbeTemplateProperties;
@@ -13,6 +13,7 @@ export interface TypesProbeRequest {
13
13
  infrastructureType?: TypesInfrastructureType;
14
14
  isEnabled?: boolean;
15
15
  isImported?: boolean;
16
+ isVerified?: boolean;
16
17
  name?: string;
17
18
  probeId?: string;
18
19
  probeProperties?: ProbeProbeTemplateProperties;
@@ -0,0 +1,3 @@
1
+ export interface TypesProbeVerifyRequest {
2
+ certify?: boolean;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { V1AppDynamicsInputs } from '../schemas/V1AppDynamicsInputs';
2
2
  import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
3
3
  import type { V1DynatraceApmProbeInputs } from '../schemas/V1DynatraceApmProbeInputs';
4
+ import type { V1NewrelicInputs } from '../schemas/V1NewrelicInputs';
4
5
  import type { V1PrometheusInputs } from '../schemas/V1PrometheusInputs';
5
6
  import type { V1SplunkObservabilityInputs } from '../schemas/V1SplunkObservabilityInputs';
6
7
  export interface V1ApmProbeInputs {
@@ -16,6 +17,10 @@ export interface V1ApmProbeInputs {
16
17
  * DynatraceApmProbeInputs contains the inputs required for Dynatrace probe
17
18
  */
18
19
  dynatraceApmProbeInputs?: V1DynatraceApmProbeInputs;
20
+ /**
21
+ * NewrelicInputs contains the inputs required for Newrelic probe
22
+ */
23
+ newrelicInputs?: V1NewrelicInputs;
19
24
  /**
20
25
  * PrometheusInputs contains the inputs required for prometheus probe
21
26
  */
@@ -0,0 +1,19 @@
1
+ import type { V1NewrelicMetric } from '../schemas/V1NewrelicMetric';
2
+ export interface V1NewrelicInputs {
3
+ /**
4
+ * AccountID for the Newrelic probe
5
+ */
6
+ accountId?: string;
7
+ /**
8
+ * AuthSecretName secret name for the authentication
9
+ */
10
+ authSecretName?: string;
11
+ /**
12
+ * Endpoint for the Newrelic probe
13
+ */
14
+ endpoint?: string;
15
+ /**
16
+ * Raw metrcis details of the Newrelic probe
17
+ */
18
+ newrelicMetric?: V1NewrelicMetric;
19
+ }
@@ -0,0 +1,10 @@
1
+ export interface V1NewrelicMetric {
2
+ /**
3
+ * Query contains the query for the metrics
4
+ */
5
+ query?: string;
6
+ /**
7
+ * NRQL Metrics that will get evaluated
8
+ */
9
+ queryMetric?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.15.1-beta.0",
3
+ "version": "1.15.1-beta.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",