models

package
v0.0.0-...-7c0cce7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger     Logger
	Evaluator  Evaluator
	Slack      SlackClientConfig
	Prometheus PrometheusClientConfig
}

type Evaluator

type Evaluator struct {
	ExprVariableName string
	Rules            []Rule
}

type Logger

type Logger struct {
	Level string
}

type PrometheusClientConfig

type PrometheusClientConfig struct {
	URL string
}

type Rule

type Rule struct {
	Query       string
	Expression  string
	IntervalSec int
	Template    string
}

type SlackClientConfig

type SlackClientConfig struct {
	Webhook string
}

Jump to

Keyboard shortcuts

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