Skip to content

Commit 9aa8846

Browse files
Arta AsadiArta Asadi
authored andcommitted
fix: add UsageTrackerRequest
1 parent 8204628 commit 9aa8846

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pkg/api/shared-entities/information.go

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package shared_entities
22

3-
import "time"
3+
import (
4+
"github.com/google/uuid"
5+
"time"
6+
)
47

58
// CspmUsageRequest is the request object for the call home feature data gathering
69
type CspmUsageRequest struct {
@@ -11,3 +14,20 @@ type CspmUsageRequest struct {
1114
NumberOfUsers int64 `json:"number_of_users"`
1215
IntegrationTypeCount map[string]int `json:"integration_type_count"`
1316
}
17+
18+
type UsageTrackerPluginInfo struct {
19+
Name string `json:"name"`
20+
Version string `json:"version"`
21+
IntegrationCount int `json:"integration_count"`
22+
}
23+
24+
type UsageTrackerRequest struct {
25+
InstanceID uuid.UUID `json:"instance_id"`
26+
Time time.Time `json:"time"`
27+
Version string `json:"version"`
28+
Hostname string `json:"hostname"`
29+
IsSsoConfigured bool `json:"is_sso_configured"`
30+
UserCount int64 `json:"user_count"`
31+
ApiKeyCount int64 `json:"api_key_count"`
32+
Plugins []UsageTrackerPluginInfo `json:"plugins"`
33+
}

0 commit comments

Comments
 (0)