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.
Click to show internal directories.
Click to hide internal directories.