public WindowsUpdates()
        {
            this.WindowsUpdateMissingUpdatesTotal = Metrics.CreateGauge("windows_updates_missing_total", "Number of missing Windows patches");
            this.WindowsUpdateMissingUpdatesTotal.Set(0); // maybe this is the default

            this.WindowsUpdateLastScanTime = Metrics.CreateGauge("windows_updates_last_scan_time", "Last search time, in unixtime.");
            this.WindowsUpdateLastScanTime.Set(0);

            this.WindowsUpdateScanDuration = Metrics.CreateSummary("windows_updates_last_scan_duration_milliseconds", "Last scan time, milliseconds.");
        }
예제 #2
0
 public Summary(string name, string help)
 {
     _summary = Pro.Metrics.CreateSummary(name, help);
 }