This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 88538890b [doc] supplement custom plugin doc (#2309)
88538890b is described below
commit 88538890b40a466721299784d1f995577813ce40
Author: liutianyou <[email protected]>
AuthorDate: Wed Jul 24 23:28:09 2024 +0800
[doc] supplement custom plugin doc (#2309)
Co-authored-by: tomsun28 <[email protected]>
---
home/docs/help/plugin.md | 8 +++++---
.../zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/home/docs/help/plugin.md b/home/docs/help/plugin.md
index b8104a359..8aa95f595 100644
--- a/home/docs/help/plugin.md
+++ b/home/docs/help/plugin.md
@@ -18,8 +18,10 @@ Currently, `HertzBeat` only set up the trigger `alert`
method after alarm, if yo

2. In the `org.apache.hertzbeat.plugin.impl` directory, create a new interface
implementation class, such as
`org.apache.hertzbeat.plugin.impl.DemoPluginImpl`, and receive the `Alert`
class as a parameter, implement the `alert ` method, the logic is customized by
the user, here we simply print the object.

-3. Package the `hertzbeat-plugin` module.
+3. Add the fully qualified names of the interface implementation classes to
the `META-INF/services/org.apache.hertzbeat.plugin.Plugin` file, with each
implementation class name on a separate line.
+4. Package the `hertzbeat-plugin` module.
+

-4. Copy the packaged `jar` package to the `ext-lib` directory under the
installation directory (for `docker` installations, mount the `ext-lib`
directory first, then copy it there).
+5. Copy the packaged `jar` package to the `ext-lib` directory under the
installation directory (for `docker` installations, mount the `ext-lib`
directory first, then copy it there).

-5. Then restart `HertzBeat` to enable the customized post-alert handling
policy.
+6. Then restart `HertzBeat` to enable the customized post-alert handling
policy.
diff --git
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md
index e89f66988..2278530b4 100644
--- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md
+++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md
@@ -18,8 +18,10 @@ sidebar_label: 自定义插件

2. 在`org.apache.hertzbeat.plugin.impl`目录下,
新建一个接口实现类,如`org.apache.hertzbeat.plugin.impl.DemoPluginImpl`,在实现类中接收`Alert`类作为参数,实现`alert`方法,逻辑由用户自定义,这里我们简单打印一下对象。

-3. 打包`hertzbeat-plugin`模块。
+3. 在 `META-INF/services/org.apache.hertzbeat.plugin.Plugin`
文件中增加接口实现类的全限定名,每个实现类全限定名单独成行。
+4. 打包`hertzbeat-plugin`模块。
+

-4. 将打包后的`jar`包,拷贝到安装目录下的`ext-lib`目录下(若为`docker`安装则先将`ext-lib`目录挂载出来,再拷贝到该目录下)
+5. 将打包后的`jar`包,拷贝到安装目录下的`ext-lib`目录下(若为`docker`安装则先将`ext-lib`目录挂载出来,再拷贝到该目录下)

-5. 然后重启`HertzBeat`,即可实现自定义告警后处理策略。
+6. 然后重启`HertzBeat`,即可实现自定义告警后处理策略。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]