file

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm2FileReporter

type Alarm2FileReporter struct {
	*plugin.PluginBase
}

Alarm2FileReporter 默认告警处理器,打印本地告警日志

func (*Alarm2FileReporter) Destroy

func (g *Alarm2FileReporter) Destroy() error

Destroy 销毁插件,可用于释放资源

func (*Alarm2FileReporter) Init

Init 初始化插件

func (*Alarm2FileReporter) Name

func (g *Alarm2FileReporter) Name() string

Name 插件名,一个类型下插件名唯一

func (*Alarm2FileReporter) ReportAlarm

func (g *Alarm2FileReporter) ReportAlarm(level int, message string) error

ReportAlarm 上报告警

func (*Alarm2FileReporter) Type

func (g *Alarm2FileReporter) Type() common.Type

Type 插件类型

Jump to

Keyboard shortcuts

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