Documentation
¶
Overview ¶
Package logs represents the reader and writer interface to query and push logs to Loki for a set of labels.
Index ¶
- func Query(ctx context.Context, l log.Logger, endpoint *url.URL, t auth.TokenProvider, ...) (int, promapiv1.Warnings, error)
- func Read(ctx context.Context, endpoint *url.URL, tp auth.TokenProvider, ...) (int, error)
- func Write(ctx context.Context, endpoint *url.URL, t auth.TokenProvider, ...) (int, error)
- type PushRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PushRequest ¶
type PushRequest struct {
Streams []stream `json:"streams"`
}
PushRequest represents the payload to push logs to Loki.
Click to show internal directories.
Click to hide internal directories.