statsng

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CounterAlarmsAcknowledged = "alarms_acknowledged"
	CounterAlarmsCanceled     = "alarms_canceled"
	CounterAlarmsCreated      = "alarms_created"
	CounterAlarmsResolved     = "alarms_resolved"
	CounterFlappingPeriods    = "flapping_periods"
)

Counter names

View Source
const (
	DurationAckTime     = "ack_time"
	DurationResolveTime = "resolve_time"
)

Duration names

View Source
const (
	StateIntervalTimeInState = "time_in_state"
)

State intervals names

Variables

This section is empty.

Functions

func NewService

func NewService(pubChannel libamqp.Channel, pubExchangeName, pubQueueName string, jsonEncoder encoding.Encoder,
	statsStore serviceweather.StatsStore, logger zerolog.Logger) *service

Types

type Service

type Service interface {
	ProcessAlarmChange(
		ctx context.Context,
		change types.AlarmChange,
		timestamp types.CpsTime,
		alarm types.Alarm,
		entity types.Entity,
		author, eventType string,
		location *time.Location,
	) error

	ProcessResolvedAlarm(alarm types.Alarm, entity types.Entity) error
}

Jump to

Keyboard shortcuts

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