Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit ba24053

Browse files
author
Aurelien Hebert
committed
fix(dox): create syntax
1 parent 289a191 commit ba24053

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/doc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,12 +735,14 @@ The **series** method is used to create a Time Series, only in Warp 10 for now,
735735

736736
The **setValues** takes n parameter, the first one (optional) is the base Timestamp of the values (by default zero). Then the other are a two elements array composed of a timestamp (that would be add to the base one) and the value to set. Use example: _.setValues([0, 1], [100, 2])._
737737

738-
At the end of the create statement, all other Time Series method can be apply on.
738+
The **setLabels** takes a single parameter: a labels string list where the key and values are split per the equals symbol.
739+
740+
At the end of the create statement, all other Time Series set methods can be apply on.
739741

740742
A more complex but valid tsl statement to create 2 Time Series would be:
741743

742744
```tsl
743-
create(series("test").setLabels(["l0=42","l1=42"]).setValues("now", [-5m, 2], [0, 1]).setValues("now",[2m, 3]),series("test2").setLabels(["l0=42","l1=42"]).setValues("now", [-5m, 2], [0, 1]))
745+
create(series("test").setLabels(["l0=42","l1=42"]).setValues("now", [-5m, 2], [0, 1]).setValues("now",[2m, 3]),series("test2").setLabels(["l0=42","l1=42"]).setValues(now, [-5m, 2], [0, 1]))
744746
.sampleBy(30s, max)
745747
```
746748

0 commit comments

Comments
 (0)