v1alpha1

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

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

type Query

type Query struct {
	Operation                  string `json:"operation,omitempty"`
	WorkspaceFilter            string `json:"workspace_filter,omitempty"`
	WorkspaceSearch            string `json:"workspace_search,omitempty"`
	ObjectRefNamespaceFilter   string `json:"objectref_namespace_filter,omitempty"`
	ObjectRefNamespaceSearch   string `json:"objectref_namespace_search,omitempty"`
	ObjectRefNameFilter        string `json:"objectref_name_filter,omitempty"`
	ObjectRefNameSearch        string `json:"objectref_name_search,omitempty"`
	LevelFilter                string `json:"level_filter,omitempty"`
	VerbFilter                 string `json:"verb_filter,omitempty"`
	UserFilter                 string `json:"user_filter,omitempty"`
	UserSearch                 string `json:"user_search,omitempty"`
	GroupSearch                string `json:"group_search,omitempty"`
	SourceIpSearch             string `json:"source_ip_search,omitempty"`
	ObjectRefResourceFilter    string `json:"objectref_resource_filter,omitempty"`
	ObjectRefSubresourceFilter string `json:"objectref_subresource_filter,omitempty"`
	ResponseCodeFilter         string `json:"response_code_filter,omitempty"`
	ResponseStatusFilter       string `json:"response_status_filter,omitempty"`

	StartTime *time.Time `json:"start_time,omitempty"`
	EndTime   *time.Time `json:"end_time,omitempty"`

	Interval string `json:"interval,omitempty"`
	Sort     string `json:"sort,omitempty"`
	From     int64  `json:"from,omitempty"`
	Size     int64  `json:"size,omitempty"`
}

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