Skip to content

Commit 1eaab44

Browse files
[ES|QL] Update function metadata (elastic#267376)
This PR updates the function definitions and inline docs based on the latest metadata from Elasticsearch.
1 parent fd19427 commit 1eaab44

5 files changed

Lines changed: 952 additions & 25 deletions

File tree

src/platform/packages/private/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,33 @@ export const functions = {
459459
},
460460
},
461461
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
462+
{
463+
label: i18n.translate('languageDocumentation.documentationESQL.sparkline', {
464+
defaultMessage: 'SPARKLINE',
465+
}),
466+
preview: true,
467+
license: undefined,
468+
description: {
469+
markdownContent: i18n.translate(
470+
'languageDocumentation.documentationESQL.sparkline.markdown',
471+
{
472+
defaultMessage: `
473+
### SPARKLINE
474+
The values representing the y-axis values of a sparkline graph for a given aggregation over a period of time.
475+
476+
\`\`\`esql
477+
FROM employees
478+
| STATS sparkline = SPARKLINE(COUNT(*), hire_date, 20, "1985-01-01T00:00:00Z", "1985-12-31T00:00:00Z")
479+
\`\`\`
480+
`,
481+
description:
482+
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
483+
ignoreTag: true,
484+
}
485+
),
486+
},
487+
},
488+
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
462489
{
463490
label: i18n.translate('languageDocumentation.documentationESQL.st_centroid_agg', {
464491
defaultMessage: 'ST_CENTROID_AGG',

src/platform/packages/shared/kbn-esql-language/src/commands/definitions/generated/aggregation_functions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4241,7 +4241,6 @@ const sparklineDefinition: FunctionDefinition = {
42414241
defaultMessage:
42424242
'The values representing the y-axis values of a sparkline graph for a given aggregation over a period of time.',
42434243
}),
4244-
ignoreAsSuggestion: true,
42454244
preview: true,
42464245
alias: undefined,
42474246
signatures: [

0 commit comments

Comments
 (0)