Getting latest stream values

If your stream has Persist last known value set to True, you will be able to query the most recent datapoint on that stream, regardless of when it was ingested.

๐Ÿ“˜

You can configure the Persist last known value setting for any data stream in Formant by going to Settings >> Streams and clicking on the relevant stream.

You can see an example of how to query the last known value of a range of streams in the following example: GitHub: query_stream_latest.py.

In the file above, you'll see how to query the last known value of:

  • all streams which ingested data within a certain time range,
  • all streams matching a given name, and
  • all streams matching a given tag.

๐Ÿ‘‹

If you notice an issue with this page or need help, please reach out to us! Use the 'Did this page help you?' buttons below, or get in contact with our Customer Success team via the Intercom messenger in the bottom-right corner of this page, or at [email protected].