v1alpha2

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OperationStatistics = "statistics"
	OperationHistogram  = "histogram"
	OperationQuery      = "query"
	OperationExport     = "export"

	DefaultInterval = "15m"
	DefaultSize     = 10
	OrderAscending  = "asc"
	OrderDescending = "desc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Logs       *logging.Logs       `json:"query,omitempty" description:"query results"`
	Statistics *logging.Statistics `json:"statistics,omitempty" description:"statistics results"`
	Histogram  *logging.Histogram  `json:"histogram,omitempty" description:"histogram results"`
}

type Query

type Query struct {
	Operation       string
	NamespaceFilter string
	NamespaceSearch string
	WorkloadFilter  string
	WorkloadSearch  string
	PodFilter       string
	PodSearch       string
	ContainerFilter string
	ContainerSearch string
	LogSearch       string
	StartTime       time.Time
	EndTime         time.Time
	Interval        string
	Sort            string
	From            int64
	Size            int64
}

func ParseQueryParameter

func ParseQueryParameter(req *restful.Request) (*Query, error)

Jump to

Keyboard shortcuts

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