type ChartConfig struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
Units string `yaml:"units"`
Family string `yaml:"family"`
Type string `yaml:"type"`
Priority int `yaml:"priority"`
IndexRange []int `yaml:"multiply_range"`
Dimensions []DimensionConfig `yaml:"dimensions"`
}
type Config struct {
UpdateEvery int `yaml:"update_every"`
Hostname string `yaml:"hostname"`
Community string `yaml:"community"`
User User `yaml:"user"`
Options Options `yaml:"options"`
ChartsInput []ChartConfig `yaml:"charts"`
}
type DimensionConfig struct {
OID string `yaml:"oid"`
Name string `yaml:"name"`
Algorithm string `yaml:"algorithm"`
Multiplier int `yaml:"multiplier"`
Divisor int `yaml:"divisor"`
}
type Options struct {
Port int `yaml:"port"`
Retries int `yaml:"retries"`
Timeout int `yaml:"timeout"`
Version string `yaml:"version"`
MaxOIDs int `yaml:"max_request_size"`
}