[Cloud Security] update cloud security telemetry interface

This commit is contained in:
Ido Cohen 2023-04-24 10:26:39 +03:00 committed by GitHub
parent 743325dc85
commit 67927e12b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { BaseCspSetupBothPolicy } from '../../../../common/types';
import { CspStatusCode } from '../../../../common/types';
export interface CspmUsage {
indices: CspmIndicesStats;
@ -14,6 +14,12 @@ export interface CspmUsage {
rules_stats: CspmRulesStats[];
}
export interface PackageSetupStatus {
status: CspStatusCode;
installedPackagePolicies: number;
healthyAgents: number;
}
export interface CspmIndicesStats {
findings: IndexStats | {};
latest_findings: IndexStats | {};
@ -21,9 +27,9 @@ export interface CspmIndicesStats {
latest_vulnerabilities: IndexStats | {};
score: IndexStats | {};
latestPackageVersion: string;
cspm: BaseCspSetupBothPolicy;
kspm: BaseCspSetupBothPolicy;
vuln_mgmt: BaseCspSetupBothPolicy;
cspm: PackageSetupStatus;
kspm: PackageSetupStatus;
vuln_mgmt: PackageSetupStatus;
}
export interface IndexStats {