Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client of loki
func NewLokiClient ¶
NewLokiClient create a new LokiClient
type Core ¶
type Core struct {
SendLevel zapcore.Level // default: zapCore.InfoLevel
ContextFields []zapcore.Field
URL string
// contains filtered or unexported fields
}
Core is a zap core for logging to loki
func (*Core) Check ¶
func (c *Core) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check determines whether the supplied Entry should be logged (using the embedded LevelEnabler and possibly some extra logic). If the entry should be logged, the Core adds itself to the CheckedEntry and returns the result.
Callers must use Check before calling Write.
type EntryWithLabels ¶
EntryWithLabels is a log entry with labels.
type JSONRequest ¶
type JSONRequest struct {
Streams []JSONRequestStream `json:"streams,omitempty"`
}
JSONRequest is a json request for loki
type JSONRequestStream ¶
type JSONRequestStream struct {
Stream model.LabelSet `json:"stream,omitempty"`
Values []JSONRequestValueItem `json:"values,omitempty"`
}
JSONRequestStream contains the log within a JSONRequest
type JSONRequestValueItem ¶
type JSONRequestValueItem []string
JSONRequestValueItem is an array of string
Click to show internal directories.
Click to hide internal directories.