Adds addRangeFrom() method.

This commit is contained in:
Pierre Lannoy 2024-03-30 17:41:40 +01:00
commit 71bca9f1b1
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31
4 changed files with 52 additions and 7 deletions

View file

@ -0,0 +1,41 @@
# Flux Query Builder Docs
## Functions » addRangeFrom()
### Parameters:
<table>
<tbody>
<tr>
<th>Name</th>
<th>Required</th>
<th>Data type</th>
<th>Description</th>
</tr>
<tr>
<td>from</td>
<td>Yes</td>
<td>string</td>
<td>Relative duration.</td>
</tr>
</tbody>
</table>
### Example
```php
->addRangeFrom( '-1h' )
```
This will result in the following Flux function part:
```
|> range(
start: -1h
)
```
### Extra resources
* [Flux documentation](https://docs.influxdata.com/flux/v0.x/stdlib/universe/range/)