cachestats

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	types.MetricsCollector
	// contains filtered or unexported fields
}

Collector defines a cache stat collector.

func NewCollector added in v0.0.2

func NewCollector(config util.Config, client types.GraphQLClient) *Collector

NewCollector creates a new cache stat collector.

func (*Collector) CollectMetrics

func (c *Collector) CollectMetrics(ctx context.Context, start, end time.Time) ([]awstypes.MetricDatum, error)

CollectMetrics calls the graphQL endpoint to collect cache stats.

Jump to

Keyboard shortcuts

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