statistics

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStatistics

type EventStatistics struct {
	OK        int               `json:"ok" bson:"ok"`
	KO        int               `json:"ko" bson:"ko"`
	LastEvent *datetime.CpsTime `json:"last_event,omitempty" bson:"last_event,omitempty" swaggertype:"integer"`
	LastKO    *datetime.CpsTime `json:"last_ko,omitempty" bson:"last_ko,omitempty" swaggertype:"integer"`
}

type EventStatisticsSender

type EventStatisticsSender interface {
	Send(ctx context.Context, entityID string, stats EventStatistics)
}

func NewEventStatisticsSender

func NewEventStatisticsSender(dbClient mongo.DbClient, logger zerolog.Logger, timezoneConfigProvider config.TimezoneConfigProvider) EventStatisticsSender

Jump to

Keyboard shortcuts

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