blob: 228db1101bb1abf1afdac30e3f10fa9cd9b2a78a [file] [log] [blame] [view]
---
{
"title": "Show Proc Action",
"language": "en"
}
---
<!--
Licensed to the Apache Software Foundation (ASF) 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
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.
-->
# Show Proc Action
## Request
`GET /api/show_proc`
## Description
Used to obtain PROC information.
## Path parameters
None
## Query parameters
* path
Specify Proc Path
* forward
Whether to forward to Master FE for execution
## Request body
None
## Response
```
{
"msg": "success",
"code": 0,
"data": [
proc infos ...
],
"count": 0
}
```
## Examples
1. View `/statistic` information
```
GET /api/show_proc?path=/statistic
Response:
{
"msg": "success",
"code": 0,
"data": [
["10003", "default_cluster:db1", "2", "3", "3", "3", "3", "0", "0", "0"],
["10013", "default_cluster:doris_audit_db__", "1", "4", "4", "4", "4", "0", "0", "0"],
["Total", "2", "3", "7", "7", "7", "7", "0", "0", "0"]
],
"count": 0
}
```
2. Forward to Master for execution
```
GET /api/show_proc?path=/statistic&forward=true
Response:
{
"msg": "success",
"code": 0,
"data": [
["10003", "default_cluster:db1", "2", "3", "3", "3", "3", "0", "0", "0"],
["10013", "default_cluster:doris_audit_db__", "1", "4", "4", "4", "4", "0", "0", "0"],
["Total", "2", "3", "7", "7", "7", "7", "0", "0", "0"]
],
"count": 0
}
```