histogram

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	bqiface.Table
	// contains filtered or unexported fields
}

Table represents a bigquery table containing histogram data. It embeds bigquery.Table and extends it with an UpdateHistogram method.

func NewTable

func NewTable(name string, ds string, query string,
	client bqiface.Client) *Table

NewTable returns a new Table with the specified destination table, query and BQ client.

func (*Table) UpdateHistogram

func (t *Table) UpdateHistogram(ctx context.Context, start, end time.Time) error

UpdateHistogram generates the histogram data for the specified time range. If any data for this time range exists already, it's overwritten.

Jump to

Keyboard shortcuts

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