diff --git a/models_gen.go b/models_gen.go index eba04fb..f5d0cac 100644 --- a/models_gen.go +++ b/models_gen.go @@ -805,6 +805,7 @@ type AlertRule struct { DebugLogEnabled bool `json:"debug_log_enabled,omitempty" toon:"debug_log_enabled,omitempty"` DelaySeconds int64 `json:"delay_seconds,omitempty" toon:"delay_seconds,omitempty"` Description string `json:"description,omitempty" toon:"description,omitempty"` + // Format for the description. Defaults to `text` when omitted or empty. DescriptionType string `json:"description_type,omitempty" toon:"description_type,omitempty"` // Specific data source IDs. DsIDs []uint64 `json:"ds_ids,omitempty" toon:"ds_ids,omitempty"` @@ -813,7 +814,7 @@ type AlertRule struct { // Data source type. DsType string `json:"ds_type,omitempty" toon:"ds_type,omitempty"` Enabled bool `json:"enabled,omitempty" toon:"enabled,omitempty"` - // Time windows when the rule is active. + // Time windows when the rule is active. Defaults to all days from 00:00 to 23:59 when omitted or empty. EnabledTimes []AlertRuleEnabledTimesItem `json:"enabled_times,omitempty" toon:"enabled_times,omitempty"` // Folder the rule belongs to. FolderID uint64 `json:"folder_id,omitempty" toon:"folder_id,omitempty"` @@ -924,6 +925,7 @@ type AlertRuleInfoResponse struct { DebugLogEnabled bool `json:"debug_log_enabled" toon:"debug_log_enabled"` DelaySeconds int64 `json:"delay_seconds" toon:"delay_seconds"` Description string `json:"description" toon:"description"` + // Format for the description. Defaults to `text` when omitted or empty. DescriptionType string `json:"description_type" toon:"description_type"` // Specific data source IDs. DsIDs []uint64 `json:"ds_ids" toon:"ds_ids"` @@ -932,7 +934,7 @@ type AlertRuleInfoResponse struct { // Data source type. DsType string `json:"ds_type" toon:"ds_type"` Enabled bool `json:"enabled" toon:"enabled"` - // Time windows when the rule is active. + // Time windows when the rule is active. Defaults to all days from 00:00 to 23:59 when omitted or empty. EnabledTimes []AlertRuleInfoResponseEnabledTimesItem `json:"enabled_times" toon:"enabled_times"` // Folder the rule belongs to. FolderID uint64 `json:"folder_id" toon:"folder_id"` @@ -7516,6 +7518,8 @@ type TemplateCreateRequest struct { Feishu string `json:"feishu,omitempty" toon:"feishu,omitempty"` // Feishu app message template source. FeishuApp string `json:"feishu_app,omitempty" toon:"feishu_app,omitempty"` + // Render alert labels as a table in Feishu app cards. + FeishuAppCardTableEnabled bool `json:"feishu_app_card_table_enabled,omitempty" toon:"feishu_app_card_table_enabled,omitempty"` // Slack robot message template source. Slack string `json:"slack,omitempty" toon:"slack,omitempty"` // Slack app message template source. @@ -7576,6 +7580,8 @@ type TemplateItem struct { Feishu string `json:"feishu" toon:"feishu"` // Feishu app message template source. FeishuApp string `json:"feishu_app" toon:"feishu_app"` + // Whether alert labels use table rendering in Feishu app cards. + FeishuAppCardTableEnabled bool `json:"feishu_app_card_table_enabled" toon:"feishu_app_card_table_enabled"` // Slack robot message template source. Slack string `json:"slack" toon:"slack"` // Slack app message template source. @@ -7648,6 +7654,8 @@ type TemplateUpdateRequest struct { Feishu string `json:"feishu,omitempty" toon:"feishu,omitempty"` // Feishu app message template source. FeishuApp string `json:"feishu_app,omitempty" toon:"feishu_app,omitempty"` + // When set, enable or disable table rendering for alert labels in Feishu app cards. Omit to keep the existing setting. + FeishuAppCardTableEnabled *bool `json:"feishu_app_card_table_enabled,omitempty" toon:"feishu_app_card_table_enabled,omitempty"` // Slack robot message template source. Slack string `json:"slack,omitempty" toon:"slack,omitempty"` // Slack app message template source. diff --git a/openapi/openapi.en.json b/openapi/openapi.en.json index 7fd5a80..20663d3 100644 --- a/openapi/openapi.en.json +++ b/openapi/openapi.en.json @@ -11877,12 +11877,12 @@ "get": { "operationId": "statusPageChangeList", "summary": "List status page events", - "description": "List events (incidents and maintenances) for a status page.", + "description": "List status page events with only publicly visible affected components.", "tags": [ "On-call/Status pages" ], "x-mint": { - "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | None — any valid `app_key` can call this operation |", + "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | None — any valid `app_key` can call this operation |\n\n## Usage\n\n- Hidden affected components are omitted. Events remain in the result when none are visible, with an empty `affected_components` array.", "href": "/en/api-reference/on-call/status-pages/status-page-change-list", "metadata": { "sidebarTitle": "List status page events" @@ -34872,6 +34872,7 @@ "wecom", "feishu", "feishu_app", + "feishu_app_card_table_enabled", "dingtalk_app", "wecom_app", "slack_app", @@ -34938,6 +34939,10 @@ "type": "string", "description": "Feishu app message template source." }, + "feishu_app_card_table_enabled": { + "type": "boolean", + "description": "Whether alert labels use table rendering in Feishu app cards." + }, "dingtalk_app": { "type": "string", "description": "DingTalk app message template source." @@ -35156,6 +35161,11 @@ "type": "string", "description": "Feishu app message template source." }, + "feishu_app_card_table_enabled": { + "type": "boolean", + "default": false, + "description": "Render alert labels as a table in Feishu app cards." + }, "dingtalk_app": { "type": "string", "description": "DingTalk app message template source." @@ -35265,6 +35275,13 @@ "type": "string", "description": "Feishu app message template source." }, + "feishu_app_card_table_enabled": { + "type": [ + "boolean", + "null" + ], + "description": "When set, enable or disable table rendering for alert labels in Feishu app cards. Omit to keep the existing setting." + }, "dingtalk_app": { "type": "string", "description": "DingTalk app message template source." @@ -38369,7 +38386,22 @@ }, "enabled_times": { "type": "array", - "description": "Time windows when the rule is active.", + "description": "Time windows when the rule is active. Defaults to all days from 00:00 to 23:59 when omitted or empty.", + "default": [ + { + "days": [ + 1, + 2, + 3, + 4, + 5, + 6, + 0 + ], + "stime": "00:00", + "etime": "23:59" + } + ], "items": { "type": "object", "properties": { @@ -38402,7 +38434,9 @@ "enum": [ "text", "markdown" - ] + ], + "default": "text", + "description": "Format for the description. Defaults to `text` when omitted or empty." }, "description": { "type": "string" diff --git a/openapi/openapi.zh.json b/openapi/openapi.zh.json index 9c6d941..a0082ab 100644 --- a/openapi/openapi.zh.json +++ b/openapi/openapi.zh.json @@ -11869,12 +11869,12 @@ "get": { "operationId": "statusPageChangeList", "summary": "查询状态页事件列表", - "description": "查询状态页的事件列表(故障和维护)。", + "description": "查询状态页事件列表;响应仅包含对外可见的受影响组件。", "tags": [ "On-call/状态页" ], "x-mint": { - "content": "## 限制说明\n\n| 项目 | 说明 |\n| ---- | ---- |\n| 速率限制 | 每个账户 **1,000 次/分钟**;**50 次/秒** |\n| 权限要求 | 无 —— 持有有效的 `app_key` 即可调用 |", + "content": "## 限制说明\n\n| 项目 | 说明 |\n| ---- | ---- |\n| 速率限制 | 每个账户 **1,000 次/分钟**;**50 次/秒** |\n| 权限要求 | 无 —— 持有有效的 `app_key` 即可调用 |\n\n## 使用说明\n\n- 响应会过滤隐藏的受影响组件。若事件没有任何可见组件,事件仍会保留,但 `affected_components` 为空数组。", "href": "/zh/api-reference/on-call/status-pages/status-page-change-list", "metadata": { "sidebarTitle": "查询状态页事件列表" @@ -34863,6 +34863,7 @@ "wecom", "feishu", "feishu_app", + "feishu_app_card_table_enabled", "dingtalk_app", "wecom_app", "slack_app", @@ -34929,6 +34930,10 @@ "type": "string", "description": "飞书应用消息模板源。" }, + "feishu_app_card_table_enabled": { + "type": "boolean", + "description": "是否在飞书应用卡片中以表格渲染告警标签。" + }, "dingtalk_app": { "type": "string", "description": "钉钉应用消息模板源。" @@ -35147,6 +35152,11 @@ "type": "string", "description": "飞书应用消息模板源。" }, + "feishu_app_card_table_enabled": { + "type": "boolean", + "default": false, + "description": "是否在飞书应用卡片中以表格渲染告警标签,默认关闭。" + }, "dingtalk_app": { "type": "string", "description": "钉钉应用消息模板源。" @@ -35256,6 +35266,13 @@ "type": "string", "description": "飞书应用消息模板源。" }, + "feishu_app_card_table_enabled": { + "type": [ + "boolean", + "null" + ], + "description": "设置后开启或关闭飞书应用卡片中的告警标签表格渲染;省略时保持当前设置。" + }, "dingtalk_app": { "type": "string", "description": "钉钉应用消息模板源。" @@ -38360,7 +38377,22 @@ }, "enabled_times": { "type": "array", - "description": "规则生效的时间窗口。", + "description": "规则生效的时间窗口。省略或传空数组时,默认每天 00:00–23:59 生效。", + "default": [ + { + "days": [ + 1, + 2, + 3, + 4, + 5, + 6, + 0 + ], + "stime": "00:00", + "etime": "23:59" + } + ], "items": { "type": "object", "properties": { @@ -38393,7 +38425,9 @@ "enum": [ "text", "markdown" - ] + ], + "default": "text", + "description": "描述内容的格式。省略或为空时默认使用 `text`。" }, "description": { "type": "string" diff --git a/status_pages.go b/status_pages.go index 27cee68..6d9a6e3 100644 --- a/status_pages.go +++ b/status_pages.go @@ -74,7 +74,7 @@ func (s *StatusPagesService) ChangeInfo(ctx context.Context, req *StatusPagesCha // List status page events. // -// List events (incidents and maintenances) for a status page. +// List status page events with only publicly visible affected components. // // API: GET /status-page/change/list (statusPageChangeList). func (s *StatusPagesService) ChangeList(ctx context.Context, req *StatusPagesChangeListRequest) (*StatusPageChangeListResponse, *Response, error) {