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

GET /admin/tenants/{id}/webhooks/{hook_id}/stats

获取 Webhook 投递统计数据(成功率、平均延迟、失败原因分布)

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID
hook_id path string Yes Webhook ID

Responses

StatusDescriptionSchema
200投递统计dto.WebhookDeliveryStatsDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.WebhookDeliveryStatsDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.WebhookDeliveryStatsResponse No
message string No
timestamp string No

dto.WebhookDeliveryStatsResponse

FieldTypeRequiredExampleConstraintsDescription
avg_duration_ms number No 120.5
fail_count integer No 50
pending_count integer No 0
success_count integer No 950
success_rate number No 95
total_count integer No 1000

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No