Skip to content

Commit 98e2fdc

Browse files
authored
Merge pull request #190 from flashcatcloud/fix/monit-api-contract-sync
fix(api-reference): 修正 monit tool/diagnose 契约、示例与 a2a tag
2 parents fe65534 + d0b266f commit 98e2fdc

8 files changed

Lines changed: 4182 additions & 818 deletions

File tree

api-reference/monitors.openapi.en.json

Lines changed: 1037 additions & 196 deletions
Large diffs are not rendered by default.

api-reference/monitors.openapi.zh.json

Lines changed: 1038 additions & 197 deletions
Large diffs are not rendered by default.

api-reference/openapi.en.json

Lines changed: 1045 additions & 204 deletions
Large diffs are not rendered by default.

api-reference/openapi.zh.json

Lines changed: 1046 additions & 205 deletions
Large diffs are not rendered by default.

api-reference/safari.openapi.en.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"summary": "Create A2A agent",
4141
"description": "Register a new A2A remote agent from its agent-card URL.",
4242
"tags": [
43-
"en"
43+
"AI SRE/A2A agents"
4444
],
4545
"security": [
4646
{
@@ -127,7 +127,7 @@
127127
"summary": "Delete A2A agent",
128128
"description": "Soft-delete an A2A agent by ID.",
129129
"tags": [
130-
"en"
130+
"AI SRE/A2A agents"
131131
],
132132
"security": [
133133
{
@@ -206,7 +206,7 @@
206206
"summary": "Disable A2A agent",
207207
"description": "Disable an enabled A2A agent.",
208208
"tags": [
209-
"en"
209+
"AI SRE/A2A agents"
210210
],
211211
"security": [
212212
{
@@ -285,7 +285,7 @@
285285
"summary": "Enable A2A agent",
286286
"description": "Enable a disabled A2A agent.",
287287
"tags": [
288-
"en"
288+
"AI SRE/A2A agents"
289289
],
290290
"security": [
291291
{
@@ -364,7 +364,7 @@
364364
"summary": "Get A2A agent detail",
365365
"description": "Get one A2A agent by ID.",
366366
"tags": [
367-
"en"
367+
"AI SRE/A2A agents"
368368
],
369369
"security": [
370370
{
@@ -463,7 +463,7 @@
463463
"summary": "List A2A agents",
464464
"description": "List A2A agents visible to the caller across account and team scopes, with pagination.",
465465
"tags": [
466-
"en"
466+
"AI SRE/A2A agents"
467467
],
468468
"security": [
469469
{
@@ -569,7 +569,7 @@
569569
"summary": "Update A2A agent",
570570
"description": "Apply a partial update to an A2A agent. Omit a field to leave it unchanged.",
571571
"tags": [
572-
"en"
572+
"AI SRE/A2A agents"
573573
],
574574
"security": [
575575
{

api-reference/safari.openapi.zh.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"summary": "创建 A2A 智能体",
4141
"description": "通过智能体卡片 URL 注册新的 A2A 远程智能体。",
4242
"tags": [
43-
"zh"
43+
"AI SRE/A2A 智能体"
4444
],
4545
"security": [
4646
{
@@ -127,7 +127,7 @@
127127
"summary": "删除 A2A 智能体",
128128
"description": "按 ID 软删除 A2A 智能体。",
129129
"tags": [
130-
"zh"
130+
"AI SRE/A2A 智能体"
131131
],
132132
"security": [
133133
{
@@ -206,7 +206,7 @@
206206
"summary": "禁用 A2A 智能体",
207207
"description": "禁用已启用的 A2A 智能体。",
208208
"tags": [
209-
"zh"
209+
"AI SRE/A2A 智能体"
210210
],
211211
"security": [
212212
{
@@ -285,7 +285,7 @@
285285
"summary": "启用 A2A 智能体",
286286
"description": "启用已禁用的 A2A 智能体。",
287287
"tags": [
288-
"zh"
288+
"AI SRE/A2A 智能体"
289289
],
290290
"security": [
291291
{
@@ -364,7 +364,7 @@
364364
"summary": "查看 A2A 智能体详情",
365365
"description": "按 ID 查看单个 A2A 智能体。",
366366
"tags": [
367-
"zh"
367+
"AI SRE/A2A 智能体"
368368
],
369369
"security": [
370370
{
@@ -463,7 +463,7 @@
463463
"summary": "查询 A2A 智能体列表",
464464
"description": "分页查询调用者在账户与团队范围内可见的 A2A 智能体。",
465465
"tags": [
466-
"zh"
466+
"AI SRE/A2A 智能体"
467467
],
468468
"security": [
469469
{
@@ -569,7 +569,7 @@
569569
"summary": "更新 A2A 智能体",
570570
"description": "对 A2A 智能体执行部分更新;省略字段表示不变。",
571571
"tags": [
572-
"zh"
572+
"AI SRE/A2A 智能体"
573573
],
574574
"security": [
575575
{

en/developer/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Both subcommands require `--target-locator` (internal IP, hostname, or data-sour
323323

324324
```bash
325325
flashduty monit-agent invoke --target-locator '10.0.0.1' \
326-
--data '{"tools":[{"tool":"os.overview"},{"tool":"disk.usage"}]}'
326+
--data '{"tools":[{"tool":"os.overview"},{"tool":"os.top_processes","params":{"top_n":10}}]}'
327327
```
328328

329329
For SQL parameters containing quotes or commas, pass `--data -` and supply the body via a stdin heredoc to avoid shell-quoting issues:

zh/developer/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ flashduty monit-agent invoke --target-locator <host> --data '<json>' # 并发
323323

324324
```bash
325325
flashduty monit-agent invoke --target-locator '10.0.0.1' \
326-
--data '{"tools":[{"tool":"os.overview"},{"tool":"disk.usage"}]}'
326+
--data '{"tools":[{"tool":"os.overview"},{"tool":"os.top_processes","params":{"top_n":10}}]}'
327327
```
328328

329329
对于包含引号或逗号的 SQL 参数,推荐用 heredoc 通过 stdin 传入(`--data -`):

0 commit comments

Comments
 (0)