This is an automated email from the ASF dual-hosted git repository.
wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new 462c4108a [YUNIKORN-1582] Log level in REST API doc (#277)
462c4108a is described below
commit 462c4108a1efd46e59d2ca30e626759366b466c8
Author: 0yukali0 <[email protected]>
AuthorDate: Wed Mar 15 13:17:49 2023 +1100
[YUNIKORN-1582] Log level in REST API doc (#277)
Add getting and setting the log level for the scheduler to the REST API
documentation.
Closes: #277
Signed-off-by: Wilfred Spiegelenburg <[email protected]>
---
docs/api/scheduler.md | 46 +++++++++++++++++++++
.../current/api/scheduler.md | 47 ++++++++++++++++++++++
2 files changed, 93 insertions(+)
diff --git a/docs/api/scheduler.md b/docs/api/scheduler.md
index c13a973c5..7d9148566 100644
--- a/docs/api/scheduler.md
+++ b/docs/api/scheduler.md
@@ -1325,3 +1325,49 @@ None
### Error response
**Code**: `400 Bad Request`
+
+## Get log level
+Retrieve the current log level.
+
+**URL** : `/ws/v1/loglevel`
+
+**Method** : `GET`
+
+**Auth required** : NO
+
+### Success response
+
+**Code**: `200 OK`
+
+**Content examples**
+
+```
+info
+```
+
+## Set log level
+Set the log level.
+
+**URL** : `/ws/v1/loglevel/{level}`
+
+**Method** : `PUT`
+
+**Auth required** : NO
+
+### Success response
+
+**Code**: `200 OK`
+
+### Error response
+
+**Code**: `400 Bad Request`
+
+**Content examples**
+
+```json
+{
+ "status_code":400,
+ "message":"failed to change log level, old level active",
+ "description":"failed to change log level, old level active"
+}
+```
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/scheduler.md
b/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/scheduler.md
index d464c57d0..385136b2d 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/scheduler.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/scheduler.md
@@ -1293,3 +1293,50 @@ checksum:
D75996C07D5167F41B33E27CCFAEF1D5C55BE3C00EE6526A7ABDF8435DB4078E
### 错误时的响应
**代码**: `400 Bad Request`
+
+## 获取日志级别
+接收当前Yunikorn的日志级别。
+
+**URL** : `/ws/v1/loglevel`
+
+**方法** : `GET`
+
+**需求权限** : 无
+
+### 成功时的响应
+
+**代码**: `200 OK`
+
+**示例**
+
+```
+info%
+```
+
+## 设置日志级别
+设置Yunikorn日志级别。
+
+**URL** : `/ws/v1/loglevel/{level}`
+
+**方法** : `PUT`
+
+**需求权限** : NO
+
+### 成功时的响应
+
+**代码**: `200 OK`
+
+### 错误时的响应
+
+**代码**: `400 Bad Request`
+
+**示例**
+
+```json
+{
+ "status_code":400,
+ "message":"failed to change log level, old level active",
+ "description":"failed to change log level, old level active"
+}
+```
+