Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "2006-01-02T15:04:05.999999-07:00"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetMetricData(ctx context.Context, getMetricData []*model.CloudwatchData, namespace string, startTime time.Time, endTime time.Time) []cloudwatch.MetricDataResult
}
type Clock ¶ added in v0.59.0
Clock small interface which allows for stubbing the time.Now() function for unit testing
type MetricWindowCalculator ¶ added in v0.59.0
type MetricWindowCalculator struct {
// contains filtered or unexported fields
}
func (MetricWindowCalculator) Calculate ¶ added in v0.59.0
func (m MetricWindowCalculator) Calculate(period time.Duration, length time.Duration, delay time.Duration) (time.Time, time.Time)
Calculate computes the start and end time for the GetMetricData request to AWS Always uses the wall clock time as starting point for calculations to ensure that a variety of exporter configurations will work reliably.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewDefaultProcessor ¶ added in v0.59.0
func NewProcessor ¶
Click to show internal directories.
Click to hide internal directories.