Add addBottom function
Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
parent
483e67a2e8
commit
9e2bde4217
5 changed files with 91 additions and 0 deletions
45
docs/functions/addBottom.md
Normal file
45
docs/functions/addBottom.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Flux Query Builder Docs
|
||||
|
||||
## Functions » addBottom()
|
||||
|
||||
### Parameters:
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Required</th>
|
||||
<th>Data type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>n</td>
|
||||
<td>Yes</td>
|
||||
<td>string</td>
|
||||
<td>Number of rows to return from each input table.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>columns</td>
|
||||
<td>No</td>
|
||||
<td>array</td>
|
||||
<td>List of columns to sort by. Default is ["_value"].</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```php
|
||||
->addBottom(2, ['_value'])
|
||||
```
|
||||
|
||||
This will result in the following Flux function part:
|
||||
|
||||
```
|
||||
|> bottom(n: 2, columns: ["_value"])
|
||||
```
|
||||
|
||||
### Extra resources
|
||||
|
||||
* [Flux documentation](https://docs.influxdata.com/flux/v0.x/stdlib/universe/bottom/)
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue