feat: add example

pull/5629/head
B Tasker 2024-10-02 15:28:26 +01:00
parent 531afe7b6b
commit 92b95a9495
No known key found for this signature in database
GPG Key ID: F289CDD2317B182C
1 changed files with 10 additions and 0 deletions

View File

@ -133,6 +133,7 @@ Default is `(r) => true`.
- [Query series cardinality in a bucket](#query-series-cardinality-in-a-bucket)
- [Query series cardinality in a measurement//](#query-series-cardinality-in-a-measurement)
- [Query series cardinality for a specific tag](#query-series-cardinality-for-a-specific-tag)
- [Query series cardinality of Data Written In the Last 4 Hours](#query-series-cardinality-of-data-written-in-the-last-4-hours)
### Query series cardinality in a bucket
@ -168,3 +169,12 @@ influxdb.cardinality(bucket: "example-bucket", start: time(v: 1), predicate: (r)
```
### Query Cardinality of Data Written In the Last 4 hours
```js
import "influxdata/influxdb"
influxdb.cardinality(bucket: "example-bucket", start: -4h)
```