From 2181f054157d3fbbb76bec8994497cc77eb6bbdc Mon Sep 17 00:00:00 2001 From: AnyListen Date: Tue, 2 Apr 2019 10:53:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=AE=8C=E6=88=90=20X-Pack=20Info=20API=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/rest-api/info.asciidoc | 34 ++++++++++++--------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/docs/reference/rest-api/info.asciidoc b/docs/reference/rest-api/info.asciidoc index 6d5967d0cdc7d..4360529b4d783 100644 --- a/docs/reference/rest-api/info.asciidoc +++ b/docs/reference/rest-api/info.asciidoc @@ -3,43 +3,39 @@ [[info-api]] == Info API -The info API provides general information about the installed {xpack} features. +Info API 提供了 {xpack} 已安装功能的概要信息。 [float] -=== Request +=== 请求 `GET /_xpack` [float] -=== Description +=== 说明 -The information provided by this API includes: +通过 Info API 可获取以下信息: -* Build Information - including the build number and timestamp. -* License Information - basic information about the currently installed license. -* Features Information - The features that are currently enabled and available - under the current license. +* 构建(Build)信息 - 包括内部版本号和时间戳。 +* 许可证(License)信息 - 当前安装的许可证的基本信息。 +* 功能(Features)信息 - 当前许可证下已启用和可用的功能。 [float] -=== Path Parameters +=== 路径参数 `categories`:: - (list) A comma-separated list of the information categories to include in the - response. For example, `build,license,features`. + (list) 要包含在响应中的的信息类别列表,以逗号分隔。例如:`build,license,features`。 `human`:: - (boolean) Defines whether additional human-readable information is included in - the response. In particular, it adds descriptions and a tag line. The - default value is `true`. + (boolean) 定义响应中是否包含附加的人类可读的信息,它将会添加描述项和标记行。该配置项的默认值为 `true`。 //=== Query Parameters //=== Authorization [float] -=== Examples +=== 示例 -The following example queries the info API: +下面是 Info API 的查询示例: [source,js] ------------------------------------------------------------ @@ -47,7 +43,7 @@ GET /_xpack ------------------------------------------------------------ // CONSOLE -Example response: +示例响应: [source,js] ------------------------------------------------------------ { @@ -114,7 +110,7 @@ Example response: // TESTRESPONSE[s/"build_hash" : "3d394c6afe2fc5"/"build_hash": "$body.features.ml.native_code_info.build_hash"/] // So much s/// but at least we test that the layout is close to matching.... -The following example only returns the build and features information: +下面的示例仅返回构建和功能信息: [source,js] ------------------------------------------------------------ @@ -122,7 +118,7 @@ GET /_xpack?categories=build,features ------------------------------------------------------------ // CONSOLE -The following example removes the descriptions from the response: +下面的示例移除了响应中的描述信息: [source,js] ------------------------------------------------------------ From 5ed0cfc843bcbf0f58438535c52cf0f9f834bf6d Mon Sep 17 00:00:00 2001 From: AnyListen Date: Tue, 2 Apr 2019 13:52:29 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=AE=8C=E6=88=90=20resp-api/defs.asciidoc?= =?UTF-8?q?=20=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/rest-api/defs.asciidoc | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/docs/reference/rest-api/defs.asciidoc b/docs/reference/rest-api/defs.asciidoc index 4eeedc5539992..e09b7d5c89913 100644 --- a/docs/reference/rest-api/defs.asciidoc +++ b/docs/reference/rest-api/defs.asciidoc @@ -1,20 +1,19 @@ [role="xpack"] [[api-definitions]] -== Definitions +== 定义 -These resource definitions are used in {ml} and {security} APIs and in {kib} -advanced {ml} job configuration options. +下面这些资源定义被用在 {ml} 和 {security} 相关的 API 以及 {kib} 高级 {ml} 作业配置选项中。 -* <> +* <> * <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> include::{es-repo-dir}/ml/apis/calendarresource.asciidoc[] include::{es-repo-dir}/ml/apis/datafeedresource.asciidoc[] From 4727ff5728d67196630a73470e1ce447e7b8acd1 Mon Sep 17 00:00:00 2001 From: AnyListen Date: Tue, 2 Apr 2019 13:55:03 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=B9=20Scheduled=20E?= =?UTF-8?q?vent=20=E7=9A=84=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/rest-api/defs.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/rest-api/defs.asciidoc b/docs/reference/rest-api/defs.asciidoc index e09b7d5c89913..834662df06d62 100644 --- a/docs/reference/rest-api/defs.asciidoc +++ b/docs/reference/rest-api/defs.asciidoc @@ -13,7 +13,7 @@ * <> * <> * <> -* <> +* <> include::{es-repo-dir}/ml/apis/calendarresource.asciidoc[] include::{es-repo-dir}/ml/apis/datafeedresource.asciidoc[] From 1abb89e8962fecb05b41d7fb49afd4a5967b9cc5 Mon Sep 17 00:00:00 2001 From: AnyListen Date: Tue, 2 Apr 2019 15:04:21 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=AE=8C=E6=88=90=20index.asciidoc=20?= =?UTF-8?q?=E7=9A=84=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/rest-api/index.asciidoc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/reference/rest-api/index.asciidoc b/docs/reference/rest-api/index.asciidoc index 5aef27e127500..ac458e44d4b70 100644 --- a/docs/reference/rest-api/index.asciidoc +++ b/docs/reference/rest-api/index.asciidoc @@ -4,18 +4,17 @@ [partintro] -- -{xpack} exposes REST APIs that are used by the UI components and can be called -directly to configure and access {xpack} features. +{xpack} 开放了用户界面组件使用的 REST API,可以直接调用这些 API 来配置和访问 {xpack} 的功能模块。 -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> +* <> -- From 56b90835f580383eac81dab5f0212848ed4ccecb Mon Sep 17 00:00:00 2001 From: AnyListen Date: Tue, 2 Apr 2019 15:04:42 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AF=B9=20Info=20API=20?= =?UTF-8?q?=E7=9A=84=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/rest-api/info.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/rest-api/info.asciidoc b/docs/reference/rest-api/info.asciidoc index 4360529b4d783..820093bd66b4b 100644 --- a/docs/reference/rest-api/info.asciidoc +++ b/docs/reference/rest-api/info.asciidoc @@ -1,9 +1,9 @@ [role="xpack"] [testenv="basic"] [[info-api]] -== Info API +== 信息 API -Info API 提供了 {xpack} 已安装功能的概要信息。 +信息 API 提供了 {xpack} 已安装功能的概要信息。 [float] === 请求 @@ -13,7 +13,7 @@ Info API 提供了 {xpack} 已安装功能的概要信息。 [float] === 说明 -通过 Info API 可获取以下信息: +通过信息 API 可获取以下信息: * 构建(Build)信息 - 包括内部版本号和时间戳。 * 许可证(License)信息 - 当前安装的许可证的基本信息。 @@ -35,7 +35,7 @@ Info API 提供了 {xpack} 已安装功能的概要信息。 [float] === 示例 -下面是 Info API 的查询示例: +下面是信息 API 的查询示例: [source,js] ------------------------------------------------------------