Documentation
¶
Index ¶
- type Provider
- func (m *Provider) IncBackoffTriggered(c string, d time.Duration)
- func (m *Provider) IncChildRestart(s, c string)
- func (m *Provider) IncContainerFailed(image string)
- func (m *Provider) IncContainerStarted(image string)
- func (m *Provider) IncContainerStopped(image string)
- func (m *Provider) IncDataLost(bytes int)
- func (m *Provider) IncForceExitTriggered()
- func (m *Provider) IncHookExecuted()
- func (m *Provider) IncHookPanicked()
- func (m *Provider) IncProcessFailed()
- func (m *Provider) IncProcessStarted()
- func (m *Provider) IncSignalReceived(sig string)
- func (m *Provider) IncSupervisorAdd(s string)
- func (m *Provider) IncSupervisorRemove(s string)
- func (m *Provider) IncSupervisorRestart(s, strategy string)
- func (m *Provider) IncTerminalUpgrade(success bool)
- func (m *Provider) IncWorkerFailed(wt string)
- func (m *Provider) IncWorkerStarted(wt string)
- func (m *Provider) IncWorkerStopped(wt string)
- func (m *Provider) ObserveContainerDuration(image string, d time.Duration)
- func (m *Provider) ObserveHookDuration(d time.Duration)
- func (m *Provider) ObserveShutdownDuration(wt string, d time.Duration)
- func (m *Provider) ObserveWorkerDuration(wt string, d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
Mu sync.Mutex
Signals []string
Restarts map[string]int // Supervisor -> count
ChildRestarts map[string]int // Child -> count
Backoffs map[string]time.Duration
// Additional counters for verification
SupervisorAdds map[string]int
SupervisorRemoves map[string]int
WorkerStarts map[string]int
WorkerStops map[string]int
WorkerFails map[string]int
}
Provider matches metrics.Provider interface for testing. It is safe for concurrent use.
func (*Provider) IncBackoffTriggered ¶
func (*Provider) IncChildRestart ¶
func (*Provider) IncContainerFailed ¶
func (*Provider) IncContainerStarted ¶
func (*Provider) IncContainerStopped ¶
func (*Provider) IncDataLost ¶
func (*Provider) IncForceExitTriggered ¶
func (m *Provider) IncForceExitTriggered()
func (*Provider) IncHookExecuted ¶
func (m *Provider) IncHookExecuted()
func (*Provider) IncHookPanicked ¶
func (m *Provider) IncHookPanicked()
func (*Provider) IncProcessFailed ¶
func (m *Provider) IncProcessFailed()
func (*Provider) IncProcessStarted ¶
func (m *Provider) IncProcessStarted()
func (*Provider) IncSignalReceived ¶
func (*Provider) IncSupervisorAdd ¶
func (*Provider) IncSupervisorRemove ¶
func (*Provider) IncSupervisorRestart ¶
func (*Provider) IncTerminalUpgrade ¶
func (*Provider) IncWorkerFailed ¶
func (*Provider) IncWorkerStarted ¶
func (*Provider) IncWorkerStopped ¶
func (*Provider) ObserveContainerDuration ¶
func (*Provider) ObserveHookDuration ¶
func (*Provider) ObserveShutdownDuration ¶
Click to show internal directories.
Click to hide internal directories.