package aspdotnet import ( "time" "github.com/signalfx/signalfx-agent/internal/core/config" "github.com/signalfx/signalfx-agent/internal/monitors" "github.com/signalfx/signalfx-agent/internal/monitors/types" ) func init() { monitors.Register(&monitorMetadata, func() interface{} { return &Monitor{} }, &Config{}) } // Config for this monitor type Config struct { config.MonitorConfig `singleInstance:"true" acceptsEndpoints:"false"` // (Windows Only) Number of seconds that wildcards in counter paths should // be expanded and how often to refresh counters from configuration. CountersRefreshInterval time.Duration `yaml:"counterRefreshInterval" default:"60s"` // (Windows Only) Print out the configurations that match available // performance counters. This is used for debugging. PrintValid bool `yaml:"printValid"` } // Monitor for Utilization type Monitor struct { Output types.Output cancel func() } // Shutdown stops the metric sync func (m *Monitor) Shutdown() { if m.cancel != nil { m.cancel() } }