Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Oct 18, 2024
1 parent 8f0c063 commit 29cf55a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ let buckets = db
.avg(/* metric */ "cpu.total", /* group by tag */ "host")
.filter("env:prod AND service:db")
// use .start() and .end() to set the time bounds
// use .bucket() to set the granularity (bucket width in nanoseconds)
.run()?;
// use .granularity() to set the granularity (bucket width in nanoseconds)
.build()?
.collect()?;

println!("{buckets:#?}");
```

0 comments on commit 29cf55a

Please sign in to comment.