Skip to content

Commit 5b6418a

Browse files
authored
Fixing docs and tests for timeseries no-longer-snapshot functions (elastic#135395)
* Fixing docs and tests for timeseries no-longer-snapshot functions * regen rate.md
1 parent 1d222fa commit 5b6418a

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

docs/reference/query-languages/esql/_snippets/functions/description/rate.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/rate.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/docs/functions/rate.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Delta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class Delta extends TimeSeriesAggregateFunction implements OptionalArgume
4646
returnType = { "double" },
4747
description = "The absolute change of a gauge field in a time window.",
4848
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.UNAVAILABLE) },
49-
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command in snapshot builds"
49+
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command"
5050
)
5151
public Delta(Source source, @Param(name = "field", type = { "long", "integer", "double" }) Expression field) {
5252
this(source, field, new UnresolvedAttribute(source, "@timestamp"));

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Idelta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class Idelta extends TimeSeriesAggregateFunction implements OptionalArgum
4848
+ "it ignores all but the last two data points in each time period). "
4949
+ "This function is very similar to delta, but is more responsive to recent changes.",
5050
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.UNAVAILABLE) },
51-
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command in snapshot builds"
51+
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command"
5252
)
5353
public Idelta(Source source, @Param(name = "field", type = { "long", "integer", "double" }) Expression field) {
5454
this(source, field, new UnresolvedAttribute(source, "@timestamp"));

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Increase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class Increase extends TimeSeriesAggregateFunction implements OptionalArg
5151
returnType = { "double" },
5252
description = "The absolute increase of a counter field in a time window.",
5353
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.UNAVAILABLE) },
54-
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command in snapshot builds"
54+
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command"
5555
)
5656
public Increase(
5757
Source source,

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Irate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class Irate extends TimeSeriesAggregateFunction implements OptionalArgume
4848
+ "it ignores all but the last two data points in each time period). "
4949
+ "This function is very similar to rate, but is more responsive to recent changes in the rate of increase.",
5050
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.UNAVAILABLE) },
51-
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command in snapshot builds",
51+
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command",
5252
examples = { @Example(file = "k8s-timeseries", tag = "irate") }
5353
)
5454
public Irate(Source source, @Param(name = "field", type = { "counter_long", "counter_integer", "counter_double" }) Expression field) {

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Rate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class Rate extends TimeSeriesAggregateFunction implements OptionalArgumen
4646
returnType = { "double" },
4747
description = "The rate of a counter field.",
4848
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.UNAVAILABLE) },
49-
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command in snapshot builds",
49+
note = "Available with the [TS](/reference/query-languages/esql/commands/source-commands.md#esql-ts) command",
5050
examples = { @Example(file = "k8s-timeseries", tag = "rate") }
5151
)
5252
public Rate(Source source, @Param(name = "field", type = { "counter_long", "counter_integer", "counter_double" }) Expression field) {

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/60_usage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ setup:
241241

242242
# There's one of these per function but that's a ton of things to check. So we just spot check that a few exist.
243243
- not_exists: esql.functions.delay
244-
- not_exists: esql.functions.idelta
244+
- exists: esql.functions.idelta
245245
- exists: esql.functions.mv_sum
246246
- exists: esql.functions.to_dateperiod
247247

0 commit comments

Comments
 (0)