Skip to content
Merged
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
6 changes: 4 additions & 2 deletions models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions openapi/openapi.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29229,6 +29229,11 @@
],
"description": "Entry kind: `dashboard` opens a dashboard panel, `query` opens an Explore query. It decides whether `dashboard` or `query` must be supplied; supplying the other one is rejected."
},
"purpose": {
"type": "string",
"maxLength": 512,
"description": "One-sentence plain text explaining what this entry helps confirm during investigation. Literal text, not a template, and not part of the alert identity. At most 512 bytes; control characters are rejected."
},
"time_range": {
"$ref": "#/components/schemas/InvestigationTimeRange",
"description": "Window around the event time, required on every saved entry. A zero-length window is rejected; defaults belong to the editor."
Expand Down Expand Up @@ -29303,17 +29308,16 @@
"datasource_id": {
"type": "integer",
"format": "int64",
"minimum": 1,
"minimum": 0,
"maximum": 9007199254740991,
"description": "Data source the query runs against."
"description": "Data source the query runs against. Omit (or set 0) to run on the alert event's own datasource."
},
"query": {
"$ref": "#/components/schemas/DashboardQuery",
"description": "Query payload."
}
},
"required": [
"datasource_id",
"query"
]
},
Expand Down
10 changes: 7 additions & 3 deletions openapi/openapi.zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -29229,6 +29229,11 @@
],
"description": "入口类型:`dashboard` 打开仪表盘面板,`query` 打开 Explore 查询。它决定必须提供 `dashboard` 还是 `query`,提供另一个会被拒绝。"
},
"purpose": {
"type": "string",
"maxLength": 512,
"description": "一句话纯文本,说明该入口帮助确认什么排查意图。不是模板,也不参与告警身份计算。不超过 512 字节;不允许包含控制字符。"
},
"time_range": {
"$ref": "#/components/schemas/InvestigationTimeRange",
"description": "事件时间前后的取数窗口,每个已保存的入口都必填。长度为 0 的窗口会被拒绝;默认值由前端编辑器提供。"
Expand Down Expand Up @@ -29303,17 +29308,16 @@
"datasource_id": {
"type": "integer",
"format": "int64",
"minimum": 1,
"minimum": 0,
"maximum": 9007199254740991,
"description": "查询所用的数据源。"
"description": "查询所用的数据源。省略(或填 0)表示使用告警事件自身的数据源。"
},
"query": {
"$ref": "#/components/schemas/DashboardQuery",
"description": "查询内容。"
}
},
"required": [
"datasource_id",
"query"
]
},
Expand Down
Loading