datadogtarget

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvAccessorCtor

func EnvAccessorCtor() pkgadapter.EnvConfigAccessor

EnvAccessorCtor for configuration parameters

func NewTarget

NewTarget adapter implementation

Types

type EventData

type EventData struct {
	AlertType      *string  `json:"alert_type,omitempty"`
	DateHappened   *int     `json:"date_happened,omitempty"`
	DeviceName     *string  `json:"device_name,omitempty"`
	Host           *string  `json:"host,omitempty"`
	ID             *int     `json:"id,omitempty"`
	Priority       *string  `json:"priority,omitempty"`
	RelatedEventID *int     `json:"related_event_id,omitempty"`
	SourceTypeName *string  `json:"source_type_name,omitempty"`
	Status         *string  `json:"status,omitempty"`
	Tags           []string `json:"tags,omitempty"`
	Text           string   `json:"text"`
	Title          string   `json:"title"`
	URL            *string  `json:"url,omitempty"`
}

EventData represents the body of a Datadog event Ref. https://docs.datadoghq.com/api/latest/events/#post-an-event

The data of CloudEvents of type "com.zeiss.datadog.event.post" must satisfy this schema.

type LogData

type LogData struct {
	DdSource string `json:"ddsource"`
	DdTags   string `json:"ddtags"`
	Hostname string `json:"hostname"`
	Message  string `json:"message"`
	Service  string `json:"service"`
}

LogData represents the body of a Datadog log entry Ref. https://docs.datadoghq.com/api/latest/logs/#send-logs

The data of CloudEvents of type "com.zeiss.datadog.logs.send" must satisfy this schema.

type MetricData

type MetricData struct {
	Series []Series `json:"series"`
}

MetricData represents the body of a Datadog metric (time-series). Ref. https://docs.datadoghq.com/api/latest/metrics/#submit-metrics

The data of CloudEvents of type "com.zeiss.datadog.metric" must satisfy this schema.

type Series

type Series struct {
	Host     *string    `json:"host,omitempty"`
	Interval *int       `json:"interval,omitempty"`
	Metric   string     `json:"metric"`
	Points   [][]string `json:"points"`
	Tags     []string   `json:"tags,omitempty"`
	Type     *string    `json:"type,omitempty"`
}

Series is an individual metric series.

Jump to

Keyboard shortcuts

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