Advanced developers seeking to master speculative triggers, accumulation modes, and low-latency metrics dashboards.
Calculate continuous dashboard aggregations with dynamic triggers.
Save the following raw rows locally as \`dataset.csv\` to test your pipeline:
timestamp,metric_name,value
1719830400,cpu_util,45.2
1719830405,cpu_util,48.0
1719830412,cpu_util,55.1
1719830420,cpu_util,60.5Create a local file named \`starter.py\` and copy the following skeleton. Complete the missing transformations:
# starter.py - Real-Time Dashboard Pipeline
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
def run_pipeline():
options = PipelineOptions()
with beam.Pipeline(options=options) as p:
# TODO: Set sliding windows (600s length, 60s slide)
# TODO: Setup custom trigger logic
pass
if __name__ == "__main__":
run_pipeline()