statuscodes

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: 9 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 collector.

func NewCollector

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

NewCollector creates a new 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 metrics.

Jump to

Keyboard shortcuts

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