simple

package
v0.0.0-...-acb41ca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inquirer

type Inquirer interface {
	PerDay(ctx context.Context, in PerDayInput) ([]RecordOfDay, error)
}

func NewTimestreamInquire

func NewTimestreamInquire(sdk timestreamsdk.TimestreamQueryIface) Inquirer

type NewTimestreamRecorderInput

type NewTimestreamRecorderInput struct {
	TimestreamWrite timestreamsdk.TimestreamWriteIface
	DatabaseName    string
	TableName       string
	MeasureName     string
}

type PerDayInput

type PerDayInput struct {
	Days         uint32
	Location     *time.Location
	DatabaseName string
	TableName    string
}

type RecordOfDay

type RecordOfDay struct {
	Date time.Time
	Sum  uint64
}

type Recorder

type Recorder interface {
	// Do writes one time series data.
	// MeasureValue: 1
	// MeasureValueType: BIGINT
	// TimeUnit: NANOSECONDS
	// Dimensions[0].Name: N
	// Dimensions[0].Value: N
	Do(ctx context.Context, t time.Time) error
}

Recorder provides simple recording functions for Amazon Timestream.

func NewTimestreamRecorder

func NewTimestreamRecorder(in *NewTimestreamRecorderInput) Recorder

Directories

Path Synopsis
Package simplemock is a generated GoMock package.
Package simplemock is a generated GoMock package.

Jump to

Keyboard shortcuts

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