count

package
v1.20.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Find

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

func StatsByDashboard

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

func StatsByDashboardCached

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

func StatsByLogname

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

func StatsByLognameCached

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

Types

type CountStorage

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

func NewCountStorage

func NewCountStorage() *CountStorage

func (*CountStorage) RunQueue

func (storage *CountStorage) RunQueue() *CountStorage

func (*CountStorage) StopQueue

func (storage *CountStorage) StopQueue() error

func (*CountStorage) Store

func (storage *CountStorage) Store(c *_types.Count) error

Jump to

Keyboard shortcuts

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