alerts

package
v0.0.0-...-d050cfb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppHistory

func AppHistory(c echo.Context) error

func AppList

func AppList(c echo.Context) error

func CreateApp

func CreateApp(c echo.Context) error

func CreateGroup

func CreateGroup(c echo.Context) error

func CreatePolicy

func CreatePolicy(c echo.Context) error

func DeleteApp

func DeleteApp(c echo.Context) error

func DeleteGroup

func DeleteGroup(c echo.Context) error

func DeletePolicy

func DeletePolicy(c echo.Context) error

func EditApp

func EditApp(c echo.Context) error

func EditGroup

func EditGroup(c echo.Context) error

func EditPolicy

func EditPolicy(c echo.Context) error

func History

func History(c echo.Context) error

func QueryGroups

func QueryGroups(c echo.Context) error

func QueryPolicies

func QueryPolicies(c echo.Context) error

func QueryPolicy

func QueryPolicy(c echo.Context) error

Types

type AlertHistory

type AlertHistory struct {
	ID        string   `json:"id"`
	Type      int      `json:"tp"`
	AppName   string   `json:"app_name"`
	Channel   string   `json:"channel"`
	InputDate string   `json:"input_date"`
	SqlID     int      `json:"sql_id"`
	API       string   `json:"api"`
	Alert     string   `json:"alert"`
	Value     float64  `json:"value"`
	Users     []string `json:"users"`
}

type AppAlert

type AppAlert struct {
	Name       string   `json:"name"`
	OwnerID    string   `json:"owner_id"`
	OwnerName  string   `json:"owner_name"`
	Policy     string   `json:"policy"`
	PolicyName string   `json:"policy_name"`
	Channel    string   `json:"channel"`
	Users      []string `json:"users"`
	UserNames  []string `json:"user_names"`
	UpdateDate string   `json:"update_date"`
	ApiAlerts  string   `json:"api_alerts"`
}

type Group

type Group struct {
	ID        string   `json:"id"`
	Name      string   `json:"name"`
	OwnerID   string   `json:"owner_id"`
	OwnerName string   `json:"owner_name"`
	Channel   string   `json:"channel"`
	Users     []string `json:"users"`
}

type Policy

type Policy struct {
	ID         string        `json:"id"`
	Name       string        `json:"name"`
	OwnerID    string        `json:"owner_id"`
	OwnerName  string        `json:"owner_name"`
	Alerts     []*util.Alert `json:"alerts"`
	UpdateDate string        `json:"update_date"`
}

Jump to

Keyboard shortcuts

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