idlealarm

package
v0.0.0-...-2de196b Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package idlealarm implements alarm modification on idle alarm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Process(ctx context.Context) ([]types.Event, error)
}

Service interface is used to implement alarms modification by idle rules.

func NewService

func NewService(
	ruleAdapter idlerule.RuleAdapter,
	alarmAdapter libalarm.Adapter,
	entityAdapter libentity.Adapter,
	pbhRpcClient engine.RPCClient,
	eventGenerator libevent.Generator,
	encoder encoding.Encoder,
	logger zerolog.Logger,
) Service

NewService creates new service.

Jump to

Keyboard shortcuts

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