|
@@ -0,0 +1,674 @@
|
|
|
+{
|
|
|
+ "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" : "count_distinct_over_time",
|
|
|
+ "description" : "The count of distinct values over time for a field.",
|
|
|
+ "note" : "Available with the TS command in snapshot builds",
|
|
|
+ "signatures" : [
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "boolean",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "boolean",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "boolean",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "boolean",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date_nanos",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date_nanos",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date_nanos",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "date_nanos",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "ip",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "ip",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "ip",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "ip",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "keyword",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "keyword",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "keyword",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "keyword",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "text",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "text",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "text",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "text",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "version",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "version",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "version",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "field",
|
|
|
+ "type" : "version",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : ""
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "precision",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : true,
|
|
|
+ "description" : "Precision threshold. Refer to <<esql-agg-count-distinct-approximate>>. The maximum supported value is 40000. Thresholds above this number will have the same effect as a threshold of 40000. The default value is 3000."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "long"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "examples" : [
|
|
|
+ "TS k8s\n| STATS distincts=count_distinct(count_distinct_over_time(network.cost)),\n distincts_imprecise=count_distinct(count_distinct_over_time(network.cost, 100))\n BY cluster, time_bucket = bucket(@timestamp,1minute)"
|
|
|
+ ],
|
|
|
+ "preview" : false,
|
|
|
+ "snapshot_only" : true
|
|
|
+}
|