api

package
v0.0.0-...-1b233ce Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(s *Server) *mux.Router

Types

type Alert

type Alert struct {
	client.Resource
	Name         string                  `json:"name"`
	State        string                  `json:"state"`
	SendResolved bool                    `json:"sendResolved"`
	Severity     string                  `json:"severity"`
	Object       string                  `json:"object"`
	ObjectID     string                  `json:"objectId"`
	ServiceRule  v1beta1.ServiceRuleSpec `json:"serviceRule"`
	RecipientID  string                  `json:"recipientId"`
}

type Error

type Error struct {
	client.Resource
	Status   int    `json:"status"`
	Code     string `json:"code"`
	Msg      string `json:"message"`
	Detail   string `json:"detail"`
	BaseType string `json:"baseType"`
}

type HandleFuncWithError

type HandleFuncWithError func(http.ResponseWriter, *http.Request) error

type Notifier

type Notifier struct {
	client.Resource
	NotifierType    string                      `json:"notifierType"`
	SlackConfig     v1beta1.SlackConfigSpec     `json:"slackConfig"`
	EmailConfig     v1beta1.EmailConfigSpec     `json:"emailConfig"`
	PagerDutyConfig v1beta1.PagerDutyConfigSpec `json:"pagerdutyConfig"`
}

type Recipient

type Recipient struct {
	client.Resource
	RecipientType      string                         `json:"recipientType"`
	SlackRecipient     v1beta1.SlackRecipientSpec     `json:"slackRecipient"`
	EmailRecipient     v1beta1.EmailRecipientSpec     `json:"emailRecipient"`
	PagerDutyRecipient v1beta1.PagerDutyRecipientSpec `json:"pagerdutyRecipient"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(clientset *kubernetes.Clientset, mclient *v1beta1.MonitoringV1Client, alertManagerURL string, alertSecretName string, alertmanagerConfig string) *Server

Jump to

Keyboard shortcuts

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