Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricLabelActionMessageProcessed MetricLabelAction = "message_processed" MetricLabelActionMessageDeleted MetricLabelAction = "message_deleted" MetricLabelActionUserBanned MetricLabelAction = "user_banned" MetricLabelActionAdminNotified MetricLabelAction = "admin_notified" MetricLabelStatusSuccess MetricLabelStatus = "success" MetricLabelStatusFailed MetricLabelStatus = "failed" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶ added in v0.3.2
type Bot struct {
// contains filtered or unexported fields
}
type MetricLabelAction ¶ added in v0.4.0
type MetricLabelAction string
type MetricLabelStatus ¶ added in v0.4.0
type MetricLabelStatus string
type Metrics ¶ added in v0.4.0
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶ added in v0.4.0
func NewMetrics() *Metrics
func (*Metrics) IncProcessedAction ¶ added in v0.4.0
func (m *Metrics) IncProcessedAction(action MetricLabelAction, status MetricLabelStatus)
Click to show internal directories.
Click to hide internal directories.