alerts

package
v0.0.0-...-771c5c2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	//Status       string            `json:"status"`
	Labels       map[string]string `json:"labels"`
	Annotations  map[string]string `json:"annotations"`
	StartsAt     string            `json:"startsAt,omitempty"`
	EndsAt       string            `json:"endsAt,omitempty"`
	GeneratorURL string            `json:"generatorURL"`
}

Alerts ...

func (*Alerts) Parse

func (a *Alerts) Parse(eventJSON []byte, generatorURL string)

Parse ...parses alerts to validate for schema

func (*Alerts) SetName

func (a *Alerts) SetName()

SetName ... set unique name for alerts

func (*Alerts) SetSummary

func (a *Alerts) SetSummary()

SetSummary ...

Jump to

Keyboard shortcuts

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