aggregate

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch

Functions

func Init

func Init(a *Aggregate, name string, t time.Time, freq Frequency)

func Query

Types

type Aggregate

type Aggregate struct {
	mixin.Model

	Instance     string    `json:"instance"`
	Name         string    `json:"name"`
	Type         string    `json:"type"`
	BinTimestamp time.Time `json:"binTimestamp"`
	Value        int64     `json:"value"`
	VectorValue  []int64   `json:"vectorValue,omitempty"`
}

func New

func New(db *datastore.Datastore) *Aggregate

func (*Aggregate) Defaults

func (a *Aggregate) Defaults()

func (*Aggregate) Init

func (a *Aggregate) Init(db *datastore.Datastore)

func (Aggregate) Kind

func (a Aggregate) Kind() string

func (*Aggregate) Load

func (a *Aggregate) Load(p []datastore.Property) (err error)

func (*Aggregate) Save

func (a *Aggregate) Save() (p []datastore.Property, err error)

type Frequency

type Frequency string
const (
	Hourly Frequency = "Hourly"
	Daily            = "Daily"
)

Jump to

Keyboard shortcuts

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