This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch multi-groups
in repository 
https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git


The following commit(s) were added to refs/heads/multi-groups by this push:
     new 8a56812  Update README.md
8a56812 is described below

commit 8a56812a5838afa916519c6ba09141d193836aa7
Author: Gao Hongtao <[email protected]>
AuthorDate: Fri Apr 26 08:16:27 2024 +0800

    Update README.md
    
    Signed-off-by: Gao Hongtao <[email protected]>
---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 955a4f3..733e80d 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,7 @@ For example,
 Instant end = Instant.now();
 Instant begin = end.minus(15, ChronoUnit.MINUTES);
 // with stream schema, group=default, name=sw
-StreamQuery query = new StreamQuery("default", "sw",
+StreamQuery query = new StreamQuery(List.of("default"), "sw",
         new TimestampRange(begin.toEpochMilli(), end.toEpochMilli()),
         // projection tags which are indexed
         ImmutableSet.of("state", "start_time", "duration", "trace_id"));
@@ -154,7 +154,7 @@ For `Measure`, it is similar to the `Stream`,
 Instant end = Instant.now();
 Instant begin = end.minus(15, ChronoUnit.MINUTES);
 // with stream schema, group=sw_metrics, name=service_instance_cpm_day
-MeasureQuery query = new MeasureQuery("sw_metrics", "service_instance_cpm_day",
+MeasureQuery query = new MeasureQuery(List.of("sw_metrics"), 
"service_instance_cpm_day",
     new TimestampRange(begin.toEpochMilli(), end.toEpochMilli()),
     ImmutableSet.of("id", "scope", "service_id"),
     ImmutableSet.of("total"));

Reply via email to