Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanda committed Feb 11, 2018
1 parent 708007e commit 5e05520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ func init() {
type Archiver struct {
cloudwatch *cloudwatch.CloudWatch
db *tsdb.DB
indexer *Indexer
region *string
namespace []*string
statistics []*string
extendedStatistics []*string
interval time.Duration
indexer *Indexer
archivedTimestamp time.Time
currentNamespaceIndex int
currentLabelIndex int
Expand Down Expand Up @@ -98,12 +98,12 @@ func NewArchiver(cfg ArchiveConfig, storagePath string, indexer *Indexer, logger
return &Archiver{
cloudwatch: cloudwatch,
db: db,
indexer: indexer,
region: cfg.Region[0],
namespace: cfg.Namespace,
statistics: []*string{aws.String("Sum"), aws.String("SampleCount"), aws.String("Maximum"), aws.String("Minimum"), aws.String("Average")},
extendedStatistics: []*string{aws.String("p50.00"), aws.String("p90.00"), aws.String("p99.00")}, // TODO: add to config
interval: time.Duration(24) * time.Hour,
indexer: indexer,
archivedTimestamp: time.Unix(0, 0),
currentNamespaceIndex: 0,
currentLabelIndex: 0,
Expand Down

0 comments on commit 5e05520

Please sign in to comment.