MCPcopy
hub / github.com/labring/sealos / WorkspaceSubscriptionTrafficEventData

Struct WorkspaceSubscriptionTrafficEventData

controllers/pkg/user_notify/types.go:376–387  ·  view source on GitHub ↗

WorkspaceSubscriptionTrafficEventData 流量事件数据

Source from the content-addressed store, hash-verified

374
375// WorkspaceSubscriptionTrafficEventData 流量事件数据
376type WorkspaceSubscriptionTrafficEventData struct {
377 RegionDomain string `json:"region_domain"`
378 PlanName string `json:"plan_name,omitempty"`
379 Type EventType `json:"-"`
380 Status types.WorkspaceTrafficStatus `json:"status,omitempty"`
381 ExpirationDate string `json:"expiration_date"`
382 UsagePercent int `json:"used_percentage,omitempty"`
383 TotalBytes int64 `json:"total_bytes,omitempty"`
384 UsedBytes int64 `json:"used_bytes,omitempty"`
385 Workspace string `json:"workspace_name,omitempty"`
386 Features []string `json:"features,omitempty"`
387}
388
389// CustomEventData 自定义事件数据
390type CustomEventData struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected