loghttp

package
v3.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DroppedEntry

type DroppedEntry struct {
	Timestamp time.Time
	Labels    string
}

DroppedEntry represents a dropped entry in a tail call

type Entry

type Entry struct {
	Timestamp time.Time `json:"ts"`
	Line      string    `json:"line"`
}

Entry represents a log entry. It includes a log message and the time it occurred at.

type LabelResponse

type LabelResponse struct {
	Values []string `json:"values,omitempty"`
}

LabelResponse represents the http json response to a label query

type QueryResponse

type QueryResponse struct {
	Streams []*Stream `json:"streams,omitempty"`
}

QueryResponse represents the http json response to a label query

type Stream

type Stream struct {
	Labels  string  `json:"labels"`
	Entries []Entry `json:"entries"`
}

Stream represents a log stream. It includes a set of log entries and their labels.

type TailResponse

type TailResponse struct {
	Streams        []logproto.Stream `json:"streams"`
	DroppedEntries []DroppedEntry    `json:"dropped_entries"`
}

TailResponse represents the http json response to a tail query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL