Files
alertmanager-discord/pkg/logging/fields.go
T
Iain Sproat f2872d6dea Configurable logging levels (#16)
* Update screenshot to match current output
* Log level is configurable
* Alert name is provided in log line, where available.
* Capitalise Discord, check err in integration test, and other syntax issues
* Go formatting syntax fixes
* Log the common alert name or group alert name, in that precedence
2022-11-21 21:04:05 +00:00

13 lines
329 B
Go

package logging
const (
// field keys should be lowercase snake_case.
FieldKeyHttpHost = "host"
FieldKeyHttpMethod = "method"
FieldKeyHttpPath = "path"
FieldKeyEventType = "event_type"
FieldKeyAlertName = "alert_name"
FieldKeyCorrelationId = "correlation_id"
FieldKeyStatusCode = "status_code"
)