Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultConcurrency is the default probe concurrency. DefaultConcurrency = 10 // DefaultDeviceTimeout is the default max time for devices to respond to probes. DefaultDeviceTimeout = 5 * time.Second // DefaultNamespace is the default namespace for metrics. DefaultNamespace = "shelly" // DefaultSubsystem is the default subsystem for metrics. DefaultSubsystem = "status" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Server)
func WithConcurrency ¶
WithConcurrency defines the number of concurrent probes which will be made.
func WithDeviceTimeout ¶
WithDeviceTimeout describes the maximum time allowed for a device to respond to it probe.
func WithPrometheusNamespace ¶
WithPrometheusNamespace sets the namespace string to use for prometheus metric names.
func WithPrometheusSubsystem ¶
WithPrometheusSubsystem sets the subsystem section of the prometheus metric names.
Click to show internal directories.
Click to hide internal directories.