Documentation ¶
Overview ¶
Copyright 2022 The KubeSphere Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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
Click to show internal directories.
Click to hide internal directories.