@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.
@@ -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,9 @@
1
+ export interface ChaosserviceusageChaosStatsByType {
2
+ 'Cloud Resources'?: number;
3
+ 'Container Services'?: number;
4
+ Kubernetes?: number;
5
+ Linux?: number;
6
+ Others?: number;
7
+ Serverless?: number;
8
+ Windows?: number;
9
+ }
@@ -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,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
+ }
@@ -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
+ export interface ChaosserviceusageLoadStats {
2
+ loadTestRuns?: number;
3
+ loadTests?: number;
4
+ serviceUsage?: number;
5
+ }
@@ -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
+ export interface ChaosserviceusageLoadStatsByType {
2
+ Java?: number;
3
+ JavaScript?: number;
4
+ Python?: number;
5
+ }
@@ -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,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
- experimentStatsByType?: ChaosserviceusageStatsByType;
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';
@@ -3,6 +3,7 @@ export interface ChaosserviceusageStatsByType {
3
3
  'Container Services'?: number;
4
4
  Kubernetes?: number;
5
5
  Linux?: number;
6
+ Load?: number;
6
7
  Others?: number;
7
8
  Serverless?: number;
8
9
  Windows?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.77.0",
3
+ "version": "1.78.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",