[8.15] [ES|QL] Update function metadata (#187723) (#187729)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[ES|QL] Update function metadata
(#187723)](https://github.com/elastic/kibana/pull/187723)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kibana
Machine","email":"42973632+kibanamachine@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-07-08T07:58:05Z","message":"[ES|QL]
Update function metadata (#187723)\n\nThis PR updates the function
definitions and inline docs based on the\r\nlatest metadata from
Elasticsearch.","sha":"e320935594afa43a89447c8328e0cba5a1821bb3","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Team:ESQL","v8.15.0","v8.16.0"],"title":"[ES|QL]
Update function
metadata","number":187723,"url":"https://github.com/elastic/kibana/pull/187723","mergeCommit":{"message":"[ES|QL]
Update function metadata (#187723)\n\nThis PR updates the function
definitions and inline docs based on the\r\nlatest metadata from
Elasticsearch.","sha":"e320935594afa43a89447c8328e0cba5a1821bb3"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187723","number":187723,"mergeCommit":{"message":"[ES|QL]
Update function metadata (#187723)\n\nThis PR updates the function
definitions and inline docs based on the\r\nlatest metadata from
Elasticsearch.","sha":"e320935594afa43a89447c8328e0cba5a1821bb3"}}]}]
BACKPORT-->
This commit is contained in:
Kibana Machine 2024-07-08 11:56:37 +02:00 committed by GitHub
parent 445a9129d5
commit 63232f2a60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3755,26 +3755,26 @@ export const functions = {
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
{
label: i18n.translate(
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top_list',
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top',
{
defaultMessage: 'TOP_LIST',
defaultMessage: 'TOP',
}
),
description: (
<Markdown
markdownContent={i18n.translate(
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top_list.markdown',
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top.markdown',
{
defaultMessage: `<!--
This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
-->
### TOP_LIST
### TOP
Collects the top values for a field. Includes repeated values.
\`\`\`
FROM employees
| STATS top_salaries = TOP_LIST(salary, 3, "desc"), top_salary = MAX(salary)
| STATS top_salaries = TOP(salary, 3, "desc"), top_salary = MAX(salary)
\`\`\`
`,
description: