From 29cf55af585b61cf42b31bb56c2810b6abc1b18e Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Fri, 18 Oct 2024 21:51:01 +0200 Subject: [PATCH] update doc --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34dd03a..aeff7df 100644 --- a/README.md +++ b/README.md @@ -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:#?}"); ```