Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlannerStats ¶
type PlannerStats struct {
ID string `json:"id"`
Schedule string `json:"schedule"`
State string `json:"state"`
Progress float64 `json:"progress"`
StartedAt time.Time `json:"started_at"`
ExecutionTime time.Duration `json:"execution_time"`
Cooldown time.Duration `json:"cooldown"`
Retries uint `json:"retries"`
Labels labels.Set `json:"labels"`
Error string `json:"error"`
}
type PlannerStatsOptions ¶
type PubsubMessage ¶
type PubsubMessage struct {
From string `json:"from"`
Topic string `json:"topic"`
Kind string `json:"kind"`
Payload any `json:"payload"`
}
PubsubMessage represents an event delivered through a subscription channel.
type SupervisorStats ¶ added in v0.4.0
type SupervisorStats struct {
Name string
Initialized bool
InitializedAt time.Time
InitializationErr error
Started bool
StartedAt time.Time
StartErr error
Stopped bool
StoppedAt time.Time
StopErr error
HealthcheckedAt time.Time
HealthcheckErr error
LivenessErr error
Ready bool
ReadinessErr error
Restarts int
RestartedAt time.Time
InitDuration time.Duration
StartDuration time.Duration
StopDuration time.Duration
Source common.Service
}
func (*SupervisorStats) Healthcheck ¶ added in v0.4.0
func (s *SupervisorStats) Healthcheck() error
func (*SupervisorStats) Uptime ¶ added in v0.4.0
func (s *SupervisorStats) Uptime() time.Duration
Click to show internal directories.
Click to hide internal directories.