hotfix: update monitor states examples, closes #4187

pull/4201/head^2
Scott Anderson 2022-07-12 15:31:19 -06:00
parent cb84692dd8
commit c398fbc70f
5 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ calculates how many points have `closed` as their `_value`.
```js
from(bucket: "doors")
|> range(start: -5m)
|> stateDuration(fn: (r) => r._value == "closed", column: "door_closed")
|> stateCount(fn: (r) => r._value == "closed", column: "door_closed")
```
This example stores the **state count** in the `door_closed` column.

View File

@ -105,7 +105,7 @@ The following query searches the `doors` bucket over the past 5 minutes and calc
```js
from(bucket: "doors")
|> range(start: -5m)
|> stateDuration(fn: (r) => r._value == "closed", column: "door_closed")
|> stateCount(fn: (r) => r._value == "closed", column: "door_closed")
```
This example stores the **state count** in the `door_closed` column. If you write data to the `doors` bucket every minute, the state count increases by `1` for each consecutive point where `_value` is `closed`. If `_value` is not `closed`, the state count is reset to `-1`.

View File

@ -105,7 +105,7 @@ The following query searches the `doors` bucket over the past 5 minutes and calc
```js
from(bucket: "doors")
|> range(start: -5m)
|> stateDuration(fn: (r) => r._value == "closed", column: "door_closed")
|> stateCount(fn: (r) => r._value == "closed", column: "door_closed")
```
This example stores the **state count** in the `door_closed` column. If you write data to the `doors` bucket every minute, the state count increases by `1` for each consecutive point where `_value` is `closed`. If `_value` is not `closed`, the state count is reset to `-1`.

View File

@ -105,7 +105,7 @@ The following query searches the `doors` bucket over the past 5 minutes and calc
```js
from(bucket: "doors")
|> range(start: -5m)
|> stateDuration(fn: (r) => r._value == "closed", column: "door_closed")
|> stateCount(fn: (r) => r._value == "closed", column: "door_closed")
```
This example stores the **state count** in the `door_closed` column. If you write data to the `doors` bucket every minute, the state count increases by `1` for each consecutive point where `_value` is `closed`. If `_value` is not `closed`, the state count is reset to `-1`.

View File

@ -105,7 +105,7 @@ The following query searches the `doors` bucket over the past 5 minutes and calc
```js
from(bucket: "doors")
|> range(start: -5m)
|> stateDuration(fn: (r) => r._value == "closed", column: "door_closed")
|> stateCount(fn: (r) => r._value == "closed", column: "door_closed")
```
This example stores the **state count** in the `door_closed` column. If you write data to the `doors` bucket every minute, the state count increases by `1` for each consecutive point where `_value` is `closed`. If `_value` is not `closed`, the state count is reset to `-1`.