All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 12m59s
19 lines
681 B
Go
19 lines
681 B
Go
package carrierthreshold
|
||
|
||
import "time"
|
||
|
||
// Evaluation 是一次通道阈值达量判定所需的卡与读数事实。
|
||
//
|
||
// 读数只来自运营商回传的网关累计读数(IoT 卡的 last_gateway_reading_mb),
|
||
// 不使用本地用量统计、当月用量或套餐真流量;ObservedAt 决定该读数所属的计费周期。
|
||
type Evaluation struct {
|
||
// CardID 是触发判定的物联网卡 ID。
|
||
CardID uint
|
||
// CarrierID 是卡当前所属运营商 ID,决定阈值配置与周期起点。
|
||
CarrierID uint
|
||
// ReadingMB 是本次已接受的运营商网关累计读数。
|
||
ReadingMB float64
|
||
// ObservedAt 是本次读数的观测时刻。
|
||
ObservedAt time.Time
|
||
}
|