Просмотр исходного кода

util/syspolicy: rename client metric keys (#10516)

Updates ENG-2513. Renames client metrics keys used on Windows for consistency with Apple platforms.

Signed-off-by: Andrea Gottardo <[email protected]>
Andrea Gottardo 2 лет назад
Родитель
Сommit
646d17ac8d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      util/syspolicy/handler_windows.go

+ 3 - 3
util/syspolicy/handler_windows.go

@@ -12,8 +12,8 @@ import (
 )
 
 var (
-	windowsErrors = clientmetric.NewCounter("windows_mdm_setting_errors")
-	windowsAny    = clientmetric.NewGauge("windows_mdm_setting_any")
+	windowsErrors = clientmetric.NewCounter("windows_syspolicy_errors")
+	windowsAny    = clientmetric.NewGauge("windows_syspolicy_any")
 )
 
 type windowsHandler struct{}
@@ -54,7 +54,7 @@ func init() {
 			if !l.isSet(k) {
 				continue
 			}
-			clientmetric.NewGauge(fmt.Sprintf("windows_mdm_setting_%s", k)).Set(1)
+			clientmetric.NewGauge(fmt.Sprintf("windows_syspolicy_%s", k)).Set(1)
 			anySet = true
 		}
 	}