This commit is contained in:
crusader 2018-05-11 19:36:30 +09:00
parent dd81439795
commit ef7aa65a3e

View File

@ -3,16 +3,17 @@ package external
import "time" import "time"
type InfluxDB struct { type InfluxDB struct {
HTTPConfigs map[string]*InfluxDBHTTPConfig `json:"httpConfigs" yaml:"httpConfigs" toml:"httpConfigs"` ClientConfigs map[string]*InfluxDBClientConfig `json:"clientConfigs" yaml:"clientConfigs" toml:"clientConfigs"`
BatchPointsConfigs map[string]*InfluxDBBatchPointsConfig `json:"batchPointsConfigs" yaml:"batchPointsConfigs" toml:"batchPointsConfigs"` BatchPointsConfigs map[string]*InfluxDBBatchPointsConfig `json:"batchPointsConfigs" yaml:"batchPointsConfigs" toml:"batchPointsConfigs"`
} }
type InfluxDBHTTPConfig struct { type InfluxDBClientConfig struct {
Address string `json:"address" yaml:"address" toml:"address"` ClientType string `json:"clientType" yaml:"clientType" toml:"clientType"`
Username string `json:"username" yaml:"username" toml:"username"` Address string `json:"address" yaml:"address" toml:"address"`
Password string `json:"password" yaml:"password" toml:"password"` Username string `json:"username" yaml:"username" toml:"username"`
UserAgent string `json:"userAgent" yaml:"userAgent" toml:"userAgent"` Password string `json:"password" yaml:"password" toml:"password"`
Timeout time.Duration `json:"timeout" yaml:"timeout" toml:"timeout"` UserAgent string `json:"userAgent" yaml:"userAgent" toml:"userAgent"`
Timeout time.Duration `json:"timeout" yaml:"timeout" toml:"timeout"`
} }
type InfluxDBBatchPointsConfig struct { type InfluxDBBatchPointsConfig struct {