Documentation ¶
Overview ¶
Package timescale implements the timescale metrics exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter for exporting metrics to timescale db.
type Metric ¶
type Metric struct { CheckID string CheckName string StartTime time.Time `gorm:"NOT NULL"` Duration time.Duration `gorm:"NOT NULL"` Timeout bool `gorm:"NOT NULL"` Success bool `gorm:"NOT NULL"` }
Metric model.
func (Metric) GetCheckName ¶
GetCheckName returns the check name.
func (Metric) GetDuration ¶
GetDuration returns the duration.
func (Metric) GetStartTime ¶
GetStartTime returns the start time.
func (Metric) IsSuccessful ¶
IsSuccessful tells if the check was successful.
Click to show internal directories.
Click to hide internal directories.