aggrmetrics

package
v0.0.0-...-9816dab Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package aggrmetrics computes & reports aggregated metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

Driver takes care of invoking aggregators and correctly working with aggregated metrics.

func New

func New(env *common.Env) *Driver

New creates a new Driver for metrics aggregation.

func (*Driver) Cron

func (d *Driver) Cron(ctx context.Context) error

Cron reports all the aggregated metrics for all active projects.

Resets all known reporting metrics at the beginning. It is expected to be called once per minute, e.g., by GAE cron.

Jump to

Keyboard shortcuts

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