notice

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuAlert added in v1.0.38

type FeishuAlert struct {
	// contains filtered or unexported fields
}
var Feishu *FeishuAlert

func NewFeishu added in v1.0.47

func NewFeishu(options map[string]interface{}) *FeishuAlert

func (*FeishuAlert) Add added in v1.0.40

func (f *FeishuAlert) Add(name string, option Option)

func (*FeishuAlert) AddMap added in v1.0.40

func (f *FeishuAlert) AddMap(name string, setting map[string]interface{})

func (*FeishuAlert) AddMapBatch added in v1.0.40

func (f *FeishuAlert) AddMapBatch(batch map[string]interface{})

func (*FeishuAlert) FindOption added in v1.0.40

func (f *FeishuAlert) FindOption(levelName string, entry, defaultName string) string

func (*FeishuAlert) Format added in v1.0.38

func (f *FeishuAlert) Format(log map[string]interface{}, kibanaUrl, esIndex string) string

func (*FeishuAlert) Send added in v1.0.38

func (f *FeishuAlert) Send(log map[string]interface{})

type Option added in v1.0.40

type Option struct {
	Levels    []string `json:"levels"`
	Webhook   string   `json:"webhook"`
	SignKey   string   `json:"sign_key"`
	UserId    string   `json:"user_id"`
	KibanaUrl string   `json:"kibana_url"`
	EsIndex   string   `json:"es_index"`
}

Jump to

Keyboard shortcuts

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