Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions api-reference/openapi.en.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -15310,7 +15310,7 @@
"post": {
"operationId": "monit-store-ruleset-list",
"summary": "List rulesets",
"description": "Return all rulesets for a given datasource type that are accessible to the current user.",
"description": "Return all rulesets for a given store type that are accessible to the current user.",
"tags": [
"Monitors/Rule sets"
],
Expand DownExpand Up@@ -15346,7 +15346,7 @@
"data": [
{
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU usage alerts",
"open_flag": 2,
"creator_account_id": 10023,
Expand DownExpand Up@@ -15381,7 +15381,7 @@
"$ref": "#/components/schemas/StoreRulesetListRequest"
},
"example": {
"type_ident": "prometheus"
"type_ident": "redis"
}
}
}
Expand DownExpand Up@@ -15427,7 +15427,7 @@
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU usage alerts",
"open_flag": 2,
"payload": "[{\"prom_ql\":\"...\"}]",
Expand DownExpand Up@@ -15508,7 +15508,7 @@
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU usage alerts",
"open_flag": 1,
"created_at": 1712000000,
Expand DownExpand Up@@ -15539,7 +15539,7 @@
"$ref": "#/components/schemas/StoreRulesetUpsertRequest"
},
"example": {
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU usage alerts",
"open_flag": 1,
"payload": "[{\"prom_ql\":\"rate(cpu_usage[5m]) > 0.8\"}]"
Expand DownExpand Up@@ -44872,7 +44872,7 @@
"properties": {
"type_ident": {
"type": "string",
"description": "Datasource type identifier this ruleset applies to, e.g. `prometheus`."
"description": "Store type identifier this ruleset applies to, e.g. `redis`."
},
"note": {
"type": "string",
Expand DownExpand Up@@ -44915,7 +44915,7 @@
},
"type_ident": {
"type": "string",
"description": "Datasource type identifier this ruleset applies to."
"description": "Store type identifier this ruleset applies to."
},
"note": {
"type": "string",
Expand DownExpand Up@@ -44965,11 +44965,11 @@
"required": [
"type_ident"
],
"description": "Filter rulesets by datasource type.",
"description": "Filter rulesets by store type.",
"properties": {
"type_ident": {
"type": "string",
"description": "Datasource type identifier to filter by, e.g. `prometheus`."
"description": "Store type identifier to filter by, e.g. `redis`."
}
}
},
Expand Down
20 changes: 10 additions & 10 deletions api-reference/openapi.zh.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -15302,7 +15302,7 @@
"post": {
"operationId": "monit-store-ruleset-list",
"summary": "查询规则集列表",
"description": "返回指定数据源类型下当前用户有权访问的所有规则集。",
"description": "返回指定存储类型下当前用户有权访问的所有规则集。",
"tags": [
"Monitors/规则集"
],
Expand DownExpand Up@@ -15338,7 +15338,7 @@
"data": [
{
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU 用量告警",
"open_flag": 2,
"creator_account_id": 10023,
Expand DownExpand Up@@ -15373,7 +15373,7 @@
"$ref": "#/components/schemas/StoreRulesetListRequest"
},
"example": {
"type_ident": "prometheus"
"type_ident": "redis"
}
}
}
Expand DownExpand Up@@ -15419,7 +15419,7 @@
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU 用量告警",
"open_flag": 2,
"payload": "[{\"prom_ql\":\"...\"}]",
Expand DownExpand Up@@ -15500,7 +15500,7 @@
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"id": 1,
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU 用量告警",
"open_flag": 1,
"created_at": 1712000000,
Expand DownExpand Up@@ -15531,7 +15531,7 @@
"$ref": "#/components/schemas/StoreRulesetUpsertRequest"
},
"example": {
"type_ident": "prometheus",
"type_ident": "redis",
"note": "CPU 用量告警",
"open_flag": 1,
"payload": "[{\"prom_ql\":\"rate(cpu_usage[5m]) > 0.8\"}]"
Expand DownExpand Up@@ -44863,7 +44863,7 @@
"properties": {
"type_ident": {
"type": "string",
"description": "该规则集适用的数据源类型标识符,如 `prometheus`。"
"description": "该规则集适用的存储类型标识符,如 `redis`。"
},
"note": {
"type": "string",
Expand DownExpand Up@@ -44906,7 +44906,7 @@
},
"type_ident": {
"type": "string",
"description": "该规则集适用的数据源类型标识符。"
"description": "该规则集适用的存储类型标识符。"
},
"note": {
"type": "string",
Expand DownExpand Up@@ -44956,11 +44956,11 @@
"required": [
"type_ident"
],
"description": "按数据源类型过滤规则集。",
"description": "按存储类型过滤规则集。",
"properties": {
"type_ident": {
"type": "string",
"description": "数据源类型标识符,如 `prometheus`。"
"description": "存储类型标识符,如 `redis`。"
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions en/monitors/rule-repository/rule-repository.mdx
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
---
title: "Rule repository"
description: "Browse and manage alert rule templates, with support for data source type classification, sharing, and import"
description: "Browse and manage alert rule templates, with support for store type classification, sharing, and import"
keywords: ["rule repository", "rule templates", "alert rules", "import", "sharing"]
---

The rule repository provides a template management mechanism for alert rules. You can save commonly used alert rules as templates for team reuse and quick import into the alert rules list.

**Menu Entry**: Rule Repository

## Browse by data source type
## Browse by store type

The rule repository homepage displays all available data source types as cards. Click a data source type (e.g., Prometheus, MySQL) to view all rule templates under that type.
The rule repository homepage displays all available store types as cards. Click a store type (e.g., Redis, MySQL) to view all rule templates under that type.

You can filter data source types by name using the search box.
You can filter store types by name using the search box.

## Rule template list

After clicking a data source type, a side drawer displays the rule templates for that type with the following information:
After clicking a store type, a side drawer displays the rule templates for that type with the following information:

| Column | Description |
|--------|-------------|
Expand Down
10 changes: 5 additions & 5 deletions zh/monitors/rule-repository/rule-repository.mdx
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
---
title: "规则库"
description: "浏览和管理告警规则模板,支持按数据源类型分类、共享和导入"
description: "浏览和管理告警规则模板,支持按存储类型分类、共享和导入"
keywords: ["规则库", "规则模板", "告警规则", "导入", "共享"]
---

规则库提供了一套告警规则模板管理机制,你可以将常用的告警规则保存为模板,方便团队复用和快速导入到告警规则列表中。

**菜单入口**:规则库

## 按数据源类型浏览
## 按存储类型浏览

规则库首页以卡片形式展示所有可用的数据源类型。点击某个数据源类型(如 Prometheus、MySQL 等)即可查看该类型下的所有规则模板。
规则库首页以卡片形式展示所有可用的存储类型。点击某个存储类型(如 Redis、MySQL 等)即可查看该类型下的所有规则模板。

你可以通过搜索框按名称过滤数据源类型
你可以通过搜索框按名称过滤存储类型

## 规则模板列表

点击数据源类型后,侧边抽屉展示该类型下的规则模板列表,包含以下信息:
点击存储类型后,侧边抽屉展示该类型下的规则模板列表,包含以下信息:

| 列信息 | 说明 |
|--------|------|
Expand Down
Loading