Documentation ¶
Index ¶
- func GetLocalAddress() (hostname, ip string, err error)
- type CompletionTimestamp
- func (ct *CompletionTimestamp) NewGauge(metricLabels map[string]string) error
- func (ct *CompletionTimestamp) StartGauge(jobName, targetURL string) error
- func (ct *CompletionTimestamp) StartGaugeForSeconds(jobName, targetURL string, interval int) error
- func (ct *CompletionTimestamp) StopGauge(jobName, targetURL string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalAddress ¶
Types ¶
type CompletionTimestamp ¶
type CompletionTimestamp struct { Name string Description string TargetURL string Labels map[string]string Gauge prometheus.Gauge }
CompletionTimestamp records the timestamp of the last successful execution and result of a given job
func (*CompletionTimestamp) NewGauge ¶
func (ct *CompletionTimestamp) NewGauge(metricLabels map[string]string) error
func (*CompletionTimestamp) StartGauge ¶
func (ct *CompletionTimestamp) StartGauge(jobName, targetURL string) error
func (*CompletionTimestamp) StartGaugeForSeconds ¶
func (ct *CompletionTimestamp) StartGaugeForSeconds(jobName, targetURL string, interval int) error
func (*CompletionTimestamp) StopGauge ¶
func (ct *CompletionTimestamp) StopGauge(jobName, targetURL string) error
Click to show internal directories.
Click to hide internal directories.