Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatNames ¶
Types ¶
type LogTemplate ¶
type LogTemplate struct { Format string // contains filtered or unexported fields }
func NewLogTemplate ¶
func NewLogTemplate(format string, fs fs.FS, data LogTemplateData) (*LogTemplate, error)
func (*LogTemplate) Labels ¶
func (l *LogTemplate) Labels() prometheus.Labels
func (*LogTemplate) String ¶
func (l *LogTemplate) String() (string, float64)
type LogTemplateData ¶
type LogTemplateData interface {
Severity() string
}
Click to show internal directories.
Click to hide internal directories.