Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceCheck ¶
func NewServiceCheck(svcConfig *ServiceCheckConfig) (*serviceCheck, error)
newServiceCheck returns a new service check
Types ¶
type ServiceCheckConfig ¶
type ServiceCheckConfig struct { Name string Tag string MetricName string MetricNamespace string BlockTime time.Duration Logger *log.Logger }
serviceCheckConfig is used to represent the configuration of a service check
func DefaultServiceCheck ¶
func DefaultServiceCheck() *ServiceCheckConfig
defaultServiceCheck returns a defaul service check config
Directories ¶
Path | Synopsis |
---|---|
Package cloudwatch provides a session and a client for publishing metrics to cloudwatch metrics
|
Package cloudwatch provides a session and a client for publishing metrics to cloudwatch metrics |
cmd
|
|
Package consul provides a consul client from which data will be queried to know the health status of a service based in its tags
|
Package consul provides a consul client from which data will be queried to know the health status of a service based in its tags |
Package log provides a basic logger using Logrus as base
|
Package log provides a basic logger using Logrus as base |
Click to show internal directories.
Click to hide internal directories.