mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
update: rename updates collector to update (#1692)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//go:build windows
|
||||
|
||||
package updates
|
||||
package update
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"github.com/yusufpapurcu/wmi"
|
||||
)
|
||||
|
||||
const Name = "updates"
|
||||
const Name = "update"
|
||||
|
||||
type Config struct {
|
||||
online bool `yaml:"online"`
|
||||
@@ -1,12 +1,12 @@
|
||||
package updates_test
|
||||
package update_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prometheus-community/windows_exporter/internal/collector/updates"
|
||||
"github.com/prometheus-community/windows_exporter/internal/collector/update"
|
||||
"github.com/prometheus-community/windows_exporter/internal/testutils"
|
||||
)
|
||||
|
||||
func BenchmarkCollector(b *testing.B) {
|
||||
testutils.FuncBenchmarkCollector(b, "printer", updates.NewWithFlags)
|
||||
testutils.FuncBenchmarkCollector(b, "printer", update.NewWithFlags)
|
||||
}
|
||||
Reference in New Issue
Block a user