Use proper error handling, fix up data structure, attempt to send telemetry data.
Этот коммит содержится в:
@@ -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"`
|
||||
|
||||
Ссылка в новой задаче
Block a user