count

package
v1.20.24 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AggMinute   = "m"
	Agg5Minutes = "5m"
	AggHour     = "h"
	AggDay      = "d"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CountRepo added in v1.20.18

type CountRepo struct {
	// contains filtered or unexported fields
}

func NewCountRepo added in v1.20.18

func NewCountRepo() (result *CountRepo)

func (*CountRepo) BatchInsert added in v1.20.19

func (repo *CountRepo) BatchInsert(batch []*_types.Count) error

func (*CountRepo) Find added in v1.20.18

func (repo *CountRepo) Find(filter types.Filter, agg string) (types.Counts, error)

func (*CountRepo) RunBatcher added in v1.20.20

func (repo *CountRepo) RunBatcher() *CountRepo

func (*CountRepo) StatsByDashboard added in v1.20.18

func (repo *CountRepo) StatsByDashboard(dashId int) ([]*types.DashStatRow, error)

func (*CountRepo) StatsByDashboardCached added in v1.20.18

func (repo *CountRepo) StatsByDashboardCached(dashId int) ([]*types.DashStatRow, error)

func (*CountRepo) StatsByLogname added in v1.20.18

func (repo *CountRepo) StatsByLogname(dashId int, logname string) ([]*types.DashStatRow, error)

func (*CountRepo) StatsByLognameCached added in v1.20.18

func (repo *CountRepo) StatsByLognameCached(dashId int, logname string) ([]*types.DashStatRow, error)

func (*CountRepo) StopBatcher added in v1.20.20

func (repo *CountRepo) StopBatcher() error

func (*CountRepo) Store added in v1.20.18

func (repo *CountRepo) Store(count *_types.Count) error

Jump to

Keyboard shortcuts

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