v1alpha1

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStep   = 10 * time.Minute
	DefaultFilter = ".*"
	DefaultOrder  = model.OrderDescending
	DefaultPage   = 1
	DefaultLimit  = 5

	ErrNoHit             = "'end' or 'time' must be after the namespace creation time."
	ErrParamConflict     = "'time' and the combination of 'start' and 'end' are mutually exclusive."
	ErrInvalidStartEnd   = "'start' must be before 'end'."
	ErrInvalidPage       = "Invalid parameter 'page'."
	ErrInvalidLimit      = "Invalid parameter 'limit'."
	ErrParameterNotfound = "Parmameter [%s] not found"
	ErrResourceNotfound  = "resource not found"
	ErrScopeNotAllowed   = "scope [%s] not allowed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Level            monitoring.Level
	Operation        string
	LabelSelector    string
	Time             string
	Start            string
	End              string
	Step             string
	Target           string
	Order            string
	Page             string
	Limit            string
	MetricFilter     string
	ResourceFilter   string
	NodeName         string
	WorkspaceName    string
	NamespaceName    string
	WorkloadKind     string
	WorkloadName     string
	PodName          string
	Applications     string
	Services         string
	StorageClassName string
	PVCFilter        string
	Cluster          string
}

func ParseQueryParameter

func ParseQueryParameter(req *restful.Request) *Query

Jump to

Keyboard shortcuts

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