blackfox1983 commented on a change in pull request #4261: URL: https://github.com/apache/incubator-doris/pull/4261#discussion_r465686553
########## File path: docs/zh-CN/administrator-guide/http-actions/fe/profile-action.md ########## @@ -0,0 +1,80 @@ +--- +{ + "title": "Profile Action", + "language": "zh-CN" +} +--- + +<!-- +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. +--> + +# Profile Action + +## Request + +`GET /api/profile` + +## Description + +用于获取指定 query id 的 query profile + +## Path parameters + +无 + +## Query parameters + +* query_id + + 指定的 query id + +## Request body + +无 + +## Response + +``` +{ + "msg": "success", + "code": 0, + "data": { + "profile": "query profile ..." + }, + "count": 0 +} +``` + +## Examples + +1. 获取指定 query_id 的 query profile + + ``` + GET /api/profile?query_id=f732084bc8e74f39-8313581c9c3c0b58 + Review comment: 这个queryid如何获取呢? 或者说,可否这样: 1、用户知道的是哪个sql。以及查询的时间范围。这个容易理解也很容易拿到 2、基于这两个获取对应的profile、queryid? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org