@harnessio/react-chaos-manager-client 1.77.0 → 1.78.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/index.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageChaosStatsByType.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageChaosStatsByType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadRatioConfig.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadRatioConfig.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadStats.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadStats.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadStatsByType.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageLoadStatsByType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageOverallServiceUsageStats.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusagePeriodicStats.d.ts +22 -1
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageServiceType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosserviceusageStatsByType.d.ts +1 -0
- package/package.json +1 -1
|
@@ -733,7 +733,11 @@ export type { ChaosservicesListLoadTestsResponse } from './schemas/Chaosservices
|
|
|
733
733
|
export type { ChaosservicesLoadTestSummaryResponse } from './schemas/ChaosservicesLoadTestSummaryResponse';
|
|
734
734
|
export type { ChaosservicesServiceProbeAssociation } from './schemas/ChaosservicesServiceProbeAssociation';
|
|
735
735
|
export type { ChaosservicesUpdateRequest } from './schemas/ChaosservicesUpdateRequest';
|
|
736
|
+
export type { ChaosserviceusageChaosStatsByType } from './schemas/ChaosserviceusageChaosStatsByType';
|
|
736
737
|
export type { ChaosserviceusageInfrastructureType } from './schemas/ChaosserviceusageInfrastructureType';
|
|
738
|
+
export type { ChaosserviceusageLoadRatioConfig } from './schemas/ChaosserviceusageLoadRatioConfig';
|
|
739
|
+
export type { ChaosserviceusageLoadStats } from './schemas/ChaosserviceusageLoadStats';
|
|
740
|
+
export type { ChaosserviceusageLoadStatsByType } from './schemas/ChaosserviceusageLoadStatsByType';
|
|
737
741
|
export type { ChaosserviceusageOverallServiceUsageStats } from './schemas/ChaosserviceusageOverallServiceUsageStats';
|
|
738
742
|
export type { ChaosserviceusagePeriodicStats } from './schemas/ChaosserviceusagePeriodicStats';
|
|
739
743
|
export type { ChaosserviceusageServiceData } from './schemas/ChaosserviceusageServiceData';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ChaosserviceusageLoadRatioConfig {
|
|
2
|
+
baseServiceWeight?: number;
|
|
3
|
+
categoricalWeights?: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
[key: string]: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
metricThresholds?: {
|
|
9
|
+
[key: string]: number;
|
|
10
|
+
};
|
|
11
|
+
metricWeights?: {
|
|
12
|
+
[key: string]: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/schemas/ChaosserviceusageOverallServiceUsageStats.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
|
|
2
|
+
import type { ChaosserviceusageLoadRatioConfig } from '../schemas/ChaosserviceusageLoadRatioConfig';
|
|
3
|
+
import type { ChaosserviceusageLoadStats } from '../schemas/ChaosserviceusageLoadStats';
|
|
2
4
|
export interface ChaosserviceusageOverallServiceUsageStats {
|
|
3
5
|
accountID?: string;
|
|
4
6
|
licenseServiceMapping?: ChaosserviceusageStatsByType;
|
|
7
|
+
/**
|
|
8
|
+
* LoadRatioConfig is the complexity factor behind LoadStats.ServiceUsage.
|
|
9
|
+
* Nil when the account has no load ratio config yet.
|
|
10
|
+
*/
|
|
11
|
+
loadRatioConfig?: ChaosserviceusageLoadRatioConfig;
|
|
12
|
+
/**
|
|
13
|
+
* LoadStats is the load testing share of TotalUsage plus its activity counts.
|
|
14
|
+
*/
|
|
15
|
+
loadStats?: ChaosserviceusageLoadStats;
|
|
5
16
|
serviceStats?: ChaosserviceusageStatsByType;
|
|
17
|
+
/**
|
|
18
|
+
* TotalUsage is the account's total license utilisation over the window,
|
|
19
|
+
* covering both chaos service usage and LoadStats.ServiceUsage.
|
|
20
|
+
*/
|
|
6
21
|
totalUsage?: number;
|
|
7
22
|
}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
|
+
import type { ChaosserviceusageChaosStatsByType } from '../schemas/ChaosserviceusageChaosStatsByType';
|
|
2
|
+
import type { ChaosserviceusageLoadStatsByType } from '../schemas/ChaosserviceusageLoadStatsByType';
|
|
1
3
|
import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
|
|
2
4
|
export interface ChaosserviceusagePeriodicStats {
|
|
3
|
-
|
|
5
|
+
/**
|
|
6
|
+
* ExperimentStatsByType has no load category: load runs are counted by
|
|
7
|
+
* LoadExecutionsByType, broken down by language rather than infra type.
|
|
8
|
+
*/
|
|
9
|
+
experimentStatsByType?: ChaosserviceusageChaosStatsByType;
|
|
10
|
+
loadExecutionsByType?: ChaosserviceusageLoadStatsByType;
|
|
11
|
+
/**
|
|
12
|
+
* LoadServicesStatsByType counts the services load tested in the period,
|
|
13
|
+
* grouped by scripting language. LoadExecutionsByType counts their load
|
|
14
|
+
* test runs the same way. The period's load license utilisation is not
|
|
15
|
+
* repeated here: it is ServiceStatsByType.Load.
|
|
16
|
+
*/
|
|
17
|
+
loadServicesStatsByType?: ChaosserviceusageLoadStatsByType;
|
|
18
|
+
/**
|
|
19
|
+
* ServiceStatsByType.Load is the period's load license utilisation.
|
|
20
|
+
*/
|
|
4
21
|
serviceStatsByType?: ChaosserviceusageStatsByType;
|
|
5
22
|
timestamp?: number;
|
|
23
|
+
/**
|
|
24
|
+
* TotalServicesConsumption is the period's full license utilisation: the
|
|
25
|
+
* sum of every ServiceStatsByType category, load included.
|
|
26
|
+
*/
|
|
6
27
|
totalConsumption?: number;
|
|
7
28
|
totalExperimentRunsConsumption?: number;
|
|
8
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ChaosserviceusageServiceType = 'CloudResources' | 'ContainerServices' | 'Kubernetes' | 'Linux' | 'Others' | 'Serverless' | 'Windows';
|
|
1
|
+
export type ChaosserviceusageServiceType = 'CloudResources' | 'ContainerServices' | 'Kubernetes' | 'Linux' | 'Load' | 'Others' | 'Serverless' | 'Windows';
|
package/package.json
CHANGED