Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
MaxIdleConnections: 3,
MaxOpenConnections: 3,
Timeout: 10 * time.Second,
}
DefaultConfig is the default config for the mssql integration
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ConnectionString config_util.Secret `yaml:"connection_string,omitempty"`
MaxIdleConnections int `yaml:"max_idle_connections,omitempty"`
MaxOpenConnections int `yaml:"max_open_connections,omitempty"`
Timeout time.Duration `yaml:"timeout,omitempty"`
QueryConfig util.RawYAML `yaml:"query_config,omitempty"`
}
Config is the configuration for the mssql integration
func (*Config) InstanceKey ¶
func (c *Config) InstanceKey(agentKey string) (string, error)
Identifier returns a string that identifies the integration.
func (*Config) Name ¶
func (c *Config) Name() string
Name returns the name of the integration this config is for.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
NewIntegration creates a new integration from the config.
func (*Config) UnmarshalYAML ¶
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.