Documentation
¶
Index ¶
- func ConvertCheckToTimeSeries(target config.Target, result net.WebsiteCheckResult, region string, ...) []*prompb.TimeSeries
- func ConvertSSLExpiryToTimeSeries(target config.Target, daysUntilExpiry int, timestamp time.Time) *prompb.TimeSeries
- func InitRemoteWrite(cfg Config)
- func MapSeries(name string, labels map[string]string) []*prompb.Label
- func MapTargetLabels(target config.Target, result net.WebsiteCheckResult, region string) map[string]string
- func RecordCheck(target config.Target, result net.WebsiteCheckResult, region string)
- func RecordSSLExpiry(target config.Target, daysUntilExpiry int)
- func StopRemoteWrite()
- type Config
- type TimeSeries
- type WriteClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCheckToTimeSeries ¶
func ConvertCheckToTimeSeries(target config.Target, result net.WebsiteCheckResult, region string, timestamp time.Time) []*prompb.TimeSeries
func InitRemoteWrite ¶
func InitRemoteWrite(cfg Config)
func MapTargetLabels ¶
func RecordCheck ¶
func RecordCheck(target config.Target, result net.WebsiteCheckResult, region string)
func RecordSSLExpiry ¶
func StopRemoteWrite ¶
func StopRemoteWrite()
Types ¶
type Config ¶
type TimeSeries ¶
type WriteClient ¶
type WriteClient struct {
// contains filtered or unexported fields
}
func NewWriteClient ¶
func NewWriteClient(cfg Config) *WriteClient
func (*WriteClient) AddCheck ¶
func (c *WriteClient) AddCheck(target config.Target, result net.WebsiteCheckResult, region string)
func (*WriteClient) AddSSLExpiry ¶
func (c *WriteClient) AddSSLExpiry(target config.Target, daysUntilExpiry int)
func (*WriteClient) Start ¶
func (c *WriteClient) Start()
func (*WriteClient) Stop ¶
func (c *WriteClient) Stop()
Click to show internal directories.
Click to hide internal directories.