types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Type string   `yaml:"type"`
	Name string   `yaml:"name"`
	Rule []string `yaml:"rule"`
}

func (*Checker) Check

func (c *Checker) Check(response http.Response)

func (*Checker) CheckJson

func (c *Checker) CheckJson(js *simplejson.Json)

type Database

type Database struct {
	Type     string
	Host     string
	Port     int16
	Username string
	Password string
	Database string
}

type Rule

type Rule struct {
	Method     string
	Url        string
	Bodies     map[string]string `yaml:"body"`
	Headers    map[string]string `yaml:"header"`
	Range      map[string]map[string]int
	Every      map[string]int `yaml:"run_every"`
	Count      int64          `yaml:"run_count"`
	Thread     int16          `yaml:"run_thread"`
	LogResp    bool           `yaml:"log_response"`
	Prometheus map[string]string
	Check      []Checker `yaml: "checker"`
	Type       string
	Database   Database `yaml:"database"`
	Sql        TSql     `yaml: "sql"`
	Executed   int64
	Skip       bool
	Started    int64
}

func (*Rule) LogNotIn

func (r *Rule) LogNotIn(period string)

type TSql

type TSql struct {
	Execute []string
	Query   []string
}

Jump to

Keyboard shortcuts

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