Documentation ¶
Index ¶
- func MakeCleanCockroachJob(cockroach Cockroach, logger log.Logger) (*job.Job, error)
- func MakeInfluxJob(influx InfluxHealthChecker, healthCheckValidity time.Duration, ...) (*job.Job, error)
- func MakeJaegerJob(jaeger JaegerHealthChecker, healthCheckValidity time.Duration, ...) (*job.Job, error)
- func MakeRedisJob(redis RedisHealthChecker, healthCheckValidity time.Duration, ...) (*job.Job, error)
- func MakeSentryJob(sentry SentryHealthChecker, healthCheckValidity time.Duration, ...) (*job.Job, error)
- type Cockroach
- type Flaki
- type InfluxHealthChecker
- type JaegerHealthChecker
- type RedisHealthChecker
- type SentryHealthChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCleanCockroachJob ¶
MakeCleanCockroachJob creates the job that periodically exectutes the health checks and save the result in DB.
func MakeInfluxJob ¶
func MakeInfluxJob(influx InfluxHealthChecker, healthCheckValidity time.Duration, cockroach Cockroach) (*job.Job, error)
MakeInfluxJob creates the job that periodically exectutes the health checks and save the result in DB.
func MakeJaegerJob ¶
func MakeJaegerJob(jaeger JaegerHealthChecker, healthCheckValidity time.Duration, cockroach Cockroach) (*job.Job, error)
MakeJaegerJob creates the job that periodically exectutes the health checks and save the result in DB.
func MakeRedisJob ¶
func MakeRedisJob(redis RedisHealthChecker, healthCheckValidity time.Duration, cockroach Cockroach) (*job.Job, error)
MakeRedisJob creates the job that periodically exectutes the health checks and save the result in DB.
func MakeSentryJob ¶
func MakeSentryJob(sentry SentryHealthChecker, healthCheckValidity time.Duration, cockroach Cockroach) (*job.Job, error)
MakeSentryJob creates the job that periodically exectutes the health checks and save the result in DB.
Types ¶
type Cockroach ¶
type Cockroach interface { Update(unit string, validity time.Duration, jsonReports json.RawMessage) error Clean() error }
Cockroach is the interface of the module that stores the health reports in the DB.
type Flaki ¶
type Flaki interface {
NextValidIDString() string
}
Flaki is the interface of the IDs generator.
type InfluxHealthChecker ¶
type InfluxHealthChecker interface {
HealthChecks(context.Context) []common.InfluxReport
}
InfluxHealthChecker is the interface of the influx health check module.
type JaegerHealthChecker ¶
type JaegerHealthChecker interface {
HealthChecks(context.Context) []common.JaegerReport
}
JaegerHealthChecker is the interface of the jaeger health check module.
type RedisHealthChecker ¶
type RedisHealthChecker interface {
HealthChecks(context.Context) []common.RedisReport
}
RedisHealthChecker is the interface of the redis health check module.
type SentryHealthChecker ¶
type SentryHealthChecker interface {
HealthChecks(context.Context) []common.SentryReport
}
SentryHealthChecker is the interface of the sentry health check module.