Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultEnable is default state for metrics DefaultEnable = false // DefaultLoggingEnabled is disabled by default DefaultLoggingEnabled = false // DefaultLoggingFormat defines a format for logging DefaultLoggingFormat = `` /* 270-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` DirectLoggingEnabled bool `toml:"enable-direct-logging"` LogFormat string `toml:"logging-format"` WebookURL string `toml:"webhook-url"` MessageFormat string `toml:"message-format"` ReportingInterval toml.Duration `toml:"reporting-interval"` }
Config represents the meta configuration.
type Reporter ¶
type Reporter struct {
Config Config
}
Reporter type
func (*Reporter) StartReporting ¶
StartReporting starts the recording process
func (*Reporter) StopReporting ¶
StopReporting stops the recording process
func (*Reporter) SupportsLogging ¶
SupportsLogging returns if the adapter supports logging
Click to show internal directories.
Click to hide internal directories.