A AuthMS API Wiki API Reference iam.tianv.com →

GET /billing/alerts

分页查询已配置的用量告警规则列表,支持按应用ID、资源类型和状态过滤

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
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

StatusDescriptionSchema
200用量告警列表查询成功dto.UsageAlertListResponse
400请求参数错误object
401未授权object
500服务器内部错误object

Referenced Schemas

dto.UsageAlertListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.UsageAlertResponse

No 统一使用 items
message string No
pagination object No 分页信息(嵌套对象)
timestamp string No
total integer No 总条数(平铺,便于直接读取)

dto.UsageAlertResponse

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
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