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 ¶
func NewTarget(ctx context.Context, envAcc pkgadapter.EnvConfigAccessor, ceClient cloudevents.Client) pkgadapter.Adapter
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 "io.triggermesh.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 "io.triggermesh.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 "io.triggermesh.datadog.metric" must satisfy this schema.