{
  "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" : "sum_over_time",
  "description" : "Calculates the sum over time value of a field.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "field",
          "type" : "aggregate_metric_double",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "double",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "exponential_histogram",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "integer",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "long"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "long",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "long"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "tdigest",
          "optional" : false,
          "description" : "the metric field to calculate the value for"
        },
        {
          "name" : "window",
          "type" : "time_duration",
          "optional" : true,
          "description" : "the time window over which to compute the sum over time"
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    }
  ],
  "examples" : [
    "TS k8s\n| STATS sum_cost=SUM(SUM_OVER_TIME(network.cost)) BY cluster, time_bucket = TBUCKET(1minute)"
  ],
  "preview" : true,
  "snapshot_only" : false
}
