message

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Level     string            `json:"level"`
	AlertName string            `json:"alert_name"`
	Text      string            `json:"text"`
	Image     string            `json:"image,omitempty"`
	Fields    map[string]string `json:"fields,omitempty"`
}

Message represents a Message struct

func New

func New(level, alertName, text string, image string, fields map[string]string) *Message

New returns new Message instance

Jump to

Keyboard shortcuts

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