notify

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricAws

func MetricAws(awsService string, requestMethod string, status string, device string, action string)

func MetricCmd

func MetricCmd(cmd string, response string)

func MetricDeviceStatus

func MetricDeviceStatus(deviceName string, deviceType string, alive bool)

func MetricHttpIn

func MetricHttpIn(uri string, reponseCode int, method string)

func MetricHttpOut

func MetricHttpOut(destination string, reponseCode int, method string)

func SendSlackAlert

func SendSlackAlert(message string)

Types

type SlackMsg

type SlackMsg struct {
	Text     string `json:"text"`
	Username string `json:"username"`
	IconPath string `json:"icon_path"`
}

Jump to

Keyboard shortcuts

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