1234567891011121314151617181920212223242526272829 |
- // Copyright The OpenTelemetry Authors
- // SPDX-License-Identifier: Apache-2.0
- package alertmanagerexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alertmanagerexporter"
- import (
- "go.opentelemetry.io/collector/component"
- "go.opentelemetry.io/collector/config/confighttp"
- "go.opentelemetry.io/collector/exporter/exporterhelper"
- )
- // Config defines configuration for alertmanager exporter.
- type Config struct {
- exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.
- exporterhelper.QueueSettings `mapstructure:"sending_queue"`
- exporterhelper.RetrySettings `mapstructure:"retry_on_failure"`
- confighttp.HTTPClientSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.
- GeneratorURL string `mapstructure:"generator_url"`
- DefaultSeverity string `mapstructure:"severity"`
- SeverityAttribute string `mapstructure:"severity_attribute"`
- }
- var _ component.Config = (*Config)(nil)
- // Validate checks if the exporter configuration is valid
- func (cfg *Config) Validate() error {
- return nil
- }
|