Documentation
¶
Index ¶
- func CreateBillerOutput(teamId uint) chan decimal.Decimal
- func CreateStatsOutput(appId uint) chan ProcessedOutput
- func RemoveBillerOutput(teamId uint, ch chan decimal.Decimal)
- func RemoveStatsOutput(appId uint, ch chan ProcessedOutput)
- func StartBillerFromCID(app db.App, team db.Team, cid string) error
- func StartBilling(conn *dokku.DokkuConn) error
- func StartBillingApp(conn *dokku.DokkuConn, app db.App) error
- func StopBiller(appId uint)
- type BillerEvent
- type ProcessedOutput
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBillerOutput ¶
func CreateStatsOutput ¶
func CreateStatsOutput(appId uint) chan ProcessedOutput
func RemoveBillerOutput ¶
func RemoveStatsOutput ¶
func RemoveStatsOutput(appId uint, ch chan ProcessedOutput)
func StartBilling ¶
func StopBiller ¶
func StopBiller(appId uint)
Types ¶
type BillerEvent ¶
type ProcessedOutput ¶
type Stats ¶
type Stats struct {
Read time.Time `json:"read"`
CpuStats struct {
CpuUsage struct {
PercpuUsage []interface{} `json:"percpu_usage"`
TotalUsage int64 `json:"total_usage"`
} `json:"cpu_usage"`
SystemCpuUsage int64 `json:"system_cpu_usage"`
OnlineCpus int64 `json:"online_cpus"`
} `json:"cpu_stats"`
PrecpuStats struct {
CpuUsage struct {
TotalUsage int64 `json:"total_usage"`
} `json:"cpu_usage"`
SystemCpuUsage int64 `json:"system_cpu_usage"`
OnlineCpus int64 `json:"online_cpus"`
} `json:"precpu_stats"`
MemoryStats struct {
Stats struct {
Cache int64 `json:"cache"`
} `json:"stats"`
Usage int64 `json:"usage"`
Limit int64 `json:"limit"`
} `json:"memory_stats"`
}
func (*Stats) Process ¶
func (stat *Stats) Process() ProcessedOutput
Click to show internal directories.
Click to hide internal directories.