This is an automated email from the ASF dual-hosted git repository.
jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 88db135e5fe Add `CREATE DB_DISCOVERY HEARTBEAT` docs. (#20783)
88db135e5fe is described below
commit 88db135e5fef61cad808a1e8ce859d337ab2807d
Author: Jieker <[email protected]>
AuthorDate: Tue Sep 6 10:06:57 2022 +0800
Add `CREATE DB_DISCOVERY HEARTBEAT` docs. (#20783)
---
.../create-db-discovery-heartbeat.cn.md | 43 ++++++++++++++++++++++
.../create-db-discovery-heartbeat.en.md | 43 ++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.cn.md
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.cn.md
new file mode 100644
index 00000000000..4a3fa6a5f34
--- /dev/null
+++
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.cn.md
@@ -0,0 +1,43 @@
++++
+title = "CREATE DB_DISCOVERY HEARTBEAT"
+weight = 4
++++
+
+## 描述
+
+`CREATE DB_DISCOVERY HEARTBEAT` 语法用于创建数据库发现心跳包规则
+
+### 语法定义
+
+```sql
+CreateDatabaseDiscoveryHeartbeat ::=
+ 'CREATE' 'DB_DISCOVERY' 'HEARTBEAT' databaseDiscoveryHeartbaetDefinition (
',' databaseDiscoveryHeartbaetDefinition )*
+
+databaseDiscoveryHeartbaetDefinition ::=
+ discoveryHeartbeatName '(' 'PROPERTIES' '(' 'key' '=' 'value' ( ',' 'key'
'=' 'value' )* ')' ')'
+
+discoveryHeartbeatName ::=
+ identifier
+```
+
+### 补充说明
+
+- 带有 `-` 的命名在改动时需要使用 `" "`。
+
+### 示例
+
+#### 创建 `HEARTBEAT`
+
+```sql
+CREATE DB_DISCOVERY HEARTBEAT db_discovery_group_1_heartbeat(
+ PROPERTIES('keep-alive-cron'='0/5 * * * * ?')
+);
+```
+
+### 保留字
+
+`CREATE`、`DB_DISCOVERY`、`HEARTBEAT`
+
+### 相关链接
+
+- [保留字](/cn/reference/distsql/syntax/reserved-word/)
\ No newline at end of file
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.en.md
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.en.md
new file mode 100644
index 00000000000..e0008af80e7
--- /dev/null
+++
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/db-discovery/create-db-discovery-heartbeat.en.md
@@ -0,0 +1,43 @@
++++
+title = "CREATE DB_DISCOVERY HEARTBEAT"
+weight = 4
++++
+
+## Description
+
+The `CREATE DB_DISCOVERY HEARTBEAT` syntax is used to create a database
discovery heartbeat rule.
+
+### Syntax
+
+```sql
+CreateDatabaseDiscoveryHeartbeat ::=
+ 'CREATE' 'DB_DISCOVERY' 'HEARTBEAT' databaseDiscoveryHeartbaetDefinition (
',' databaseDiscoveryHeartbaetDefinition )*
+
+databaseDiscoveryHeartbaetDefinition ::=
+ discoveryHeartbeatName '(' 'PROPERTIES' '(' 'key' '=' 'value' ( ',' 'key'
'=' 'value' )* ')' ')'
+
+discoveryHeartbeatName ::=
+ identifier
+```
+
+### Supplement
+
+- Names with `-` need to use `" "` when changing.
+
+### Example
+
+#### Create `HEARTBEAT`
+
+```sql
+CREATE DB_DISCOVERY HEARTBEAT db_discovery_group_1_heartbeat(
+ PROPERTIES('keep-alive-cron'='0/5 * * * * ?')
+);
+```
+
+### Reserved word
+
+`CREATE`, `DB_DISCOVERY`, `HEARTBEAT`
+
+### Related links
+
+- [Reserved word](/en/reference/distsql/syntax/reserved-word/)