Documentation
¶
Index ¶
Constants ¶
View Source
const ( Attr = "nuon.audit" AttrValue = "true" EventAttr = "nuon.audit.event" OutcomeAttr = "nuon.audit.outcome" )
Attr tags records the gateway collector forwards to the customer's backend. Collector filters compare the log record attribute against the string "true", so the value must not be emitted as a bool.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func New ¶
New builds the audit emitter. Its logger is deliberately standalone rather than teed into the system logger: audit records must not reach stderr, so ctl-api's normal log output stays byte-for-byte unchanged and the Datadog monitors reading it are unaffected.
func NewEmitter ¶
type EventType ¶
type EventType string
EventType mirrors the type column of the install_audit_logs view so streamed audit records stay consistent with the ones customers download today.
Click to show internal directories.
Click to hide internal directories.