Skip to content

Commit

Permalink
Merge pull request #6 from ing-bank/correct-count-aggregation
Browse files Browse the repository at this point in the history
Update readme accordingly
  • Loading branch information
Fokko authored Nov 23, 2017
2 parents e8ec285 + f329f6d commit 618d32f
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ TopNQuery[TopCountry](
threshold = 5,
metric = "count",
aggregations = List(
CountAggregation(
name = "count",
fieldName = "count"
)
CountAggregation(name = "count")
),
intervals = List("2011-06-01/2017-06-01")
).execute
Expand All @@ -40,10 +37,7 @@ case class GroupByIsAnonymous(isAnonymous: Boolean, count: Int)

val result = GroupByQuery[GroupByIsAnonymous](
aggregations = List(
CountAggregation(
name = "count",
fieldName = "count"
)
CountAggregation(name = "count")
),
dimensions = List("isAnonymous"),
intervals = List("2011-06-01/2017-06-01")
Expand All @@ -59,10 +53,7 @@ case class TimeseriesCount(count: Int)

val result = TimeSeriesQuery[TimeseriesCount](
aggregations = List(
CountAggregation(
name = "count",
fieldName = "count"
)
CountAggregation(name = "count")
),
granularity = "hour",
intervals = List("2011-06-01/2017-06-01")
Expand Down

0 comments on commit 618d32f

Please sign in to comment.