httpSmoke

package
v0.0.0-...-fb315dc Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(service Service, logger kitlog.Logger, ml machineLearning.Service) http.Handler

MakeHandler returns a HTTP Restul endpoint to handle user requests

func NewQuietHttpAlertCommand

func NewQuietHttpAlertCommand(telegramService telegram.Service,
	service Service) telegram.Command

Types

type AddHttpRequest

type AddHttpRequest struct {
	Name       string
	Method     string
	URL        string
	Threshold  int
	Parameters []struct {
		Name  string
		Value string
	}
}

swagger:model

type Service

type Service interface {
	// contains filtered or unexported methods
}

func NewService

func NewService(alertService alert.Service, store Store, callout callout.Service, checkCount, ErrorCount metrics.Counter) Service

type Store

type Store interface {
	// contains filtered or unexported methods
}

func NewMongoStore

func NewMongoStore(db *mgo.Database) Store

Jump to

Keyboard shortcuts

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