Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvironmentFromAuth ¶
func EnvironmentFromAuth(ctx context.Context) translate.Environment
Types ¶
type AuthEnv ¶
type AuthEnv struct {
// contains filtered or unexported fields
}
func (*AuthEnv) CollectorID ¶
func (*AuthEnv) CustomerID ¶
type BufferingConfig ¶
type BufferingConfig struct { Type string `mapstructure:"type"` Directory string `mapstructure:"directory"` }
func (BufferingConfig) Validate ¶
func (c BufferingConfig) Validate() error
type Config ¶
type Config struct { S3Uploader S3UploaderConfig `mapstructure:"s3uploader"` Timeboxes TimeboxesConfig `mapstructure:"timeboxes"` UseNowForMetrics bool `mapstructure:"use_now_for_metrics"` Buffering BufferingConfig `mapstructure:"buffering"` IDSource string `mapstructure:"id_source"` }
Config contains the main configuration options for the s3 exporter
type S3UploaderConfig ¶
type S3UploaderConfig struct { Region string `mapstructure:"region"` S3Bucket string `mapstructure:"s3_bucket"` S3Prefix string `mapstructure:"s3_prefix"` S3Partition string `mapstructure:"s3_partition"` CustomerKey string `mapstructure:"customer_key"` FilePrefix string `mapstructure:"file_prefix"` Endpoint string `mapstructure:"endpoint"` RoleArn string `mapstructure:"role_arn"` S3ForcePathStyle bool `mapstructure:"s3_force_path_style"` DisableSSL bool `mapstructure:"disable_ssl"` }
S3UploaderConfig contains aws s3 uploader related config to controls things like bucket, prefix, batching, connections, retries, etc.
type TimeboxConfig ¶
type TimeboxConfig struct { Interval time.Duration `mapstructure:"interval"` GracePeriod time.Duration `mapstructure:"grace_period"` OpenIntervalCount int64 `mapstructure:"open_interval_count"` }
func (TimeboxConfig) Validate ¶
func (tb TimeboxConfig) Validate() error
type TimeboxesConfig ¶
type TimeboxesConfig struct { Logs TimeboxConfig `mapstructure:"logs"` Metrics TimeboxConfig `mapstructure:"metrics"` Traces TimeboxConfig `mapstructure:"traces"` }
TimeboxConfig contains the configuration for the timebox
func (TimeboxesConfig) Validate ¶
func (tb TimeboxesConfig) Validate() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.