From e4d357e0ebf0a896914d2ff90791bf1047fad442 Mon Sep 17 00:00:00 2001 From: Mahan Zendedel DH Date: Mon, 29 Jul 2024 14:00:22 +0400 Subject: [PATCH] feat: add cspm usage request --- pkg/api/shared-entities/information.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pkg/api/shared-entities/information.go diff --git a/pkg/api/shared-entities/information.go b/pkg/api/shared-entities/information.go new file mode 100644 index 0000000..5ae4e04 --- /dev/null +++ b/pkg/api/shared-entities/information.go @@ -0,0 +1,14 @@ +package shared_entities + +import "time" + +// CspmUsageRequest is the request object for the call home feature data gathering +type CspmUsageRequest struct { + WorkspaceId string `json:"workspace_id"` + AwsOrganizationRootEmails []string `json:"aws_organization_root_emails"` + AwsAccountCount int `json:"aws_account_count"` + AzureAdPrimaryDomains []string `json:"azure_ad_primary_domains"` + AzureSubscriptionCount int `json:"azure_subscription_count"` + Users []string `json:"users"` + GatherTimestamp time.Time `json:"gather_timestamp"` +}