Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Use aggregation ID in rollup operation
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Mar 20, 2018
1 parent ec3f7c9 commit 26c8fe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions op/applied/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ import (
type Rollup struct {
// Metric ID generated as a result of the rollup.
ID []byte
// Type of aggregation performed within each unique dimension combination.
AggregationType aggregation.Type
// Type of aggregations performed within each unique dimension combination.
AggregationID aggregation.ID
}

func (op Rollup) String() string {
var b bytes.Buffer
b.WriteString("{")
fmt.Fprintf(&b, "id: %s, ", op.ID)
fmt.Fprintf(&b, "aggregation: %v", op.AggregationType)
fmt.Fprintf(&b, "aggregation: %v", op.AggregationID)
b.WriteString("}")
return b.String()
}
Expand Down

0 comments on commit 26c8fe0

Please sign in to comment.