PUT /billing/alerts/{id}
修改已有用量告警规则的阈值、通知渠道或状态。支持部分更新,未传递的字段保持原值。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
告警ID |
Request Body
Schema: dto.UpdateUsageAlertRequest
| Field | Type | Required | Example | Constraints | Description |
name |
string |
No |
|
|
|
notification_channels |
string |
No |
|
|
|
resource_type |
string |
No |
|
|
|
status |
string |
No |
|
|
|
threshold_percent |
integer |
No |
|
|
|
Referenced Schemas
dto.UsageAlertDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.UsageAlertResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.UsageAlertResponse
| Field | Type | Required | Example | Constraints | Description |
app_id |
string |
No |
app_001 |
|
|
created_at |
string |
No |
2026-05-01T00:00:00Z |
|
|
id |
string |
No |
ua_001 |
|
|
last_triggered_at |
string |
No |
2026-05-10T08:00:00Z |
|
|
name |
string |
No |
API调用量告警 |
|
|
notification_channels |
string |
No |
email,in_app |
|
|
resource_type |
string |
No |
api_calls |
|
|
status |
string |
No |
active |
|
|
tenant_id |
string |
No |
tnt_xyz789 |
|
|
threshold_percent |
integer |
No |
80 |
|
|
updated_at |
string |
No |
2026-05-05T10:00:00Z |
|
|