insight

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Insight

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

func New

func New(provider Provider) *Insight

func (*Insight) Fetch

func (in *Insight) Fetch(ctx context.Context, dbiResourceId string, dur time.Duration, metrics ...string) (map[string]Samples, error)

type Provider

type Provider interface {
	GetResourceMetrics(
		context.Context,
		*pi.GetResourceMetricsInput,
		...func(*pi.Options),
	) (*pi.GetResourceMetricsOutput, error)
}

type Sample

type Sample interface {
	T() time.Time
	X() float64
}

Sample abstract the dependencies to AWS types.DataPoint

type Samples

type Samples []Sample

Samples is a time series sequence

func (Samples) ToSeq

func (samples Samples) ToSeq() []float64

Jump to

Keyboard shortcuts

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