You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.
---------
Co-authored-by: Stratoula <[email protected]>
Copy file name to clipboardExpand all lines: src/platform/packages/private/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,8 @@ export const functions = {
137
137
### COUNT DISTINCT
138
138
Returns the approximate number of distinct values.
139
139
140
+
Note: [Counts are approximate](https://www.elastic.co/docs/reference/query-languages/esql/functions-operators/aggregation-functions#esql-agg-count-distinct-approximate).
Finds the k nearest vectors to a query vector, as measured by a similarity metric. knn function finds nearest vectors through approximate search on indexed dense_vectors or semantic_text fields.
1105
+
1106
+
\`\`\`esql
1107
+
from colors metadata _score
1108
+
| where knn(rgb_vector, [0, 120, 0])
1109
+
| sort _score desc, color asc
1110
+
\`\`\`
1111
+
`,
1112
+
description:
1113
+
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
1114
+
ignoreTag: true,
1115
+
})}
1116
+
/>
1117
+
),
1118
+
},
1119
+
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
Copy file name to clipboardExpand all lines: src/platform/packages/private/kbn-language-documentation/src/sections/generated/timeseries_aggregation_functions.tsx
Calculates the idelta of a gauge. idelta is the absolute change between the last two data points (it ignores all but the last two data points in each time period). This function is very similar to delta, but is more responsive to recent changes.
Calculates the irate of a counter field. irate is the per-second rate of increase between the last two data points (it ignores all but the last two data points in each time period). This function is very similar to rate, but is more responsive to recent changes in the rate of increase.
Calculates the per-second average rate of increase of a [counter](docs-content://manage-data/data-store/data-streams/time-series-data-stream-tsds.md#time-series-metric). Rate calculations account for breaks in monotonicity, such as counter resets when a service restarts, and extrapolate values within each bucketed time interval. Rate is the most appropriate aggregate function for counters. It is only allowed in a [STATS](https://www.elastic.co/docs/reference/query-languages/esql/commands/stats-by) command under a [\`TS\`](https://www.elastic.co/docs/reference/query-languages/esql/commands/ts) source command, to be properly applied per time series.
0 commit comments