Skip to content

Commit

Permalink
style: Add deprecated warning and version to win_perf_counters option (
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska authored Feb 3, 2022
1 parent 48682ff commit bd5c859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/win_perf_counters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Example:

#### PreVistaSupport

(Deprecated. Necessary features on Windows Vista and newer are checked dynamically)
(Deprecated in 1.7; Necessary features on Windows Vista and newer are checked dynamically)

Bool, if set to `true`, the plugin will use the localized PerfCounter interface that has been present since before Vista for backwards compatibility.

Expand Down
5 changes: 2 additions & 3 deletions plugins/inputs/win_perf_counters/win_perf_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ var sampleConfig = `
`

type Win_PerfCounters struct {
PrintValid bool
//deprecated: determined dynamically
PreVistaSupport bool
PrintValid bool `toml:"PrintValid"`
PreVistaSupport bool `toml:"PreVistaSupport" deprecated:"1.7.0;determined dynamically"`
UsePerfCounterTime bool
Object []perfobject
CountersRefreshInterval config.Duration
Expand Down

0 comments on commit bd5c859

Please sign in to comment.