Timestream.write
- Timestream.write(destination, mode=‘once’, results=None)
-
Execute the TimeStream writing to the given destination.
- Parameters:
-
destination (Destination)
The destination to write to.
mode (Literal[‘once’, ‘live’], default:
'once'
)The execution mode to use. Defaults to
'once'
to produce the resultsfrom the currently available data. Use
'live'
to start a standing querythat continues to process new data until stopped.
results (Optional[Union[History, Snapshot]], default:
None
)The results to produce. Defaults to
Histroy()
producing all points.
- Returns:
-
An
ExecutionProgress
which allows iterating (synchronously or asynchronously)over the progress information, as well as cancelling the query if it is no longer
needed.