model

package
v0.1.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.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 LokiQuery

type LokiQuery struct {
	Query string
	Limit int
	Start int64
	End   int64
}

type LokiStats

type LokiStats struct {
}

type LokiStreamResponse

type LokiStreamResponse struct {
	ResultType string       `json:"resultType"`
	Result     StreamResult `json:"result"`
	Stats      LokiStats    `json:"stats"`
}

TODO: unclear yet if all this model is useful. Currently unused, as this is done on the frontend side

type ParsedStream

type ParsedStream struct {
	Labels map[string]string   `json:"labels"`
	Values []ParsedStreamValue `json:"values"`
}

type ParsedStreamValue

type ParsedStreamValue struct {
	Timestamp int64  `json:"timestamp"`
	Blob      string `json:"blob"` // TODO: expand to IPFIX fields
}

type StreamResult

type StreamResult struct {
	Stream map[string]string `json:"stream"`
	Values [][]string        `json:"values"`
}

func (*StreamResult) Parse

func (in *StreamResult) Parse() (*ParsedStream, error)

Jump to

Keyboard shortcuts

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