repeat

Repeats the result as many times as specified. It does not guarantee the iteration order. It may be repeated for each row, or it may be repeated for a set of records.

Syntax

repeat count=INT
Required Parameters
count=INT
Number of times to repeatedly return the result

Usage

  1. Return the latest 10 CPU usage rates 3 times

    table limit=10 sys_cpu_logs | repeat count=3
    
  2. Generate 100 arbitrary data points.

    json "{}" | repeat count=100
    | eval seq=seq() 
    | eval rand_value=rand(100)