Add docs for addRawFunction function
Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
parent
42a412a60a
commit
aeab6850e8
2 changed files with 35 additions and 1 deletions
|
|
@ -9,3 +9,4 @@ On this page you will find the methods you can use in the query builder.
|
|||
* [addGroup()](functions/addGroup.md)
|
||||
* [addLimit()](functions/addLimit.md)
|
||||
* [addMean()](functions/addMean.md)
|
||||
* [addRawFunction()](functions/addRawFunction.md)
|
||||
33
docs/functions/addRawFunction.md
Normal file
33
docs/functions/addRawFunction.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Flux Query Builder Docs
|
||||
|
||||
## Functions » addRawFunction()
|
||||
|
||||
### Parameters:
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Data type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>input</td>
|
||||
<td>string</td>
|
||||
<td>Insert any Flux function here.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```php
|
||||
->addRawFunction('|> aggregateWindow(every: 20s, fn: mean, timeDst: "_time")')
|
||||
```
|
||||
|
||||
This will result in the following Flux function part:
|
||||
|
||||
```
|
||||
|> aggregateWindow(every: 20s, fn: mean, timeDst: "_time")
|
||||
```
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue