logs

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

README

LOGS Plugin

Documentation

Index

Constants

View Source
const (
	// EntityLogs ...
	EntityLogs = string("logs")

	AttrErrTotal      = "err_total"
	AttrErrToday      = "err_today"
	AttrErrYesterday  = "err_yesterday"
	AttrWarnTotal     = "warn_total"
	AttrWarnToday     = "warn_today"
	AttrWarnYesterday = "warn_yesterday"

	// Name ...
	Name = "logs"

	// EntityType ...
	EntityType = "logs"

	Version = "0.0.1"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

Types

type Actor

type Actor struct {
	*supervisor.BaseActor

	ErrTotal      metrics.Counter
	ErrToday      metrics.Counter
	ErrYesterday  metrics.Counter
	WarnTotal     metrics.Counter
	WarnToday     metrics.Counter
	WarnYesterday metrics.Counter
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service supervisor.Service) *Actor

NewActor ...

func (*Actor) Destroy added in v0.12.0

func (e *Actor) Destroy()

func (*Actor) LogsHook

func (e *Actor) LogsHook(level common.LogLevel)

func (*Actor) Spawn

func (e *Actor) Spawn()

func (*Actor) UpdateDay

func (e *Actor) UpdateDay()

Jump to

Keyboard shortcuts

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