Use proper error handling, fix up data structure, attempt to send telemetry data.

Этот коммит содержится в:
Conor Macpherson
2022-12-13 13:09:20 -04:00
родитель 68c27f7c37
Коммит cad414fd4d
3 изменённых файлов: 56 добавлений и 13 удалений

Просмотреть файл

@@ -39,6 +39,15 @@ var (
sanctionedTrialDurationUpperBound = 29*(time.Hour*24) + (time.Hour * 23) + (time.Minute * 59) + (time.Second * 59) // 696 hours (29 days) + 23 hours, 59 mins and 59 seconds
)
const (
TrueUpReviewTelemetryName = "true-up-review-sent"
TrueUpReviewAuthFeaturesMfa = "multi_factor_authentication"
TueUpReviewAuthFeaturesAdLdap = "ad_ldap_sign_in"
TrueUpReviewauthFeaturesSaml = "saml_sign_in"
TrueUpReviewAuthFeatureOpenId = "openid_connect"
TrueUpReviewAuthFeatureGuestAccess = "guest_access"
)
type LicenseRecord struct {
Id string `json:"id"`
CreateAt int64 `json:"create_at"`

Просмотреть файл

@@ -21,7 +21,6 @@ type TrueUpReviewProfile struct {
}
type TrueUpReviewPlugins struct {
TotalPlugins int `json:"total_plugins"`
TotalActivePlugins int `json:"total_active_plugins"`
TotalInactivePlugins int `json:"total_inactive_plugins"`
ActivePluginNames []string `json:"active_plugin_names"`