HTTPOutNode

Warning! This page documents an old version of Kapacitor, which is no longer actively developed. Kapacitor v1.3 is the most recent stable version of Kapacitor.

An HTTPOutNode caches the most recent data for each group it has received.

The cached data is available at the given endpoint. The endpoint is the relative path from the API endpoint of the running task. For example if the task endpoint is at "/api/v1/task/<task_name>" and endpoint is "top10", then the data can be requested from "/api/v1/task/<task_name>/top10".

Example:

    stream
        .window()
            .period(10s)
            .every(5s)
        .mapReduce(influxql.top('value', 10))
        //Publish the top 10 results over the last 10s updated every 5s.
        .httpOut('top10')