-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…91112) * [Timelion] Communicate the index pattern to the dashboard Closes #86418 * update types / limits.yml * Update timelion_vis_type.tsx * fix typo * remove extra await Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # packages/kbn-optimizer/limits.yml
- Loading branch information
Showing
9 changed files
with
102 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
// @ts-ignore | ||
import { parse } from './_generated_/chain'; | ||
|
||
export interface ExpressionLocation { | ||
min: number; | ||
max: number; | ||
} | ||
|
||
interface ExpressionItem { | ||
name: string; | ||
function: string; | ||
location: ExpressionLocation; | ||
text: string; | ||
type: string; | ||
} | ||
|
||
export interface TimelionExpressionArgument extends ExpressionItem { | ||
value: { | ||
location: ExpressionLocation; | ||
type: string; | ||
value: string; | ||
text: string; | ||
}; | ||
} | ||
|
||
export interface TimelionExpressionFunction extends ExpressionItem { | ||
arguments: TimelionExpressionArgument[]; | ||
} | ||
|
||
export interface TimelionExpressionChain { | ||
chain: TimelionExpressionFunction[]; | ||
type: 'chain'; | ||
} | ||
|
||
export interface ParsedExpression { | ||
args: TimelionExpressionArgument[]; | ||
functions: TimelionExpressionFunction[]; | ||
tree: TimelionExpressionChain[]; | ||
variables: Record<string, any>; | ||
} | ||
|
||
export const parseTimelionExpression = (input: string): ParsedExpression => parse(input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters