Documentation
¶
Overview ¶
Package metrics handles the aggregated stats that can be reported to a metrics exporter for bot monitoring. This only contains functionality for initializing and managing the stats themselves - the user is expected to set up an OpenCensus exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder is our backend-independent metrics recorder. This should be created with NewRecorder().
func NewRecorder ¶
NewRecorder creates a Recorder with its metrics initialized.
func (*Recorder) RecordConnectedServers ¶
RecordConnectedServers records the number of currently connected servers (guilds).
func (*Recorder) RecordRunningPoms ¶
RecordRunningPoms records the number of currently running pomodoros.
func (*Recorder) RecordStartPom ¶
func (r *Recorder) RecordStartPom()
RecordStartPom records the start of a pomodoro.
Click to show internal directories.
Click to hide internal directories.