/billing/alerts
分页查询已配置的用量告警规则列表,支持按应用ID、资源类型和状态过滤
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
app_id |
query |
string |
No | 应用ID(可选) | |||
resource_type |
query |
string |
No | 资源类型(可选) | |||
status |
query |
string |
No | 告警状态(active/silenced/triggered) | |||
page |
query |
integer |
No | 1 |
页码 | ||
page_size |
query |
integer |
No | 20 |
每页条数 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 用量告警列表查询成功 | dto.UsageAlertListResponse |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |
Referenced Schemas
dto.UsageAlertListResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
items |
array of |
No | 统一使用 items | ||
message |
string |
No | |||
pagination |
object |
No | 分页信息(嵌套对象) | ||
timestamp |
string |
No | |||
total |
integer |
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 |
gitee_com_linmes_authms_base_dto.PageInfo
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
has_next |
boolean |
No | HasNext indicates whether there is a next page | ||
has_prev |
boolean |
No | HasPrev indicates whether there is a previous page | ||
page |
integer |
No | Page is the current page number (1-based) | ||
page_size |
integer |
No | PageSize is the number of items per page | ||
total |
integer |
No | Total is the total number of items across all pages | ||
total_pages |
integer |
No | TotalPages is the total number of pages |