Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusEmergency = "emergency" StatusAlert = "alert" StatusCritical = "critical" StatusError = "error" StatusWarning = "warn" StatusNotice = "notice" StatusInfo = "info" StatusDebug = "debug" )
Status values
Variables ¶
View Source
var ( SevEmergency = []byte("<40>") SevAlert = []byte("<41>") SevCritical = []byte("<42>") SevError = []byte("<43>") SevWarning = []byte("<44>") SevNotice = []byte("<45>") SevInfo = []byte("<46>") SevDebug = []byte("<47>") )
Syslog severity levels
Functions ¶
func StatusToSeverity ¶
StatusToSeverity transforms a severity into a status.
Types ¶
type Message ¶
type Message interface { Content() []byte SetContent([]byte) GetOrigin() *Origin GetStatus() string }
Message represents a log line sent to datadog, with its metadata
type Origin ¶
type Origin struct { Identifier string LogSource *config.LogSource Offset string // contains filtered or unexported fields }
Origin represents the Origin of a message
func (*Origin) Service ¶
Service returns the service of the configuration if set or the service of the message, if none are defined, returns an empty string by default.
func (*Origin) SetService ¶
SetService sets the service of the origin.
func (*Origin) Source ¶
Source returns the source of the configuration if set or the source of the message, if none are defined, returns an empty string by default.
func (*Origin) TagsPayload ¶
TagsPayload returns the raw tag payload of the origin.
Click to show internal directories.
Click to hide internal directories.