mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-22 07:20:59 +00:00
format and clarify alias type comment
Signed-off-by: glightfoot <glightfoot@rsglab.com>
This commit is contained in:
parent
66a63a8c1f
commit
f8bba00868
3 changed files with 11 additions and 11 deletions
|
@ -24,7 +24,7 @@ type mapperConfigDefaults struct {
|
|||
HistogramOptions HistogramOptions `yaml:"histogram_options"`
|
||||
}
|
||||
|
||||
// mapperConfigDefaultsAlias is used to allow deprecated fields
|
||||
// mapperConfigDefaultsAlias is used to unmarshal the yaml config into mapperConfigDefaults and allows deprecated fields
|
||||
type mapperConfigDefaultsAlias struct {
|
||||
ObserverType ObserverType `yaml:"observer_type"`
|
||||
TimerType ObserverType `yaml:"timer_type,omitempty"` // DEPRECATED - field only present to preserve backwards compatibility in configs
|
||||
|
|
Loading…
Reference in a new issue