datadog

package
v0.0.0-rc11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = abstract.ProviderType("datadog")

Variables

View Source
var (
	FatalErrors = set.New("403 Forbidden")
)

Functions

func New

func NewSink

func NewSink(cfg *DatadogDestination, logger log.Logger, registry metrics.Registry) (abstract.Sinker, error)

Types

type DatadogDestination

type DatadogDestination struct {
	ClientAPIKey model.SecretString
	DatadogHost  string

	// mapping to columns
	SourceColumn    string
	TagColumns      []string
	HostColumn      string
	ServiceColumn   string
	MessageTemplate string
	ChunkSize       int
}

func (*DatadogDestination) CleanupMode

func (d *DatadogDestination) CleanupMode() model.CleanupType

func (*DatadogDestination) Compatible

func (d *DatadogDestination) Compatible(src model.Source, transferType abstract.TransferType) error

func (*DatadogDestination) GetProviderType

func (d *DatadogDestination) GetProviderType() abstract.ProviderType

func (*DatadogDestination) IsDestination

func (d *DatadogDestination) IsDestination()

func (*DatadogDestination) Validate

func (d *DatadogDestination) Validate() error

func (*DatadogDestination) WithDefaults

func (d *DatadogDestination) WithDefaults()

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (Provider) Sink

func (p Provider) Sink(config middlewares.Config) (abstract.Sinker, error)

func (Provider) Type

func (p Provider) Type() abstract.ProviderType

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) Push

func (s *Sink) Push(items []abstract.ChangeItem) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL