Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultEnable is default state for metrics DefaultEnable = false )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` WebookURL string `toml:"webook-url"` MessageFormat string `toml:"message-format"` ReportingInterval toml.Duration `toml:"reporting-interval"` Namespace string `toml:"namespace"` ResetCountersAfterReport bool `toml:"reset-counters-after-report"` StaticDimensions map[string]string `toml:"static-dimensions"` }
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.