{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "time_series_agg",
  "name" : "percentile_over_time",
  "description" : "Calculates the percentile over time of a field.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "field",
          "type" : "double",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "double",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "double",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "integer",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "double",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "long",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "exponential_histogram",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "double",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "exponential_histogram",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "integer",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "exponential_histogram",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "long",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "integer",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "double",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "integer",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "integer",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "integer",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "long",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "long",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "double",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "long",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "integer",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "long",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "long",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "tdigest",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "double",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "tdigest",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "integer",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "tdigest",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "percentile",
          "type" : "long",
          "optional" : false,
          "description" : "the percentile value to compute (between 0 and 100)"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    }
  ],
  "examples" : [
    "TS k8s\n| STATS p95_cost=MAX(PERCENTILE_OVER_TIME(network.cost, 95)), p99_cost=MAX(PERCENTILE_OVER_TIME(network.cost, 99)) BY cluster, time_bucket = TBUCKET(1minute)"
  ],
  "preview" : true,
  "snapshot_only" : false
}
