Documentation
¶
Index ¶
Constants ¶
const ( ResultTypeStream = "streams" ResultTypeScalar = "scalar" ResultTypeVector = "vector" ResultTypeMatrix = "matrix" )
ResultType values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶ added in v0.1.1
Entry represents a log entry. It includes a log message and the time it occurred at.
func (*Entry) MarshalJSON ¶ added in v0.1.1
MarshalJSON implements the json.Marshaler interface.
func (*Entry) UnmarshalJSON ¶ added in v0.1.1
UnmarshalJSON implements the json.Unmarshaler interface.
type LabelValuesResponse ¶ added in v0.1.2
LabelValuesResponse represents the http json response to a query for label values
type Matrix ¶ added in v0.1.1
type Matrix []model.SampleStream
Matrix is a slice of SampleStreams
func (Matrix) Type ¶ added in v0.1.1
func (Matrix) Type() ResultType
Type implements the promql.Value interface
type QueryResponse ¶ added in v0.1.1
type QueryResponse struct {
Status string `json:"status"`
Data QueryResponseData `json:"data"`
}
QueryResponse represents the http json response to a logQL query
type QueryResponseData ¶ added in v0.1.1
type QueryResponseData struct {
ResultType ResultType `json:"resultType"`
Result ResultValue `json:"result"`
}
QueryResponseData represents the http json response to a label query
func (*QueryResponseData) UnmarshalJSON ¶ added in v0.1.1
func (q *QueryResponseData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
type ResultValue ¶ added in v0.1.1
type ResultValue interface {
Type() ResultType
}
ResultValue interface mimics the promql.Value interface
type Scalar ¶ added in v0.1.1
Scalar is a single timestamp/float with no labels
func (Scalar) MarshalJSON ¶ added in v0.1.1
func (Scalar) Type ¶ added in v0.1.1
func (Scalar) Type() ResultType
Type implements the promql.Value interface
func (*Scalar) UnmarshalJSON ¶ added in v0.1.1
type Stream ¶ added in v0.1.1
Stream represents a log stream. It includes a set of log entries and their labels.