Documentation
¶
Overview ¶
Package analytics defines the dashboard snapshot independently of HTTP DTOs.
Index ¶
Constants ¶
View Source
const MaxCount int64 = 1<<53 - 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Overview ¶
type Overview struct {
AsOf time.Time `json:"as_of"`
From time.Time `json:"from"`
To time.Time `json:"to"`
Bucket string `json:"bucket"`
Timezone string `json:"timezone"`
Namespace *string `json:"namespace"`
Current struct {
ActiveSessions int64 `json:"active_sessions"`
} `json:"current"`
Period struct {
RunsCount int64 `json:"runs_count"`
ByStatus StatusCounts `json:"by_status"`
Usage Usage `json:"usage"`
RuntimeSeconds float64 `json:"runtime_seconds"`
} `json:"period"`
Series []Bucket `json:"series"`
}
type Request ¶
type StatusCounts ¶
type StatusCounts struct {
Accepted int64 `json:"accepted"`
Starting int64 `json:"starting"`
Running int64 `json:"running"`
Cancelling int64 `json:"cancelling"`
Finalizing int64 `json:"finalizing"`
Completed int64 `json:"completed"`
Failed int64 `json:"failed"`
Cancelled int64 `json:"cancelled"`
}
func (*StatusCounts) Add ¶
func (s *StatusCounts) Add(v StatusCounts)
Click to show internal directories.
Click to hide internal directories.