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: 6 additions & 0 deletions automations_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ type AutomationRuleUpdateRequest struct {
OncallIncidentChannelIDs *[]int64 `json:"oncall_incident_channel_ids,omitempty" toon:"oncall_incident_channel_ids,omitempty"`
// Incident severities that can trigger this rule.
OncallIncidentSeverities *[]string `json:"oncall_incident_severities,omitempty" toon:"oncall_incident_severities,omitempty"`
// Whether the AI SRE war room trigger is enabled. Sending true creates it when missing and channel/severity filters are provided.
WarRoomTriggerEnabled *bool `json:"war_room_trigger_enabled,omitempty" toon:"war_room_trigger_enabled,omitempty"`
// Channel (collaboration space) IDs whose new AI SRE war rooms can trigger this rule.
WarRoomChannelIDs *[]int64 `json:"war_room_channel_ids,omitempty" toon:"war_room_channel_ids,omitempty"`
// War room severities that can trigger this rule.
WarRoomSeverities *[]string `json:"war_room_severities,omitempty" toon:"war_room_severities,omitempty"`
}
14 changes: 14 additions & 0 deletions models_gen.go

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

54 changes: 54 additions & 0 deletions openapi/openapi.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3311,6 +3311,31 @@
"timezone": {
"description": "IANA timezone `cron_expr` is evaluated in, e.g. `Asia/Shanghai`. Must be a timezone name loadable by the server; an invalid value is rejected. Defaults to the caller's member timezone, then the account timezone, then the server default (Asia/Shanghai) when omitted.",
"type": "string"
},
"war_room_trigger_enabled": {
"type": "boolean",
"description": "Whether the war room trigger is enabled. It fires when a war room (IM group chat) is created for an incident in one of `war_room_channel_ids` with a severity in `war_room_severities`; the agent then runs inside that group chat. When the trigger is created (this is `true`, or `war_room_channel_ids` is sent), both lists must be non-empty."
},
"war_room_channel_ids": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"description": "Channel IDs whose war rooms start a run. Each ID must be positive."
},
"war_room_severities": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Critical",
"Warning",
"Info"
]
},
"description": "Incident severities that start a run when their war room is created: `Critical` (most severe), `Warning`, or `Info` (least severe) — the On-call incident severity levels."
}
},
"required": [
Expand Down Expand Up @@ -3526,6 +3551,35 @@
"description": "Last update time, Unix milliseconds.",
"format": "int64",
"type": "integer"
},
"war_room_trigger_id": {
"type": "string",
"description": "War room trigger ID. Omitted when the rule has no war room trigger."
},
"war_room_trigger_enabled": {
"type": "boolean",
"description": "Whether the war room trigger is enabled."
},
"war_room_channel_ids": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"description": "Channel IDs whose war rooms start a run. Omitted when the rule has no war room trigger."
},
"war_room_severities": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Critical",
"Warning",
"Info"
]
},
"description": "Incident severities whose war rooms start a run: `Critical` (most severe), `Warning`, or `Info` (least severe) — the On-call incident severity levels. Omitted when the rule has no war room trigger."
}
},
"required": [
Expand Down
54 changes: 54 additions & 0 deletions openapi/openapi.zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -3311,6 +3311,31 @@
"timezone": {
"description": "`cron_expr` 计算所用的 IANA 时区,例如 `Asia/Shanghai`。必须是服务端可加载的合法时区名,非法值会被拒绝。省略时依次回退到调用者的成员时区、账户时区,最后是服务端默认时区(Asia/Shanghai)。",
"type": "string"
},
"war_room_trigger_enabled": {
"type": "boolean",
"description": "是否启用作战室触发器。当 `war_room_channel_ids` 中某个协作空间的故障(严重程度在 `war_room_severities` 中)创建作战室(IM 群聊)时触发,Agent 会直接在该群聊中运行。创建该触发器时(本字段为 `true`,或传了 `war_room_channel_ids`),两个列表都必须非空。"
},
"war_room_channel_ids": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"description": "创建作战室时会发起运行的协作空间 ID。每个 ID 必须为正数。"
},
"war_room_severities": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Critical",
"Warning",
"Info"
]
},
"description": "故障创建作战室时会发起运行的严重程度:`Critical`(最严重)、`Warning` 或 `Info`(最轻)——即 On-call 故障的严重程度。"
}
},
"required": [
Expand Down Expand Up @@ -3526,6 +3551,35 @@
"description": "更新时间,Unix 毫秒。",
"format": "int64",
"type": "integer"
},
"war_room_trigger_id": {
"type": "string",
"description": "作战室触发器 ID。规则没有作战室触发器时省略。"
},
"war_room_trigger_enabled": {
"type": "boolean",
"description": "作战室触发器是否启用。"
},
"war_room_channel_ids": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"description": "创建作战室时会发起运行的协作空间 ID。规则没有作战室触发器时省略。"
},
"war_room_severities": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Critical",
"Warning",
"Info"
]
},
"description": "创建作战室时会发起运行的严重程度:`Critical`(最严重)、`Warning` 或 `Info`(最轻)——即 On-call 故障的严重程度。规则没有作战室触发器时省略。"
}
},
"required": [
Expand Down
Loading