2022-01-10 22:43:41 +08:00
|
|
|
// Licensed to the LF AI & Data foundation under one
|
|
|
|
// or more contributor license agreements. See the NOTICE file
|
|
|
|
// distributed with this work for additional information
|
|
|
|
// regarding copyright ownership. The ASF licenses this file
|
|
|
|
// to you under the Apache License, Version 2.0 (the
|
|
|
|
// "License"); you may not use this file except in compliance
|
2021-09-22 16:18:21 +08:00
|
|
|
// with the License. You may obtain a copy of the License at
|
|
|
|
//
|
2022-01-10 22:43:41 +08:00
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
2021-09-22 16:18:21 +08:00
|
|
|
//
|
2022-01-10 22:43:41 +08:00
|
|
|
// 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.
|
2021-09-22 16:18:21 +08:00
|
|
|
|
2023-04-06 19:14:32 +08:00
|
|
|
package http
|
2021-09-22 16:18:21 +08:00
|
|
|
|
2021-10-04 08:14:31 +08:00
|
|
|
// HealthzRouterPath is default path for check health state.
|
2021-09-24 11:29:54 +08:00
|
|
|
const HealthzRouterPath = "/healthz"
|
2022-10-14 14:19:24 +08:00
|
|
|
|
|
|
|
// LogLevelRouterPath is path for Get and Update log level at runtime.
|
|
|
|
const LogLevelRouterPath = "/log/level"
|
2023-07-25 17:23:01 +08:00
|
|
|
|
|
|
|
// EventLogRouterPath is path for eventlog control.
|
|
|
|
const EventLogRouterPath = "/eventlog"
|
2023-12-22 18:36:44 +08:00
|
|
|
|
|
|
|
// ExprPath is path for expression.
|
|
|
|
const ExprPath = "/expr"
|
2024-06-07 10:35:54 +08:00
|
|
|
|
2024-09-04 11:09:04 +08:00
|
|
|
// StaticPath is path for the static view.
|
|
|
|
const StaticPath = "/static/"
|
|
|
|
|
2024-06-07 10:35:54 +08:00
|
|
|
const RootPath = "/"
|
|
|
|
|
|
|
|
// Prometheus restful api path
|
|
|
|
const (
|
|
|
|
MetricsPath = "/metrics"
|
|
|
|
MetricsDefaultPath = "/metrics_default"
|
|
|
|
)
|
|
|
|
|
|
|
|
// for every component, register it's own api to trigger stop and check ready
|
|
|
|
const (
|
|
|
|
RouteTriggerStopPath = "/management/stop"
|
|
|
|
RouteCheckComponentReady = "/management/check/ready"
|
|
|
|
)
|
|
|
|
|
|
|
|
// proxy management restful api root path
|
|
|
|
const (
|
|
|
|
RouteGcPause = "/management/datacoord/garbage_collection/pause"
|
|
|
|
RouteGcResume = "/management/datacoord/garbage_collection/resume"
|
|
|
|
|
|
|
|
RouteSuspendQueryCoordBalance = "/management/querycoord/balance/suspend"
|
|
|
|
RouteResumeQueryCoordBalance = "/management/querycoord/balance/resume"
|
|
|
|
RouteTransferSegment = "/management/querycoord/transfer/segment"
|
|
|
|
RouteTransferChannel = "/management/querycoord/transfer/channel"
|
|
|
|
|
|
|
|
RouteSuspendQueryNode = "/management/querycoord/node/suspend"
|
|
|
|
RouteResumeQueryNode = "/management/querycoord/node/resume"
|
|
|
|
RouteListQueryNode = "/management/querycoord/node/list"
|
|
|
|
RouteGetQueryNodeDistribution = "/management/querycoord/distribution/get"
|
|
|
|
RouteCheckQueryNodeDistribution = "/management/querycoord/distribution/check"
|
|
|
|
)
|