Skip to main content

Requete Flux de Donnees

Queries a real-time data stream. Allows retrieving the latest events from a specific stream.

Parameters

ParameterTypeRequiredVariableDescription
entityIddynamic valueNoYesEntity identifier to query real-time data for.
timeRangechoice (1h, 6h, 24h, 7d, 30d)NoNoTime window for the data to retrieve. (Default: "24h")
metricNamesarrayNoNoSpecific metric names to filter. Empty for all metrics.
aggregationchoice (none, avg, sum, min, max, count)NoNoAggregation function to apply on the data. (Default: "none")
bucketSizechoice (1m, 5m, 15m, 1h, 6h, 1d)NoNoBucket size for temporal aggregation (used when aggregation is not none). (Default: "1h")
limitnumberNoNoMaximum number of rows to return. (Default: 1000)
includeStatsbooleanNoNoInclude statistics (min, max, average, count) in the results. (Default: false)
outputVariabletextNoNoOutput variable name containing the stream data.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : streamResult

{
"entityId": "...",
"entityName": "...",
"timeRange": {},
"data": [],
"freshness": {},
"pagination": {}
}

Example

Retrieve the latest events from a stream.

Input :

{"query": "type:order AND status:pending"}

Output :

{"events": [{"id": "evt-1", "type": "order", "data": {}}], "count": 1}
Tip

Streams are fed by Live Data connectors. Use filters to target relevant events.