GET /communication/dashboard

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

通信服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
days query integer 否 统计天数范围(默认30天)

响应

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

引用的 Schema

dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-communication/internal/handler/dto.CommunicationDashboardDataResponse

字段类型必填示例约束描述
code integer 否
data service-communication/internal/handler/dto.CommunicationDashboardResponse 否
message string 否
timestamp string 否

service-communication/internal/handler/dto.CommunicationDashboardResponse

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

字段类型必填示例约束描述
by_channel object 否 extra keys: `integer`
by_status object 否 extra keys: `integer`
delivered integer 否 980
delivery_rate number 否 0.98
failed integer 否 20
total_sent integer 否 1000