job

package
v0.0.0-...-d5eddb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCleanCockroachJob

func MakeCleanCockroachJob(cockroach Cockroach, logger log.Logger) (*job.Job, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL