2022-01-10 14:43:41 +00: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 08:18:21 +00:00
|
|
|
// with the License. You may obtain a copy of the License at
|
|
|
|
//
|
2022-01-10 14:43:41 +00:00
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
2021-09-22 08:18:21 +00:00
|
|
|
//
|
2022-01-10 14:43:41 +00: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 08:18:21 +00:00
|
|
|
|
2023-04-06 11:14:32 +00:00
|
|
|
package http
|
2021-09-22 08:18:21 +00:00
|
|
|
|
2021-10-04 00:14:31 +00:00
|
|
|
// HealthzRouterPath is default path for check health state.
|
2021-09-24 03:29:54 +00:00
|
|
|
const HealthzRouterPath = "/healthz"
|
2022-10-14 06:19:24 +00:00
|
|
|
|
|
|
|
// LogLevelRouterPath is path for Get and Update log level at runtime.
|
|
|
|
const LogLevelRouterPath = "/log/level"
|
2023-07-25 09:23:01 +00:00
|
|
|
|
|
|
|
// EventLogRouterPath is path for eventlog control.
|
|
|
|
const EventLogRouterPath = "/eventlog"
|
2023-12-22 10:36:44 +00:00
|
|
|
|
|
|
|
// ExprPath is path for expression.
|
|
|
|
const ExprPath = "/expr"
|
2024-06-07 02:35:54 +00:00
|
|
|
|
2024-09-04 03:09:04 +00:00
|
|
|
// StaticPath is path for the static view.
|
|
|
|
const StaticPath = "/static/"
|
|
|
|
|
2024-06-07 02:35:54 +00: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"
|
2024-10-23 03:29:28 +00:00
|
|
|
RouteWebUI = "/webui/"
|
2024-06-07 02:35:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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"
|
|
|
|
)
|
2024-10-23 03:29:28 +00:00
|
|
|
|
|
|
|
// for WebUI restful api root path
|
|
|
|
const (
|
2024-11-07 03:52:25 +00:00
|
|
|
// ClusterInfoPath is the path to get cluster information.
|
|
|
|
ClusterInfoPath = "/_cluster/info"
|
|
|
|
// ClusterConfigsPath is the path to get cluster configurations.
|
|
|
|
ClusterConfigsPath = "/_cluster/configs"
|
|
|
|
// ClusterClientsPath is the path to get connected clients.
|
|
|
|
ClusterClientsPath = "/_cluster/clients"
|
|
|
|
// ClusterDependenciesPath is the path to get cluster dependencies.
|
2024-10-23 03:29:28 +00:00
|
|
|
ClusterDependenciesPath = "/_cluster/dependencies"
|
2024-11-07 03:52:25 +00:00
|
|
|
// HookConfigsPath is the path to get hook configurations.
|
|
|
|
HookConfigsPath = "/_hook/configs"
|
2024-11-12 09:44:29 +00:00
|
|
|
// SlowQueryPath is the path to get slow queries metrics
|
|
|
|
SlowQueryPath = "/_cluster/slow_query"
|
2024-10-28 02:13:29 +00:00
|
|
|
|
2024-11-07 03:52:25 +00:00
|
|
|
// QCDistPath is the path to get QueryCoord distribution.
|
|
|
|
QCDistPath = "/_qc/dist"
|
|
|
|
// QCTargetPath is the path to get QueryCoord target.
|
|
|
|
QCTargetPath = "/_qc/target"
|
|
|
|
// QCReplicaPath is the path to get QueryCoord replica.
|
|
|
|
QCReplicaPath = "/_qc/replica"
|
|
|
|
// QCResourceGroupPath is the path to get QueryCoord resource group.
|
|
|
|
QCResourceGroupPath = "/_qc/resource_group"
|
|
|
|
// QCAllTasksPath is the path to get all tasks in QueryCoord.
|
|
|
|
QCAllTasksPath = "/_qc/tasks"
|
2024-10-28 02:13:29 +00:00
|
|
|
|
2024-11-07 03:52:25 +00:00
|
|
|
// QNSegmentsPath is the path to get segments in QueryNode.
|
|
|
|
QNSegmentsPath = "/_qn/segments"
|
|
|
|
// QNChannelsPath is the path to get channels in QueryNode.
|
|
|
|
QNChannelsPath = "/_qn/channels"
|
|
|
|
|
|
|
|
// DCDistPath is the path to get all segments and channels distribution in DataCoord.
|
|
|
|
DCDistPath = "/_dc/dist"
|
|
|
|
// DCImportTasksPath is the path to get import tasks in DataCoord.
|
|
|
|
DCImportTasksPath = "/_dc/tasks/import"
|
|
|
|
// DCCompactionTasksPath is the path to get compaction tasks in DataCoord.
|
|
|
|
DCCompactionTasksPath = "/_dc/tasks/compaction"
|
|
|
|
// DCBuildIndexTasksPath is the path to get build index tasks in DataCoord.
|
|
|
|
DCBuildIndexTasksPath = "/_dc/tasks/build_index"
|
|
|
|
|
|
|
|
// DNSyncTasksPath is the path to get sync tasks in DataNode.
|
|
|
|
DNSyncTasksPath = "/_dn/tasks/sync"
|
|
|
|
// DNSegmentsPath is the path to get segments in DataNode.
|
|
|
|
DNSegmentsPath = "/_dn/segments"
|
|
|
|
// DNChannelsPath is the path to get channels in DataNode.
|
|
|
|
DNChannelsPath = "/_dn/channels"
|
2024-10-23 03:29:28 +00:00
|
|
|
)
|