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

GET /communication/dashboard

获取当前租户的通信服务各渠道投递统计数据,包括总发送量、成功投递数、失败数、投递成功率,以及按渠道和状态的分布统计。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。

通信服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
days query integer No 统计天数范围(默认30天)

Responses

StatusDescriptionSchema
200查询成功,返回租户通信投递仪表盘数据dto.CommunicationDashboardDataResponse
400请求参数错误dto.SimpleResponse
401未认证或令牌无效dto.SimpleResponse
403无权访问该资源dto.SimpleResponse
500服务内部错误dto.SimpleResponse

Referenced Schemas

dto.CommunicationDashboardDataResponse

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

dto.CommunicationDashboardResponse

通信服务各渠道投递统计数据

FieldTypeRequiredExampleConstraintsDescription
by_channel object No extra keys: `integer`
by_status object No extra keys: `integer`
delivered integer No 980
delivery_rate number No 0.98
failed integer No 20
total_sent integer No 1000

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No