@harnessio/react-chaos-manager-client 1.28.0 → 1.28.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/useGetAccountServiceUsageStatsQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentationActivityReportQuery.d.ts +24 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentationActivityReportQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.d.ts +2 -1
- package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.js +1 -1
- package/dist/chaos-manager/src/services/index.d.ts +3 -1
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageOverallServiceUsageStats.d.ts +3 -3
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusagePeriodicStats.d.ts +4 -2
- package/dist/chaos-manager/src/services/schemas/{ChaosserviceusageServiceStatsByType.d.ts → ChaosserviceusageStatsByType.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.d.ts +1 -2
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.js +3 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.d.ts +1 -2
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.js +3 -0
- package/package.json +1 -1
- /package/dist/chaos-manager/src/services/schemas/{ChaosserviceusageServiceStatsByType.js → ChaosserviceusageStatsByType.js} +0 -0
|
@@ -8,6 +8,7 @@ export interface GetAccountServiceUsageStatsQueryQueryParams {
|
|
|
8
8
|
groupBy: string;
|
|
9
9
|
startTime: number;
|
|
10
10
|
endTime: number;
|
|
11
|
+
cumulative?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export type GetAccountServiceUsageStatsOkResponse = ChaosserviceusageUsageStats;
|
|
13
14
|
export type GetAccountServiceUsageStatsErrorResponse = unknown;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
+
export interface GetExperimentationActivityReportQueryPathParams {
|
|
4
|
+
accountID: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetExperimentationActivityReportQueryQueryParams {
|
|
7
|
+
startTime: number;
|
|
8
|
+
endTime: number;
|
|
9
|
+
cumulate?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type GetExperimentationActivityReportOkResponse = Array<string[]>;
|
|
12
|
+
export type GetExperimentationActivityReportErrorResponse = unknown;
|
|
13
|
+
export interface GetExperimentationActivityReportProps extends GetExperimentationActivityReportQueryPathParams, Omit<FetcherOptions<GetExperimentationActivityReportQueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetExperimentationActivityReportQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export interface GetExperimentationActivityReportResponseContainer {
|
|
17
|
+
body: GetExperimentationActivityReportOkResponse;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
}
|
|
20
|
+
export declare function getExperimentationActivityReport(props: GetExperimentationActivityReportProps): Promise<GetExperimentationActivityReportResponseContainer>;
|
|
21
|
+
/**
|
|
22
|
+
* Generates experimentation activity report for account in a given timeframe
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetExperimentationActivityReportQuery(props: GetExperimentationActivityReportProps, options?: Omit<UseQueryOptions<GetExperimentationActivityReportResponseContainer, GetExperimentationActivityReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentationActivityReportResponseContainer, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getExperimentationActivityReport(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/service/experimentation/report/${props.accountID}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generates experimentation activity report for account in a given timeframe
|
|
11
|
+
*/
|
|
12
|
+
export function useGetExperimentationActivityReportQuery(props, options) {
|
|
13
|
+
return useQuery(['getExperimentationActivityReport', props.accountID, props.queryParams], ({ signal }) => getExperimentationActivityReport(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface GetServiceUsageReportQueryPathParams {
|
|
|
6
6
|
export interface GetServiceUsageReportQueryQueryParams {
|
|
7
7
|
startTime: number;
|
|
8
8
|
endTime: number;
|
|
9
|
+
cumulate?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export type GetServiceUsageReportOkResponse = Array<string[]>;
|
|
11
12
|
export type GetServiceUsageReportErrorResponse = unknown;
|
|
@@ -18,6 +19,6 @@ export interface GetServiceUsageReportResponseContainer {
|
|
|
18
19
|
}
|
|
19
20
|
export declare function getServiceUsageReport(props: GetServiceUsageReportProps): Promise<GetServiceUsageReportResponseContainer>;
|
|
20
21
|
/**
|
|
21
|
-
* Generates service usage report for account in a given timeframe
|
|
22
|
+
* Generates service usage report for account in a given timeframe
|
|
22
23
|
*/
|
|
23
24
|
export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<GetServiceUsageReportResponseContainer, GetServiceUsageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceUsageReportResponseContainer, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getServiceUsageReport(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/service/report/${props.accountID}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Generates service usage report for account in a given timeframe
|
|
10
|
+
* Generates service usage report for account in a given timeframe
|
|
11
11
|
*/
|
|
12
12
|
export function useGetServiceUsageReportQuery(props, options) {
|
|
13
13
|
return useQuery(['getServiceUsageReport', props.accountID, props.queryParams], ({ signal }) => getServiceUsageReport(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -126,6 +126,8 @@ export type { GetExperimentTemplateVariablesErrorResponse, GetExperimentTemplate
|
|
|
126
126
|
export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
|
|
127
127
|
export type { GetExperimentTemplateYamlErrorResponse, GetExperimentTemplateYamlOkResponse, GetExperimentTemplateYamlProps, GetExperimentTemplateYamlQueryPathParams, GetExperimentTemplateYamlQueryQueryParams, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
128
128
|
export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
129
|
+
export type { GetExperimentationActivityReportErrorResponse, GetExperimentationActivityReportOkResponse, GetExperimentationActivityReportProps, GetExperimentationActivityReportQueryPathParams, GetExperimentationActivityReportQueryQueryParams, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
130
|
+
export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
129
131
|
export type { GetFaultErrorResponse, GetFaultOkResponse, GetFaultProps, GetFaultQueryPathParams, GetFaultQueryQueryParams, } from './hooks/useGetFaultQuery';
|
|
130
132
|
export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
|
|
131
133
|
export type { GetFaultTemplateErrorResponse, GetFaultTemplateOkResponse, GetFaultTemplateProps, GetFaultTemplateQueryPathParams, GetFaultTemplateQueryQueryParams, } from './hooks/useGetFaultTemplateQuery';
|
|
@@ -460,8 +462,8 @@ export type { ChaosserviceusageOverallServiceUsageStats } from './schemas/Chaoss
|
|
|
460
462
|
export type { ChaosserviceusagePeriodicStats } from './schemas/ChaosserviceusagePeriodicStats';
|
|
461
463
|
export type { ChaosserviceusageServiceData } from './schemas/ChaosserviceusageServiceData';
|
|
462
464
|
export type { ChaosserviceusageServiceDataResponse } from './schemas/ChaosserviceusageServiceDataResponse';
|
|
463
|
-
export type { ChaosserviceusageServiceStatsByType } from './schemas/ChaosserviceusageServiceStatsByType';
|
|
464
465
|
export type { ChaosserviceusageServiceType } from './schemas/ChaosserviceusageServiceType';
|
|
466
|
+
export type { ChaosserviceusageStatsByType } from './schemas/ChaosserviceusageStatsByType';
|
|
465
467
|
export type { ChaosserviceusageUsageStats } from './schemas/ChaosserviceusageUsageStats';
|
|
466
468
|
export type { CommonTypesExperimentRunStats } from './schemas/CommonTypesExperimentRunStats';
|
|
467
469
|
export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperimentRunsData';
|
|
@@ -62,6 +62,7 @@ export { getExperimentTemplate, useGetExperimentTemplateQuery, } from './hooks/u
|
|
|
62
62
|
export { getExperimentTemplateRevisions, useGetExperimentTemplateRevisionsQuery, } from './hooks/useGetExperimentTemplateRevisionsQuery';
|
|
63
63
|
export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
|
|
64
64
|
export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
65
|
+
export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
65
66
|
export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
|
|
66
67
|
export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
|
|
67
68
|
export { getFaultTemplateRevisions, useGetFaultTemplateRevisionsQuery, } from './hooks/useGetFaultTemplateRevisionsQuery';
|
package/dist/chaos-manager/src/services/schemas/ChaosserviceusageOverallServiceUsageStats.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
|
|
2
2
|
export interface ChaosserviceusageOverallServiceUsageStats {
|
|
3
3
|
accountID?: string;
|
|
4
|
-
licenseServiceMapping?:
|
|
5
|
-
serviceStats?:
|
|
4
|
+
licenseServiceMapping?: ChaosserviceusageStatsByType;
|
|
5
|
+
serviceStats?: ChaosserviceusageStatsByType;
|
|
6
6
|
totalUsage?: number;
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
|
|
2
2
|
export interface ChaosserviceusagePeriodicStats {
|
|
3
|
-
|
|
3
|
+
experimentStatsByType?: ChaosserviceusageStatsByType;
|
|
4
|
+
serviceStatsByType?: ChaosserviceusageStatsByType;
|
|
4
5
|
timestamp?: number;
|
|
5
6
|
totalConsumption?: number;
|
|
7
|
+
totalExperimentRunsConsumption?: number;
|
|
6
8
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager';
|
|
2
1
|
export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs {
|
|
3
2
|
projectID?: string;
|
|
4
3
|
query?: string;
|
|
5
|
-
serviceAccountKey?:
|
|
4
|
+
serviceAccountKey?: string;
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager';
|
|
2
1
|
export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs {
|
|
3
2
|
projectID?: string;
|
|
4
3
|
query?: string;
|
|
5
|
-
serviceAccountKey?:
|
|
4
|
+
serviceAccountKey?: string;
|
|
6
5
|
}
|
package/package.json
CHANGED