Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListCmd ¶
func NewQuotaCmd ¶
Types ¶
type ListTrafficOperation ¶
type ListTrafficOperation struct{}
type QuotaRow ¶
type QuotaRow struct {
Project string `json:"project"`
BillingMethod string `json:"billing_method"`
Region string `json:"region"`
QuotaTbGranted int64 `json:"quota_in_tb_granted"`
QuotaTbAdditional int64 `json:"quota_in_tb_additional"`
QuotaTbTotal int64 `json:"quota_in_tb_total"`
QuotaMbpsTotal int64 `json:"quota_in_mbps_total"`
}
QuotaRow is one project/region quota entry, flattened from the nested quota payload. Projects without per-region quotas produce a single row with an empty region.
type QuotaTrafficOperation ¶
type QuotaTrafficOperation struct{}
type TrafficDay ¶
type TrafficDay struct {
Region string `json:"region"`
Date string `json:"date"`
InboundGb int64 `json:"inbound_gb"`
OutboundGb int64 `json:"outbound_gb"`
AvgInboundMbps float64 `json:"avg_inbound_speed_mbps"`
AvgOutboundMbps float64 `json:"avg_outbound_speed_mbps"`
}
TrafficDay is one day of traffic in one region, the daily breakdown behind the dashboard chart. Surfaced by `traffic list --daily`.
func (*TrafficDay) TableRow ¶
func (m *TrafficDay) TableRow() table.Row
type TrafficRegionSummary ¶
type TrafficRegionSummary struct {
Region string `json:"region"`
BillingMethod string `json:"billing_method,omitempty"`
InboundTb float64 `json:"inbound_tb"`
OutboundTb float64 `json:"outbound_tb"`
Inbound95thMbps float64 `json:"inbound_95th_percentile_mbps"`
Outbound95thMbps float64 `json:"outbound_95th_percentile_mbps"`
QuotaTotal *int64 `json:"quota_total,omitempty"`
UsedPercent *int64 `json:"used_percent,omitempty"`
}
TrafficRegionSummary is the per-region headline the dashboard shows on each bandwidth card: inbound/outbound totals plus the quota and how much of it has been used. Units follow the project billing method — TB for volume billing, Mbps for 95th-percentile billing.
func (*TrafficRegionSummary) TableRow ¶
func (m *TrafficRegionSummary) TableRow() table.Row
Click to show internal directories.
Click to hide internal directories.