mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Revert "removing kibana_datatable in favor of
datatable` (#75184)"
This reverts commit 255b865be8
.
This commit is contained in:
parent
5bf7966f10
commit
6eeab00944
143 changed files with 1099 additions and 708 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
```typescript
|
||||
data: {
|
||||
table: Datatable;
|
||||
table: KibanaDatatable;
|
||||
column: number;
|
||||
range: number[];
|
||||
timeFieldName?: string;
|
||||
|
|
|
@ -14,6 +14,6 @@ export interface RangeSelectContext<T extends IEmbeddable = IEmbeddable>
|
|||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [data](./kibana-plugin-plugins-embeddable-public.rangeselectcontext.data.md) | <code>{</code><br/><code> table: Datatable;</code><br/><code> column: number;</code><br/><code> range: number[];</code><br/><code> timeFieldName?: string;</code><br/><code> }</code> | |
|
||||
| [data](./kibana-plugin-plugins-embeddable-public.rangeselectcontext.data.md) | <code>{</code><br/><code> table: KibanaDatatable;</code><br/><code> column: number;</code><br/><code> range: number[];</code><br/><code> timeFieldName?: string;</code><br/><code> }</code> | |
|
||||
| [embeddable](./kibana-plugin-plugins-embeddable-public.rangeselectcontext.embeddable.md) | <code>T</code> | |
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
```typescript
|
||||
data: {
|
||||
data: Array<{
|
||||
table: Pick<Datatable, 'rows' | 'columns'>;
|
||||
table: Pick<KibanaDatatable, 'rows' | 'columns'>;
|
||||
column: number;
|
||||
row: number;
|
||||
value: any;
|
||||
|
|
|
@ -14,6 +14,6 @@ export interface ValueClickContext<T extends IEmbeddable = IEmbeddable>
|
|||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [data](./kibana-plugin-plugins-embeddable-public.valueclickcontext.data.md) | <code>{</code><br/><code> data: Array<{</code><br/><code> table: Pick<Datatable, 'rows' | 'columns'>;</code><br/><code> column: number;</code><br/><code> row: number;</code><br/><code> value: any;</code><br/><code> }>;</code><br/><code> timeFieldName?: string;</code><br/><code> negate?: boolean;</code><br/><code> }</code> | |
|
||||
| [data](./kibana-plugin-plugins-embeddable-public.valueclickcontext.data.md) | <code>{</code><br/><code> data: Array<{</code><br/><code> table: Pick<KibanaDatatable, 'rows' | 'columns'>;</code><br/><code> column: number;</code><br/><code> row: number;</code><br/><code> value: any;</code><br/><code> }>;</code><br/><code> timeFieldName?: string;</code><br/><code> negate?: boolean;</code><br/><code> }</code> | |
|
||||
| [embeddable](./kibana-plugin-plugins-embeddable-public.valueclickcontext.embeddable.md) | <code>T</code> | |
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
## DatatableColumnType type
|
||||
|
||||
This type represents the `type` of any `DatatableColumn` in a `Datatable`<!-- -->. its duplicated from KBN\_FIELD\_TYPES
|
||||
This type represents the `type` of any `DatatableColumn` in a `Datatable`<!-- -->.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare type DatatableColumnType = '_source' | 'attachment' | 'boolean' | 'date' | 'geo_point' | 'geo_shape' | 'ip' | 'murmur3' | 'number' | 'string' | 'unknown' | 'conflict' | 'object' | 'nested' | 'histogram' | 'null';
|
||||
export declare type DatatableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'null';
|
||||
```
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-public.kibanadatatable.md) > [columns](./kibana-plugin-plugins-expressions-public.kibanadatatable.columns.md)
|
||||
|
||||
## KibanaDatatable.columns property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
columns: KibanaDatatableColumn[];
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-public.kibanadatatable.md)
|
||||
|
||||
## KibanaDatatable interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatable
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [columns](./kibana-plugin-plugins-expressions-public.kibanadatatable.columns.md) | <code>KibanaDatatableColumn[]</code> | |
|
||||
| [rows](./kibana-plugin-plugins-expressions-public.kibanadatatable.rows.md) | <code>KibanaDatatableRow[]</code> | |
|
||||
| [type](./kibana-plugin-plugins-expressions-public.kibanadatatable.type.md) | <code>typeof name</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-public.kibanadatatable.md) > [rows](./kibana-plugin-plugins-expressions-public.kibanadatatable.rows.md)
|
||||
|
||||
## KibanaDatatable.rows property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
rows: KibanaDatatableRow[];
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-public.kibanadatatable.md) > [type](./kibana-plugin-plugins-expressions-public.kibanadatatable.type.md)
|
||||
|
||||
## KibanaDatatable.type property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
type: typeof name;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md) > [formatHint](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.formathint.md)
|
||||
|
||||
## KibanaDatatableColumn.formatHint property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
formatHint?: SerializedFieldFormat;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md) > [id](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.id.md)
|
||||
|
||||
## KibanaDatatableColumn.id property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
id: string;
|
||||
```
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md)
|
||||
|
||||
## KibanaDatatableColumn interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableColumn
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [formatHint](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.formathint.md) | <code>SerializedFieldFormat</code> | |
|
||||
| [id](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.id.md) | <code>string</code> | |
|
||||
| [meta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.meta.md) | <code>KibanaDatatableColumnMeta</code> | |
|
||||
| [name](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.name.md) | <code>string</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md) > [meta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.meta.md)
|
||||
|
||||
## KibanaDatatableColumn.meta property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
meta?: KibanaDatatableColumnMeta;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md) > [name](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.name.md)
|
||||
|
||||
## KibanaDatatableColumn.name property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.md) > [aggConfigParams](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.aggconfigparams.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.aggConfigParams property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
aggConfigParams?: Record<string, any>;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.md) > [indexPatternId](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.indexpatternid.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.indexPatternId property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
indexPatternId?: string;
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.md)
|
||||
|
||||
## KibanaDatatableColumnMeta interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableColumnMeta
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [aggConfigParams](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.aggconfigparams.md) | <code>Record<string, any></code> | |
|
||||
| [indexPatternId](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.indexpatternid.md) | <code>string</code> | |
|
||||
| [type](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.type.md) | <code>string</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.md) > [type](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.type.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.type property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
type: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [KibanaDatatableRow](./kibana-plugin-plugins-expressions-public.kibanadatatablerow.md)
|
||||
|
||||
## KibanaDatatableRow interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableRow
|
||||
```
|
|
@ -72,6 +72,10 @@
|
|||
| [IExpressionLoaderParams](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.md) | |
|
||||
| [IInterpreterRenderHandlers](./kibana-plugin-plugins-expressions-public.iinterpreterrenderhandlers.md) | |
|
||||
| [IRegistry](./kibana-plugin-plugins-expressions-public.iregistry.md) | |
|
||||
| [KibanaDatatable](./kibana-plugin-plugins-expressions-public.kibanadatatable.md) | |
|
||||
| [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumn.md) | |
|
||||
| [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-public.kibanadatatablecolumnmeta.md) | |
|
||||
| [KibanaDatatableRow](./kibana-plugin-plugins-expressions-public.kibanadatatablerow.md) | |
|
||||
| [PointSeriesColumn](./kibana-plugin-plugins-expressions-public.pointseriescolumn.md) | Column in a PointSeries |
|
||||
| [Range](./kibana-plugin-plugins-expressions-public.range.md) | |
|
||||
| [ReactExpressionRendererProps](./kibana-plugin-plugins-expressions-public.reactexpressionrendererprops.md) | |
|
||||
|
@ -91,7 +95,7 @@
|
|||
| [AnyExpressionFunctionDefinition](./kibana-plugin-plugins-expressions-public.anyexpressionfunctiondefinition.md) | Type to capture every possible expression function definition. |
|
||||
| [AnyExpressionTypeDefinition](./kibana-plugin-plugins-expressions-public.anyexpressiontypedefinition.md) | |
|
||||
| [ArgumentType](./kibana-plugin-plugins-expressions-public.argumenttype.md) | This type represents all of the possible combinations of properties of an Argument in an Expression Function. The presence or absence of certain fields influence the shape and presence of others within each <code>arg</code> in the specification. |
|
||||
| [DatatableColumnType](./kibana-plugin-plugins-expressions-public.datatablecolumntype.md) | This type represents the <code>type</code> of any <code>DatatableColumn</code> in a <code>Datatable</code>. its duplicated from KBN\_FIELD\_TYPES |
|
||||
| [DatatableColumnType](./kibana-plugin-plugins-expressions-public.datatablecolumntype.md) | This type represents the <code>type</code> of any <code>DatatableColumn</code> in a <code>Datatable</code>. |
|
||||
| [DatatableRow](./kibana-plugin-plugins-expressions-public.datatablerow.md) | This type represents a row in a <code>Datatable</code>. |
|
||||
| [ExecutionContainer](./kibana-plugin-plugins-expressions-public.executioncontainer.md) | |
|
||||
| [ExecutorContainer](./kibana-plugin-plugins-expressions-public.executorcontainer.md) | |
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
## DatatableColumnType type
|
||||
|
||||
This type represents the `type` of any `DatatableColumn` in a `Datatable`<!-- -->. its duplicated from KBN\_FIELD\_TYPES
|
||||
This type represents the `type` of any `DatatableColumn` in a `Datatable`<!-- -->.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare type DatatableColumnType = '_source' | 'attachment' | 'boolean' | 'date' | 'geo_point' | 'geo_shape' | 'ip' | 'murmur3' | 'number' | 'string' | 'unknown' | 'conflict' | 'object' | 'nested' | 'histogram' | 'null';
|
||||
export declare type DatatableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'null';
|
||||
```
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-server.kibanadatatable.md) > [columns](./kibana-plugin-plugins-expressions-server.kibanadatatable.columns.md)
|
||||
|
||||
## KibanaDatatable.columns property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
columns: KibanaDatatableColumn[];
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-server.kibanadatatable.md)
|
||||
|
||||
## KibanaDatatable interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatable
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [columns](./kibana-plugin-plugins-expressions-server.kibanadatatable.columns.md) | <code>KibanaDatatableColumn[]</code> | |
|
||||
| [rows](./kibana-plugin-plugins-expressions-server.kibanadatatable.rows.md) | <code>KibanaDatatableRow[]</code> | |
|
||||
| [type](./kibana-plugin-plugins-expressions-server.kibanadatatable.type.md) | <code>typeof name</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-server.kibanadatatable.md) > [rows](./kibana-plugin-plugins-expressions-server.kibanadatatable.rows.md)
|
||||
|
||||
## KibanaDatatable.rows property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
rows: KibanaDatatableRow[];
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatable](./kibana-plugin-plugins-expressions-server.kibanadatatable.md) > [type](./kibana-plugin-plugins-expressions-server.kibanadatatable.type.md)
|
||||
|
||||
## KibanaDatatable.type property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
type: typeof name;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md) > [formatHint](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.formathint.md)
|
||||
|
||||
## KibanaDatatableColumn.formatHint property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
formatHint?: SerializedFieldFormat;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md) > [id](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.id.md)
|
||||
|
||||
## KibanaDatatableColumn.id property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
id: string;
|
||||
```
|
|
@ -0,0 +1,21 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md)
|
||||
|
||||
## KibanaDatatableColumn interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableColumn
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [formatHint](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.formathint.md) | <code>SerializedFieldFormat</code> | |
|
||||
| [id](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.id.md) | <code>string</code> | |
|
||||
| [meta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.meta.md) | <code>KibanaDatatableColumnMeta</code> | |
|
||||
| [name](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.name.md) | <code>string</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md) > [meta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.meta.md)
|
||||
|
||||
## KibanaDatatableColumn.meta property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
meta?: KibanaDatatableColumnMeta;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md) > [name](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.name.md)
|
||||
|
||||
## KibanaDatatableColumn.name property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.md) > [aggConfigParams](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.aggconfigparams.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.aggConfigParams property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
aggConfigParams?: Record<string, any>;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.md) > [indexPatternId](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.indexpatternid.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.indexPatternId property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
indexPatternId?: string;
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.md)
|
||||
|
||||
## KibanaDatatableColumnMeta interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableColumnMeta
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [aggConfigParams](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.aggconfigparams.md) | <code>Record<string, any></code> | |
|
||||
| [indexPatternId](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.indexpatternid.md) | <code>string</code> | |
|
||||
| [type](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.type.md) | <code>string</code> | |
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.md) > [type](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.type.md)
|
||||
|
||||
## KibanaDatatableColumnMeta.type property
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
type: string;
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) > [KibanaDatatableRow](./kibana-plugin-plugins-expressions-server.kibanadatatablerow.md)
|
||||
|
||||
## KibanaDatatableRow interface
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export interface KibanaDatatableRow
|
||||
```
|
|
@ -63,6 +63,10 @@
|
|||
| [Font](./kibana-plugin-plugins-expressions-server.font.md) | An interface representing a font in Canvas, with a textual label and the CSS <code>font-value</code>. |
|
||||
| [IInterpreterRenderHandlers](./kibana-plugin-plugins-expressions-server.iinterpreterrenderhandlers.md) | |
|
||||
| [IRegistry](./kibana-plugin-plugins-expressions-server.iregistry.md) | |
|
||||
| [KibanaDatatable](./kibana-plugin-plugins-expressions-server.kibanadatatable.md) | |
|
||||
| [KibanaDatatableColumn](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumn.md) | |
|
||||
| [KibanaDatatableColumnMeta](./kibana-plugin-plugins-expressions-server.kibanadatatablecolumnmeta.md) | |
|
||||
| [KibanaDatatableRow](./kibana-plugin-plugins-expressions-server.kibanadatatablerow.md) | |
|
||||
| [PointSeriesColumn](./kibana-plugin-plugins-expressions-server.pointseriescolumn.md) | Column in a PointSeries |
|
||||
| [Range](./kibana-plugin-plugins-expressions-server.range.md) | |
|
||||
| [SerializedDatatable](./kibana-plugin-plugins-expressions-server.serializeddatatable.md) | |
|
||||
|
@ -75,7 +79,7 @@
|
|||
| [AnyExpressionFunctionDefinition](./kibana-plugin-plugins-expressions-server.anyexpressionfunctiondefinition.md) | Type to capture every possible expression function definition. |
|
||||
| [AnyExpressionTypeDefinition](./kibana-plugin-plugins-expressions-server.anyexpressiontypedefinition.md) | |
|
||||
| [ArgumentType](./kibana-plugin-plugins-expressions-server.argumenttype.md) | This type represents all of the possible combinations of properties of an Argument in an Expression Function. The presence or absence of certain fields influence the shape and presence of others within each <code>arg</code> in the specification. |
|
||||
| [DatatableColumnType](./kibana-plugin-plugins-expressions-server.datatablecolumntype.md) | This type represents the <code>type</code> of any <code>DatatableColumn</code> in a <code>Datatable</code>. its duplicated from KBN\_FIELD\_TYPES |
|
||||
| [DatatableColumnType](./kibana-plugin-plugins-expressions-server.datatablecolumntype.md) | This type represents the <code>type</code> of any <code>DatatableColumn</code> in a <code>Datatable</code>. |
|
||||
| [DatatableRow](./kibana-plugin-plugins-expressions-server.datatablerow.md) | This type represents a row in a <code>Datatable</code>. |
|
||||
| [ExecutionContainer](./kibana-plugin-plugins-expressions-server.executioncontainer.md) | |
|
||||
| [ExecutorContainer](./kibana-plugin-plugins-expressions-server.executorcontainer.md) | |
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
|
||||
import {
|
||||
KibanaContext,
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
ExpressionFunctionDefinition,
|
||||
} from '../../../../../plugins/expressions/common';
|
||||
|
||||
type Input = KibanaContext | null;
|
||||
type Output = Promise<Datatable>;
|
||||
type Output = Promise<KibanaDatatable>;
|
||||
|
||||
interface Arguments {
|
||||
index: string;
|
||||
|
|
|
@ -21,12 +21,7 @@ import moment from 'moment';
|
|||
|
||||
import { createFiltersFromRangeSelectAction } from './create_filters_from_range_select';
|
||||
|
||||
import {
|
||||
fieldFormats,
|
||||
FieldFormatsGetConfigFn,
|
||||
IndexPatternsContract,
|
||||
RangeFilter,
|
||||
} from '../../../public';
|
||||
import { IndexPatternsContract, RangeFilter } from '../../../public';
|
||||
import { dataPluginMock } from '../../../public/mocks';
|
||||
import { setIndexPatterns, setSearchService } from '../../../public/services';
|
||||
import { TriggerContextMapping } from '../../../../ui_actions/public';
|
||||
|
@ -36,30 +31,23 @@ describe('brushEvent', () => {
|
|||
const JAN_01_2014 = 1388559600000;
|
||||
let baseEvent: TriggerContextMapping['SELECT_RANGE_TRIGGER']['data'];
|
||||
|
||||
const mockField = {
|
||||
name: 'time',
|
||||
indexPattern: {
|
||||
id: 'logstash-*',
|
||||
},
|
||||
filterable: true,
|
||||
format: new fieldFormats.DateFormat({}, (() => {}) as FieldFormatsGetConfigFn),
|
||||
};
|
||||
|
||||
const indexPattern = {
|
||||
id: 'indexPatternId',
|
||||
timeFieldName: 'time',
|
||||
fields: {
|
||||
getByName: () => mockField,
|
||||
filter: () => [mockField],
|
||||
getByName: () => undefined,
|
||||
filter: () => [],
|
||||
},
|
||||
};
|
||||
|
||||
const serializedAggConfig = {
|
||||
type: 'date_histogram',
|
||||
params: {
|
||||
field: {},
|
||||
const aggConfigs = [
|
||||
{
|
||||
params: {
|
||||
field: {},
|
||||
},
|
||||
getIndexPattern: () => indexPattern,
|
||||
},
|
||||
};
|
||||
];
|
||||
|
||||
beforeEach(() => {
|
||||
const dataStart = dataPluginMock.createStartContract();
|
||||
|
@ -72,18 +60,15 @@ describe('brushEvent', () => {
|
|||
baseEvent = {
|
||||
column: 0,
|
||||
table: {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
columns: [
|
||||
{
|
||||
id: '1',
|
||||
name: '1',
|
||||
meta: {
|
||||
type: 'date',
|
||||
sourceParams: {
|
||||
indexPatternId: 'indexPatternId',
|
||||
...serializedAggConfig,
|
||||
},
|
||||
source: 'esaggs',
|
||||
type: 'histogram',
|
||||
indexPatternId: 'indexPatternId',
|
||||
aggConfigParams: aggConfigs[0].params,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@ -105,7 +90,7 @@ describe('brushEvent', () => {
|
|||
describe('handles an event when the x-axis field is a date field', () => {
|
||||
describe('date field is index pattern timefield', () => {
|
||||
beforeEach(() => {
|
||||
serializedAggConfig.params.field = {
|
||||
aggConfigs[0].params.field = {
|
||||
name: 'time',
|
||||
type: 'date',
|
||||
};
|
||||
|
@ -113,7 +98,7 @@ describe('brushEvent', () => {
|
|||
|
||||
afterAll(() => {
|
||||
baseEvent.range = [];
|
||||
serializedAggConfig.params.field = {};
|
||||
aggConfigs[0].params.field = {};
|
||||
});
|
||||
|
||||
test('by ignoring the event when range spans zero time', async () => {
|
||||
|
@ -138,7 +123,7 @@ describe('brushEvent', () => {
|
|||
|
||||
describe('date field is not index pattern timefield', () => {
|
||||
beforeEach(() => {
|
||||
serializedAggConfig.params.field = {
|
||||
aggConfigs[0].params.field = {
|
||||
name: 'anotherTimeField',
|
||||
type: 'date',
|
||||
};
|
||||
|
@ -146,7 +131,7 @@ describe('brushEvent', () => {
|
|||
|
||||
afterAll(() => {
|
||||
baseEvent.range = [];
|
||||
serializedAggConfig.params.field = {};
|
||||
aggConfigs[0].params.field = {};
|
||||
});
|
||||
|
||||
test('creates a new range filter', async () => {
|
||||
|
@ -172,7 +157,7 @@ describe('brushEvent', () => {
|
|||
|
||||
describe('handles an event when the x-axis field is a number', () => {
|
||||
beforeAll(() => {
|
||||
serializedAggConfig.params.field = {
|
||||
aggConfigs[0].params.field = {
|
||||
name: 'numberField',
|
||||
type: 'number',
|
||||
};
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
import { last } from 'lodash';
|
||||
import moment from 'moment';
|
||||
import { esFilters, IFieldType, RangeFilterParams } from '../../../public';
|
||||
import { getIndexPatterns, getSearchService } from '../../../public/services';
|
||||
import { RangeSelectContext } from '../../../../embeddable/public';
|
||||
import { AggConfigSerialized } from '../../../common/search/aggs';
|
||||
import { getIndexPatterns } from '../../../public/services';
|
||||
import { deserializeAggConfig } from '../../search/expressions/utils';
|
||||
import type { RangeSelectContext } from '../../../../embeddable/public';
|
||||
|
||||
export async function createFiltersFromRangeSelectAction(event: RangeSelectContext['data']) {
|
||||
const column: Record<string, any> = event.table.columns[event.column];
|
||||
|
@ -31,12 +31,11 @@ export async function createFiltersFromRangeSelectAction(event: RangeSelectConte
|
|||
return [];
|
||||
}
|
||||
|
||||
const { indexPatternId, ...aggConfigs } = column.meta.sourceParams;
|
||||
const indexPattern = await getIndexPatterns().get(indexPatternId);
|
||||
const aggConfigsInstance = getSearchService().aggs.createAggConfigs(indexPattern, [
|
||||
aggConfigs as AggConfigSerialized,
|
||||
]);
|
||||
const aggConfig = aggConfigsInstance.aggs[0];
|
||||
const indexPattern = await getIndexPatterns().get(column.meta.indexPatternId);
|
||||
const aggConfig = deserializeAggConfig({
|
||||
...column.meta,
|
||||
indexPattern,
|
||||
});
|
||||
const field: IFieldType = aggConfig.params.field;
|
||||
|
||||
if (!field || event.range.length <= 1) {
|
||||
|
|
|
@ -45,16 +45,12 @@ describe('createFiltersFromValueClick', () => {
|
|||
name: 'test',
|
||||
id: '1-1',
|
||||
meta: {
|
||||
type: 'date',
|
||||
source: 'esaggs',
|
||||
sourceParams: {
|
||||
indexPatternId: 'logstash-*',
|
||||
type: 'histogram',
|
||||
params: {
|
||||
field: 'bytes',
|
||||
interval: 30,
|
||||
otherBucket: true,
|
||||
},
|
||||
type: 'histogram',
|
||||
indexPatternId: 'logstash-*',
|
||||
aggConfigParams: {
|
||||
field: 'bytes',
|
||||
interval: 30,
|
||||
otherBucket: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -95,7 +91,9 @@ describe('createFiltersFromValueClick', () => {
|
|||
});
|
||||
|
||||
test('handles an event when aggregations type is a terms', async () => {
|
||||
(dataPoints[0].table.columns[0].meta.sourceParams as any).type = 'terms';
|
||||
if (dataPoints[0].table.columns[0].meta) {
|
||||
dataPoints[0].table.columns[0].meta.type = 'terms';
|
||||
}
|
||||
const filters = await createFiltersFromValueClickAction({ data: dataPoints });
|
||||
|
||||
expect(filters.length).toEqual(1);
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { Datatable } from '../../../../../plugins/expressions/public';
|
||||
import { KibanaDatatable } from '../../../../../plugins/expressions/public';
|
||||
import { deserializeAggConfig } from '../../search/expressions';
|
||||
import { esFilters, Filter } from '../../../public';
|
||||
import { getIndexPatterns, getSearchService } from '../../../public/services';
|
||||
import { ValueClickContext } from '../../../../embeddable/public';
|
||||
import { AggConfigSerialized } from '../../../common/search/aggs';
|
||||
import { getIndexPatterns } from '../../../public/services';
|
||||
import type { ValueClickContext } from '../../../../embeddable/public';
|
||||
|
||||
/**
|
||||
* For terms aggregations on `__other__` buckets, this assembles a list of applicable filter
|
||||
|
@ -33,7 +33,7 @@ import { AggConfigSerialized } from '../../../common/search/aggs';
|
|||
* @return {array} - array of terms to filter against
|
||||
*/
|
||||
const getOtherBucketFilterTerms = (
|
||||
table: Pick<Datatable, 'rows' | 'columns'>,
|
||||
table: Pick<KibanaDatatable, 'rows' | 'columns'>,
|
||||
columnIndex: number,
|
||||
rowIndex: number
|
||||
) => {
|
||||
|
@ -71,28 +71,22 @@ const getOtherBucketFilterTerms = (
|
|||
* @return {Filter[]|undefined} - list of filters to provide to queryFilter.addFilters()
|
||||
*/
|
||||
const createFilter = async (
|
||||
table: Pick<Datatable, 'rows' | 'columns'>,
|
||||
table: Pick<KibanaDatatable, 'rows' | 'columns'>,
|
||||
columnIndex: number,
|
||||
rowIndex: number
|
||||
) => {
|
||||
if (
|
||||
!table ||
|
||||
!table.columns ||
|
||||
!table.columns[columnIndex] ||
|
||||
!table.columns[columnIndex].meta ||
|
||||
table.columns[columnIndex].meta.source !== 'esaggs' ||
|
||||
!table.columns[columnIndex].meta.sourceParams?.indexPatternId
|
||||
) {
|
||||
if (!table || !table.columns || !table.columns[columnIndex]) {
|
||||
return;
|
||||
}
|
||||
const column = table.columns[columnIndex];
|
||||
const { indexPatternId, ...aggConfigParams } = table.columns[columnIndex].meta
|
||||
.sourceParams as any;
|
||||
const aggConfigsInstance = getSearchService().aggs.createAggConfigs(
|
||||
await getIndexPatterns().get(indexPatternId),
|
||||
[aggConfigParams as AggConfigSerialized]
|
||||
);
|
||||
const aggConfig = aggConfigsInstance.aggs[0];
|
||||
if (!column.meta || !column.meta.indexPatternId) {
|
||||
return;
|
||||
}
|
||||
const aggConfig = deserializeAggConfig({
|
||||
type: column.meta.type,
|
||||
aggConfigParams: column.meta.aggConfigParams ? column.meta.aggConfigParams : {},
|
||||
indexPattern: await getIndexPatterns().get(column.meta.indexPatternId),
|
||||
});
|
||||
let filter: Filter[] = [];
|
||||
const value: any = rowIndex > -1 ? table.rows[rowIndex][column.id] : null;
|
||||
if (value === null || value === undefined || !aggConfig.isFilterable()) {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import { get, hasIn } from 'lodash';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { Datatable, DatatableColumn } from 'src/plugins/expressions/public';
|
||||
import { KibanaDatatable, KibanaDatatableColumn } from 'src/plugins/expressions/public';
|
||||
import { PersistedState } from '../../../../../plugins/visualizations/public';
|
||||
import { Adapters } from '../../../../../plugins/inspector/public';
|
||||
|
||||
|
@ -49,6 +49,7 @@ import {
|
|||
getSearchService,
|
||||
} from '../../services';
|
||||
import { buildTabularInspectorData } from './build_tabular_inspector_data';
|
||||
import { serializeAggConfig } from './utils';
|
||||
|
||||
export interface RequestHandlerParams {
|
||||
searchSource: ISearchSource;
|
||||
|
@ -192,9 +193,11 @@ const handleCourierRequest = async ({
|
|||
: undefined,
|
||||
};
|
||||
|
||||
const response = tabifyAggResponse(aggs, (searchSource as any).finalResponse, tabifyParams);
|
||||
|
||||
(searchSource as any).tabifiedResponse = response;
|
||||
(searchSource as any).tabifiedResponse = tabifyAggResponse(
|
||||
aggs,
|
||||
(searchSource as any).finalResponse,
|
||||
tabifyParams
|
||||
);
|
||||
|
||||
inspectorAdapters.data.setTabularLoader(
|
||||
() =>
|
||||
|
@ -205,12 +208,12 @@ const handleCourierRequest = async ({
|
|||
{ returnsFormattedValues: true }
|
||||
);
|
||||
|
||||
return response;
|
||||
return (searchSource as any).tabifiedResponse;
|
||||
};
|
||||
|
||||
export const esaggs = (): EsaggsExpressionFunctionDefinition => ({
|
||||
name,
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
inputTypes: ['kibana_context', 'null'],
|
||||
help: i18n.translate('data.functions.esaggs.help', {
|
||||
defaultMessage: 'Run AggConfig aggregation',
|
||||
|
@ -276,25 +279,18 @@ export const esaggs = (): EsaggsExpressionFunctionDefinition => ({
|
|||
abortSignal: (abortSignal as unknown) as AbortSignal,
|
||||
});
|
||||
|
||||
const table: Datatable = {
|
||||
type: 'datatable',
|
||||
const table: KibanaDatatable = {
|
||||
type: 'kibana_datatable',
|
||||
rows: response.rows,
|
||||
columns: response.columns.map((column) => {
|
||||
const cleanedColumn: DatatableColumn = {
|
||||
columns: response.columns.map((column: any) => {
|
||||
const cleanedColumn: KibanaDatatableColumn = {
|
||||
id: column.id,
|
||||
name: column.name,
|
||||
meta: {
|
||||
type: column.aggConfig.params.field?.type || 'number',
|
||||
field: column.aggConfig.params.field?.name,
|
||||
index: indexPattern.title,
|
||||
params: column.aggConfig.toSerializedFieldFormat(),
|
||||
source: 'esaggs',
|
||||
sourceParams: {
|
||||
indexPatternId: indexPattern.id,
|
||||
...column.aggConfig.serialize(),
|
||||
},
|
||||
},
|
||||
meta: serializeAggConfig(column.aggConfig),
|
||||
};
|
||||
if (args.includeFormatHints) {
|
||||
cleanedColumn.formatHint = column.aggConfig.toSerializedFieldFormat();
|
||||
}
|
||||
return cleanedColumn;
|
||||
}),
|
||||
};
|
||||
|
|
|
@ -20,3 +20,4 @@
|
|||
export * from './esaggs';
|
||||
export * from './es_raw_response';
|
||||
export * from './esdsl';
|
||||
export * from './utils';
|
||||
|
|
20
src/plugins/data/public/search/expressions/utils/index.ts
Normal file
20
src/plugins/data/public/search/expressions/utils/index.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
export * from './serialize_agg_config';
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { KibanaDatatableColumnMeta } from '../../../../../../plugins/expressions/public';
|
||||
import { IAggConfig } from '../../../../common';
|
||||
import { IndexPattern } from '../../../index_patterns';
|
||||
import { getSearchService } from '../../../../public/services';
|
||||
|
||||
/** @internal */
|
||||
export const serializeAggConfig = (aggConfig: IAggConfig): KibanaDatatableColumnMeta => {
|
||||
return {
|
||||
type: aggConfig.type.name,
|
||||
indexPatternId: aggConfig.getIndexPattern().id,
|
||||
aggConfigParams: aggConfig.serialize().params,
|
||||
};
|
||||
};
|
||||
|
||||
interface DeserializeAggConfigParams {
|
||||
type: string;
|
||||
aggConfigParams: Record<string, any>;
|
||||
indexPattern: IndexPattern;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const deserializeAggConfig = ({
|
||||
type,
|
||||
aggConfigParams,
|
||||
indexPattern,
|
||||
}: DeserializeAggConfigParams) => {
|
||||
const { aggs } = getSearchService();
|
||||
const aggConfigs = aggs.createAggConfigs(indexPattern);
|
||||
const aggConfig = aggConfigs.createAggConfig({
|
||||
enabled: true,
|
||||
type,
|
||||
params: aggConfigParams,
|
||||
});
|
||||
return aggConfig;
|
||||
};
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { Datatable } from '../../../../expressions';
|
||||
import { KibanaDatatable } from '../../../../expressions';
|
||||
import { Trigger } from '../../../../ui_actions/public';
|
||||
import { IEmbeddable } from '..';
|
||||
|
||||
|
@ -29,7 +29,7 @@ export interface ValueClickContext<T extends IEmbeddable = IEmbeddable> {
|
|||
embeddable?: T;
|
||||
data: {
|
||||
data: Array<{
|
||||
table: Pick<Datatable, 'rows' | 'columns'>;
|
||||
table: Pick<KibanaDatatable, 'rows' | 'columns'>;
|
||||
column: number;
|
||||
row: number;
|
||||
value: any;
|
||||
|
@ -42,7 +42,7 @@ export interface ValueClickContext<T extends IEmbeddable = IEmbeddable> {
|
|||
export interface RangeSelectContext<T extends IEmbeddable = IEmbeddable> {
|
||||
embeddable?: T;
|
||||
data: {
|
||||
table: Datatable;
|
||||
table: KibanaDatatable;
|
||||
column: number;
|
||||
range: number[];
|
||||
timeFieldName?: string;
|
||||
|
|
|
@ -326,7 +326,7 @@ export abstract class Embeddable<TEmbeddableInput extends EmbeddableInput = Embe
|
|||
// Warning: (ae-missing-release-tag) "EmbeddableChildPanel" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
export class EmbeddableChildPanel extends React.Component<EmbeddableChildPanelProps, State_3> {
|
||||
export class EmbeddableChildPanel extends React.Component<EmbeddableChildPanelProps, State_2> {
|
||||
constructor(props: EmbeddableChildPanelProps);
|
||||
// (undocumented)
|
||||
[panel: string]: any;
|
||||
|
@ -477,7 +477,7 @@ export interface EmbeddablePackageState {
|
|||
// Warning: (ae-missing-release-tag) "EmbeddablePanel" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export class EmbeddablePanel extends React.Component<Props, State_4> {
|
||||
export class EmbeddablePanel extends React.Component<Props, State_3> {
|
||||
constructor(props: Props);
|
||||
// (undocumented)
|
||||
closeMyContextMenuPanel: () => void;
|
||||
|
@ -810,7 +810,7 @@ export interface PropertySpec {
|
|||
export interface RangeSelectContext<T extends IEmbeddable = IEmbeddable> {
|
||||
// (undocumented)
|
||||
data: {
|
||||
table: Datatable;
|
||||
table: KibanaDatatable;
|
||||
column: number;
|
||||
range: number[];
|
||||
timeFieldName?: string;
|
||||
|
@ -841,7 +841,7 @@ export interface ValueClickContext<T extends IEmbeddable = IEmbeddable> {
|
|||
// (undocumented)
|
||||
data: {
|
||||
data: Array<{
|
||||
table: Pick<Datatable, 'rows' | 'columns'>;
|
||||
table: Pick<KibanaDatatable, 'rows' | 'columns'>;
|
||||
column: number;
|
||||
row: number;
|
||||
value: any;
|
||||
|
@ -881,7 +881,7 @@ export const withEmbeddableSubscription: <I extends EmbeddableInput, O extends E
|
|||
// src/plugins/embeddable/common/types.ts:59:3 - (ae-forgotten-export) The symbol "TimeRange" needs to be exported by the entry point index.d.ts
|
||||
// src/plugins/embeddable/common/types.ts:64:3 - (ae-forgotten-export) The symbol "Query" needs to be exported by the entry point index.d.ts
|
||||
// src/plugins/embeddable/common/types.ts:69:3 - (ae-forgotten-export) The symbol "Filter" needs to be exported by the entry point index.d.ts
|
||||
// src/plugins/embeddable/public/lib/triggers/triggers.ts:45:5 - (ae-forgotten-export) The symbol "Datatable" needs to be exported by the entry point index.d.ts
|
||||
// src/plugins/embeddable/public/lib/triggers/triggers.ts:45:5 - (ae-forgotten-export) The symbol "KibanaDatatable" needs to be exported by the entry point index.d.ts
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import { map, pick, zipObject } from 'lodash';
|
|||
import { ExpressionTypeDefinition } from '../types';
|
||||
import { PointSeries, PointSeriesColumn } from './pointseries';
|
||||
import { ExpressionValueRender } from './render';
|
||||
import { SerializedFieldFormat } from '../../types';
|
||||
|
||||
type State = string | number | boolean | null | undefined | SerializableState;
|
||||
|
||||
|
@ -42,58 +41,22 @@ export const isDatatable = (datatable: unknown): datatable is Datatable =>
|
|||
|
||||
/**
|
||||
* This type represents the `type` of any `DatatableColumn` in a `Datatable`.
|
||||
* its duplicated from KBN_FIELD_TYPES
|
||||
*/
|
||||
export type DatatableColumnType =
|
||||
| '_source'
|
||||
| 'attachment'
|
||||
| 'boolean'
|
||||
| 'date'
|
||||
| 'geo_point'
|
||||
| 'geo_shape'
|
||||
| 'ip'
|
||||
| 'murmur3'
|
||||
| 'number'
|
||||
| 'string'
|
||||
| 'unknown'
|
||||
| 'conflict'
|
||||
| 'object'
|
||||
| 'nested'
|
||||
| 'histogram'
|
||||
| 'null';
|
||||
export type DatatableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'null';
|
||||
|
||||
/**
|
||||
* This type represents a row in a `Datatable`.
|
||||
*/
|
||||
export type DatatableRow = Record<string, any>;
|
||||
|
||||
/**
|
||||
* Datatable column meta information
|
||||
*/
|
||||
export interface DatatableColumnMeta {
|
||||
type: DatatableColumnType;
|
||||
/**
|
||||
* field this column is based on
|
||||
*/
|
||||
field?: string;
|
||||
/**
|
||||
* index/table this column is based on
|
||||
*/
|
||||
index?: string;
|
||||
/**
|
||||
* serialized field format
|
||||
*/
|
||||
params?: SerializedFieldFormat;
|
||||
/**
|
||||
* source function that produced this column
|
||||
*/
|
||||
params?: SerializableState;
|
||||
source?: string;
|
||||
/**
|
||||
* any extra parameters for the source that produced this column
|
||||
*/
|
||||
sourceParams?: SerializableState;
|
||||
}
|
||||
|
||||
/**
|
||||
* This type represents the shape of a column in a `Datatable`.
|
||||
*/
|
||||
|
|
|
@ -23,6 +23,7 @@ import { error } from './error';
|
|||
import { filter } from './filter';
|
||||
import { image } from './image';
|
||||
import { kibanaContext } from './kibana_context';
|
||||
import { kibanaDatatable } from './kibana_datatable';
|
||||
import { nullType } from './null';
|
||||
import { num } from './num';
|
||||
import { number } from './number';
|
||||
|
@ -41,6 +42,7 @@ export const typeSpecs: AnyExpressionTypeDefinition[] = [
|
|||
filter,
|
||||
image,
|
||||
kibanaContext,
|
||||
kibanaDatatable,
|
||||
nullType,
|
||||
num,
|
||||
number,
|
||||
|
@ -58,6 +60,7 @@ export * from './error';
|
|||
export * from './filter';
|
||||
export * from './image';
|
||||
export * from './kibana_context';
|
||||
export * from './kibana_datatable';
|
||||
export * from './null';
|
||||
export * from './num';
|
||||
export * from './number';
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { map } from 'lodash';
|
||||
import { SerializedFieldFormat } from '../../types/common';
|
||||
import { Datatable, PointSeries, PointSeriesColumn } from '.';
|
||||
|
||||
const name = 'kibana_datatable';
|
||||
|
||||
export interface KibanaDatatableColumnMeta {
|
||||
type: string;
|
||||
indexPatternId?: string;
|
||||
aggConfigParams?: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface KibanaDatatableColumn {
|
||||
id: string;
|
||||
name: string;
|
||||
meta?: KibanaDatatableColumnMeta;
|
||||
formatHint?: SerializedFieldFormat;
|
||||
}
|
||||
|
||||
export interface KibanaDatatableRow {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface KibanaDatatable {
|
||||
type: typeof name;
|
||||
columns: KibanaDatatableColumn[];
|
||||
rows: KibanaDatatableRow[];
|
||||
}
|
||||
|
||||
export const kibanaDatatable = {
|
||||
name,
|
||||
from: {
|
||||
datatable: (context: Datatable) => {
|
||||
return {
|
||||
type: name,
|
||||
rows: context.rows,
|
||||
columns: context.columns.map((column) => {
|
||||
return {
|
||||
id: column.name,
|
||||
name: column.name,
|
||||
};
|
||||
}),
|
||||
};
|
||||
},
|
||||
pointseries: (context: PointSeries) => {
|
||||
const columns = map(context.columns, (column: PointSeriesColumn, n) => {
|
||||
return { id: n, name: n, ...column };
|
||||
});
|
||||
return {
|
||||
type: name,
|
||||
rows: context.rows,
|
||||
columns,
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
|
@ -98,6 +98,10 @@ export {
|
|||
isExpressionAstBuilder,
|
||||
KIBANA_CONTEXT_NAME,
|
||||
KibanaContext,
|
||||
KibanaDatatable,
|
||||
KibanaDatatableColumn,
|
||||
KibanaDatatableColumnMeta,
|
||||
KibanaDatatableRow,
|
||||
KnownTypeToString,
|
||||
Overflow,
|
||||
parse,
|
||||
|
|
|
@ -82,7 +82,7 @@ export interface DatatableColumn {
|
|||
// Warning: (ae-missing-release-tag) "DatatableColumnType" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
export type DatatableColumnType = '_source' | 'attachment' | 'boolean' | 'date' | 'geo_point' | 'geo_shape' | 'ip' | 'murmur3' | 'number' | 'string' | 'unknown' | 'conflict' | 'object' | 'nested' | 'histogram' | 'null';
|
||||
export type DatatableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'null';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "DatatableRow" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
@ -942,6 +942,54 @@ export type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|||
// @public (undocumented)
|
||||
export type KibanaContext = ExpressionValueSearchContext;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatable {
|
||||
// (undocumented)
|
||||
columns: KibanaDatatableColumn[];
|
||||
// (undocumented)
|
||||
rows: KibanaDatatableRow[];
|
||||
// Warning: (ae-forgotten-export) The symbol "name" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
type: typeof name_3;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableColumn" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableColumn {
|
||||
// (undocumented)
|
||||
formatHint?: SerializedFieldFormat;
|
||||
// (undocumented)
|
||||
id: string;
|
||||
// (undocumented)
|
||||
meta?: KibanaDatatableColumnMeta;
|
||||
// (undocumented)
|
||||
name: string;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableColumnMeta" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableColumnMeta {
|
||||
// (undocumented)
|
||||
aggConfigParams?: Record<string, any>;
|
||||
// (undocumented)
|
||||
indexPatternId?: string;
|
||||
// (undocumented)
|
||||
type: string;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableRow" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableRow {
|
||||
// (undocumented)
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
|
@ -1025,7 +1073,7 @@ export interface Range {
|
|||
// Warning: (ae-forgotten-export) The symbol "name" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
type: typeof name_3;
|
||||
type: typeof name_4;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ReactExpressionRenderer" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
|
|
|
@ -89,6 +89,10 @@ export {
|
|||
isExpressionAstBuilder,
|
||||
KIBANA_CONTEXT_NAME,
|
||||
KibanaContext,
|
||||
KibanaDatatable,
|
||||
KibanaDatatableColumn,
|
||||
KibanaDatatableColumnMeta,
|
||||
KibanaDatatableRow,
|
||||
KnownTypeToString,
|
||||
Overflow,
|
||||
parse,
|
||||
|
|
|
@ -79,7 +79,7 @@ export interface DatatableColumn {
|
|||
// Warning: (ae-missing-release-tag) "DatatableColumnType" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
export type DatatableColumnType = '_source' | 'attachment' | 'boolean' | 'date' | 'geo_point' | 'geo_shape' | 'ip' | 'murmur3' | 'number' | 'string' | 'unknown' | 'conflict' | 'object' | 'nested' | 'histogram' | 'null';
|
||||
export type DatatableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'null';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "DatatableRow" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
@ -768,6 +768,54 @@ export type KIBANA_CONTEXT_NAME = 'kibana_context';
|
|||
// @public (undocumented)
|
||||
export type KibanaContext = ExpressionValueSearchContext;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatable {
|
||||
// (undocumented)
|
||||
columns: KibanaDatatableColumn[];
|
||||
// (undocumented)
|
||||
rows: KibanaDatatableRow[];
|
||||
// Warning: (ae-forgotten-export) The symbol "name" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
type: typeof name_3;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableColumn" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableColumn {
|
||||
// (undocumented)
|
||||
formatHint?: SerializedFieldFormat;
|
||||
// (undocumented)
|
||||
id: string;
|
||||
// (undocumented)
|
||||
meta?: KibanaDatatableColumnMeta;
|
||||
// (undocumented)
|
||||
name: string;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableColumnMeta" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableColumnMeta {
|
||||
// (undocumented)
|
||||
aggConfigParams?: Record<string, any>;
|
||||
// (undocumented)
|
||||
indexPatternId?: string;
|
||||
// (undocumented)
|
||||
type: string;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaDatatableRow" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export interface KibanaDatatableRow {
|
||||
// (undocumented)
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KnownTypeToString" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
|
@ -850,7 +898,7 @@ export interface Range {
|
|||
// Warning: (ae-forgotten-export) The symbol "name" needs to be exported by the entry point index.d.ts
|
||||
//
|
||||
// (undocumented)
|
||||
type: typeof name_3;
|
||||
type: typeof name_4;
|
||||
}
|
||||
|
||||
// Warning: (ae-missing-release-tag) "SerializedDatatable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Render } from '../../expressions/public';
|
||||
|
||||
interface Arguments {
|
||||
visConfig: string;
|
||||
|
@ -34,7 +34,7 @@ interface RenderValue {
|
|||
|
||||
export const createInputControlVisFn = (): ExpressionFunctionDefinition<
|
||||
'input_control_vis',
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Arguments,
|
||||
Render<RenderValue>
|
||||
> => ({
|
||||
|
|
|
@ -50,7 +50,7 @@ Object {
|
|||
"col-0-1": 0,
|
||||
},
|
||||
],
|
||||
"type": "datatable",
|
||||
"type": "kibana_datatable",
|
||||
},
|
||||
"visType": "region_map",
|
||||
},
|
||||
|
|
|
@ -23,7 +23,7 @@ export const createRegionMapFn = () => ({
|
|||
name: 'regionmap',
|
||||
type: 'render',
|
||||
context: {
|
||||
types: ['datatable'],
|
||||
types: ['kibana_datatable'],
|
||||
},
|
||||
help: i18n.translate('regionMap.function.help', {
|
||||
defaultMessage: 'Regionmap visualization',
|
||||
|
|
|
@ -24,7 +24,7 @@ import { createRegionMapFn } from './region_map_fn';
|
|||
describe('interpreter/functions#regionmap', () => {
|
||||
const fn = functionWrapper(createRegionMapFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -23,7 +23,7 @@ export const createTileMapFn = () => ({
|
|||
name: 'tilemap',
|
||||
type: 'render',
|
||||
context: {
|
||||
types: ['datatable'],
|
||||
types: ['kibana_datatable'],
|
||||
},
|
||||
help: i18n.translate('tileMap.function.help', {
|
||||
defaultMessage: 'Tilemap visualization',
|
||||
|
|
|
@ -73,19 +73,19 @@ export const createTileMapVisualization = (dependencies) => {
|
|||
};
|
||||
const bounds = this._kibanaMap.getBounds();
|
||||
const mapCollar = scaleBounds(bounds);
|
||||
if (!geoContains(geohashAgg.sourceParams.params.boundingBox, mapCollar)) {
|
||||
if (!geoContains(geohashAgg.aggConfigParams.boundingBox, mapCollar)) {
|
||||
updateVarsObject.data.boundingBox = {
|
||||
top_left: mapCollar.top_left,
|
||||
bottom_right: mapCollar.bottom_right,
|
||||
};
|
||||
} else {
|
||||
updateVarsObject.data.boundingBox = geohashAgg.sourceParams.params.boundingBox;
|
||||
updateVarsObject.data.boundingBox = geohashAgg.aggConfigParams.boundingBox;
|
||||
}
|
||||
// todo: autoPrecision should be vis parameter, not aggConfig one
|
||||
const zoomPrecision = getZoomPrecision();
|
||||
updateVarsObject.data.precision = geohashAgg.sourceParams.params.autoPrecision
|
||||
updateVarsObject.data.precision = geohashAgg.aggConfigParams.autoPrecision
|
||||
? zoomPrecision[this.vis.getUiState().get('mapZoom')]
|
||||
: getPrecision(geohashAgg.sourceParams.params.precision);
|
||||
: getPrecision(geohashAgg.aggConfigParams.precision);
|
||||
|
||||
this.vis.eventsSubject.next(updateVarsObject);
|
||||
};
|
||||
|
@ -118,8 +118,8 @@ export const createTileMapVisualization = (dependencies) => {
|
|||
return;
|
||||
}
|
||||
const isAutoPrecision =
|
||||
typeof geohashAgg.sourceParams.params.autoPrecision === 'boolean'
|
||||
? geohashAgg.sourceParams.params.autoPrecision
|
||||
typeof geohashAgg.aggConfigParams.autoPrecision === 'boolean'
|
||||
? geohashAgg.aggConfigParams.autoPrecision
|
||||
: true;
|
||||
if (!isAutoPrecision) {
|
||||
return;
|
||||
|
@ -243,7 +243,7 @@ export const createTileMapVisualization = (dependencies) => {
|
|||
}
|
||||
|
||||
const indexPatternName = agg.indexPatternId;
|
||||
const field = agg.field;
|
||||
const field = agg.aggConfigParams.field;
|
||||
const filter = { meta: { negate: false, index: indexPatternName } };
|
||||
filter[filterName] = { ignore_unmapped: true };
|
||||
filter[filterName][field] = filterData;
|
||||
|
@ -264,7 +264,7 @@ export const createTileMapVisualization = (dependencies) => {
|
|||
const DEFAULT = false;
|
||||
const agg = this._getGeoHashAgg();
|
||||
if (agg) {
|
||||
return get(agg, 'sourceParams.params.isFilteredByCollar', DEFAULT);
|
||||
return get(agg, 'aggConfigParams.isFilteredByCollar', DEFAULT);
|
||||
} else {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ import { convertToGeoJson } from '../../maps_legacy/public';
|
|||
describe('interpreter/functions#tilemap', () => {
|
||||
const fn = functionWrapper(createTileMapFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -36,7 +36,7 @@ export const markdownVisRenderer: ExpressionRenderDefinition<MarkdownVisRenderVa
|
|||
});
|
||||
|
||||
render(
|
||||
<VisualizationContainer className="markdownVis" handlers={handlers}>
|
||||
<VisualizationContainer className="markdownVis">
|
||||
<MarkdownVisComponent {...visParams} renderComplete={handlers.done} />
|
||||
</VisualizationContainer>,
|
||||
domNode
|
||||
|
|
|
@ -43,7 +43,7 @@ Object {
|
|||
"col-0-1": 0,
|
||||
},
|
||||
],
|
||||
"type": "datatable",
|
||||
"type": "kibana_datatable",
|
||||
},
|
||||
"visType": "metric",
|
||||
},
|
||||
|
|
|
@ -23,7 +23,7 @@ import { isColorDark } from '@elastic/eui';
|
|||
import { MetricVisValue } from './metric_vis_value';
|
||||
import { Input } from '../metric_vis_fn';
|
||||
import { FieldFormatsContentType, IFieldFormat } from '../../../data/public';
|
||||
import { Datatable } from '../../../expressions/public';
|
||||
import { KibanaDatatable } from '../../../expressions/public';
|
||||
import { getHeatmapColors } from '../../../charts/public';
|
||||
import { VisParams, MetricVisMetric } from '../types';
|
||||
import { getFormatService } from '../services';
|
||||
|
@ -109,7 +109,7 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
|
|||
return fieldFormatter.convert(value, format);
|
||||
};
|
||||
|
||||
private processTableGroups(table: Datatable) {
|
||||
private processTableGroups(table: KibanaDatatable) {
|
||||
const config = this.props.visParams.metric;
|
||||
const dimensions = this.props.visParams.dimensions;
|
||||
const isPercentageMode = config.percentageMode;
|
||||
|
|
|
@ -23,7 +23,7 @@ import { functionWrapper } from '../../expressions/common/expression_functions/s
|
|||
describe('interpreter/functions#metric', () => {
|
||||
const fn = functionWrapper(createMetricVisFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
import {
|
||||
ExpressionFunctionDefinition,
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Range,
|
||||
Render,
|
||||
Style,
|
||||
|
@ -29,7 +29,7 @@ import {
|
|||
import { visType, DimensionsVisParam, VisParams } from './types';
|
||||
import { ColorSchemas, vislibColorMaps, ColorModes } from '../../charts/public';
|
||||
|
||||
export type Input = Datatable;
|
||||
export type Input = KibanaDatatable;
|
||||
|
||||
interface Arguments {
|
||||
percentageMode: boolean;
|
||||
|
@ -63,7 +63,7 @@ export type MetricVisExpressionFunctionDefinition = ExpressionFunctionDefinition
|
|||
export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
|
||||
name: 'metricVis',
|
||||
type: 'render',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
help: i18n.translate('visTypeMetric.function.help', {
|
||||
defaultMessage: 'Metric visualization',
|
||||
}),
|
||||
|
|
|
@ -36,11 +36,7 @@ export const metricVisRenderer: () => ExpressionRenderDefinition<MetricVisRender
|
|||
});
|
||||
|
||||
render(
|
||||
<VisualizationContainer
|
||||
className="mtrVis"
|
||||
showNoResult={!visData.rows?.length}
|
||||
handlers={handlers}
|
||||
>
|
||||
<VisualizationContainer className="mtrVis" showNoResult={!visData.rows?.length}>
|
||||
<MetricVisComponent
|
||||
visData={visData}
|
||||
visParams={visConfig}
|
||||
|
|
|
@ -31,7 +31,7 @@ jest.mock('./table_vis_response_handler', () => ({
|
|||
describe('interpreter/functions#table', () => {
|
||||
const fn = functionWrapper(createTableVisFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { tableVisResponseHandler, TableContext } from './table_vis_response_handler';
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Render } from '../../expressions/public';
|
||||
import { TableVisConfig } from './types';
|
||||
|
||||
export type Input = Datatable;
|
||||
export type Input = KibanaDatatable;
|
||||
|
||||
interface Arguments {
|
||||
visConfig: string | null;
|
||||
|
@ -44,7 +44,7 @@ export type TableExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
|||
export const createTableVisFn = (): TableExpressionFunctionDefinition => ({
|
||||
name: 'kibana_table',
|
||||
type: 'render',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
help: i18n.translate('visTypeTable.function.help', {
|
||||
defaultMessage: 'Table visualization',
|
||||
}),
|
||||
|
|
|
@ -17,7 +17,7 @@ Object {
|
|||
"col-0-1": 0,
|
||||
},
|
||||
],
|
||||
"type": "datatable",
|
||||
"type": "kibana_datatable",
|
||||
},
|
||||
"visParams": Object {
|
||||
"maxFontSize": 72,
|
||||
|
|
|
@ -24,7 +24,7 @@ import { functionWrapper } from '../../expressions/common/expression_functions/s
|
|||
describe('interpreter/functions#tagcloud', () => {
|
||||
const fn = functionWrapper(createTagCloudFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Render } from '../../expressions/public';
|
||||
import { TagCloudVisParams } from './types';
|
||||
|
||||
const name = 'tagcloud';
|
||||
|
@ -31,13 +31,13 @@ interface Arguments extends TagCloudVisParams {
|
|||
|
||||
export interface TagCloudVisRenderValue {
|
||||
visType: typeof name;
|
||||
visData: Datatable;
|
||||
visData: KibanaDatatable;
|
||||
visParams: Arguments;
|
||||
}
|
||||
|
||||
export type TagcloudExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
||||
typeof name,
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Arguments,
|
||||
Render<TagCloudVisRenderValue>
|
||||
>;
|
||||
|
@ -45,7 +45,7 @@ export type TagcloudExpressionFunctionDefinition = ExpressionFunctionDefinition<
|
|||
export const createTagCloudFn = (): TagcloudExpressionFunctionDefinition => ({
|
||||
name,
|
||||
type: 'render',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
help: i18n.translate('visTypeTagCloud.function.help', {
|
||||
defaultMessage: 'Tagcloud visualization',
|
||||
}),
|
||||
|
|
|
@ -39,7 +39,7 @@ export const getTagCloudVisRenderer: (
|
|||
});
|
||||
|
||||
render(
|
||||
<VisualizationContainer handlers={handlers}>
|
||||
<VisualizationContainer>
|
||||
<TagCloudChart
|
||||
{...config}
|
||||
colors={colors}
|
||||
|
|
|
@ -49,7 +49,7 @@ export const getTimelionVisRenderer: (
|
|||
}
|
||||
|
||||
render(
|
||||
<VisualizationContainer handlers={handlers} showNoResult={showNoResult}>
|
||||
<VisualizationContainer showNoResult={showNoResult}>
|
||||
<KibanaContextProvider services={{ ...deps }}>
|
||||
<TimelionVisComponent
|
||||
interval={visParams.interval}
|
||||
|
|
|
@ -42,7 +42,7 @@ jest.mock('./vislib/response_handler', () => ({
|
|||
describe('interpreter/functions#pie', () => {
|
||||
const fn = functionWrapper(createPieVisFn());
|
||||
const context = {
|
||||
type: 'datatable',
|
||||
type: 'kibana_datatable',
|
||||
rows: [{ 'col-0-1': 0 }],
|
||||
columns: [{ id: 'col-0-1', name: 'Count' }],
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Render } from '../../expressions/public';
|
||||
// @ts-ignore
|
||||
import { vislibSlicesResponseHandler } from './vislib/response_handler';
|
||||
|
||||
|
@ -34,13 +34,13 @@ interface RenderValue {
|
|||
|
||||
export const createPieVisFn = (): ExpressionFunctionDefinition<
|
||||
'kibana_pie',
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Arguments,
|
||||
Render<RenderValue>
|
||||
> => ({
|
||||
name: 'kibana_pie',
|
||||
type: 'render',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
help: i18n.translate('visTypeVislib.functions.pie.help', {
|
||||
defaultMessage: 'Pie visualization',
|
||||
}),
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { ExpressionFunctionDefinition, Datatable, Render } from '../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Render } from '../../expressions/public';
|
||||
// @ts-ignore
|
||||
import { vislibSeriesResponseHandler } from './vislib/response_handler';
|
||||
|
||||
|
@ -36,13 +36,13 @@ interface RenderValue {
|
|||
|
||||
export const createVisTypeVislibVisFn = (): ExpressionFunctionDefinition<
|
||||
'vislib',
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Arguments,
|
||||
Render<RenderValue>
|
||||
> => ({
|
||||
name: 'vislib',
|
||||
type: 'render',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
help: i18n.translate('visTypeVislib.functions.vislib.help', {
|
||||
defaultMessage: 'Vislib visualization',
|
||||
}),
|
||||
|
|
|
@ -21,19 +21,16 @@ import React, { ReactNode, Suspense } from 'react';
|
|||
import { EuiLoadingChart } from '@elastic/eui';
|
||||
import classNames from 'classnames';
|
||||
import { VisualizationNoResults } from './visualization_noresults';
|
||||
import { IInterpreterRenderHandlers } from '../../../expressions/common';
|
||||
|
||||
interface VisualizationContainerProps {
|
||||
className?: string;
|
||||
children: ReactNode;
|
||||
handlers: IInterpreterRenderHandlers;
|
||||
showNoResult?: boolean;
|
||||
}
|
||||
|
||||
export const VisualizationContainer = ({
|
||||
className,
|
||||
children,
|
||||
handlers,
|
||||
showNoResult = false,
|
||||
}: VisualizationContainerProps) => {
|
||||
const classes = classNames('visualization', className);
|
||||
|
@ -47,7 +44,7 @@ export const VisualizationContainer = ({
|
|||
return (
|
||||
<div className={classes}>
|
||||
<Suspense fallback={fallBack}>
|
||||
{showNoResult ? <VisualizationNoResults onInit={() => handlers.done()} /> : children}
|
||||
{showNoResult ? <VisualizationNoResults /> : children}
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { ExpressionFunctionDefinition, Datatable, Range } from '../../../expressions/public';
|
||||
import { ExpressionFunctionDefinition, KibanaDatatable, Range } from '../../../expressions/public';
|
||||
|
||||
interface Arguments {
|
||||
from: number;
|
||||
|
@ -27,7 +27,7 @@ interface Arguments {
|
|||
|
||||
export const range = (): ExpressionFunctionDefinition<
|
||||
'range',
|
||||
Datatable | null,
|
||||
KibanaDatatable | null,
|
||||
Arguments,
|
||||
Range
|
||||
> => ({
|
||||
|
|
|
@ -21,8 +21,8 @@ import { i18n } from '@kbn/i18n';
|
|||
import {
|
||||
ExpressionFunctionDefinition,
|
||||
ExpressionValueBoxed,
|
||||
Datatable,
|
||||
DatatableColumn,
|
||||
KibanaDatatable,
|
||||
KibanaDatatableColumn,
|
||||
} from '../../../expressions/public';
|
||||
|
||||
interface Arguments {
|
||||
|
@ -34,7 +34,7 @@ interface Arguments {
|
|||
type ExpressionValueVisDimension = ExpressionValueBoxed<
|
||||
'vis_dimension',
|
||||
{
|
||||
accessor: number | DatatableColumn;
|
||||
accessor: number | KibanaDatatableColumn;
|
||||
format: {
|
||||
id?: string;
|
||||
params: unknown;
|
||||
|
@ -44,7 +44,7 @@ type ExpressionValueVisDimension = ExpressionValueBoxed<
|
|||
|
||||
export const visDimension = (): ExpressionFunctionDefinition<
|
||||
'visdimension',
|
||||
Datatable,
|
||||
KibanaDatatable,
|
||||
Arguments,
|
||||
ExpressionValueVisDimension
|
||||
> => ({
|
||||
|
@ -53,7 +53,7 @@ export const visDimension = (): ExpressionFunctionDefinition<
|
|||
defaultMessage: 'Generates visConfig dimension object',
|
||||
}),
|
||||
type: 'vis_dimension',
|
||||
inputTypes: ['datatable'],
|
||||
inputTypes: ['kibana_datatable'],
|
||||
args: {
|
||||
accessor: {
|
||||
types: ['string', 'number'],
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"}
|
||||
{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":2,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":{"parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":2,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"},{"id":"col-2-1","meta":{"aggConfigParams":{"field":"bytes"},"indexPatternId":"logstash-*","type":"max"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[],"meta":{},"rows":[],"type":"datatable"},"visType":"metric"}}
|
||||
"[metricVis] > [visdimension] > Can not cast 'null' to any of 'kibana_datatable'"
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":{"parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"},{"id":"col-2-1","meta":{"aggConfigParams":{"field":"bytes"},"indexPatternId":"logstash-*","type":"max"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":1000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":true,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":{"parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":1000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":true,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"},{"id":"col-2-1","meta":{"aggConfigParams":{"field":"bytes"},"indexPatternId":"logstash-*","type":"max"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":{"parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"},{"id":"col-2-1","meta":{"aggConfigParams":{"field":"bytes"},"indexPatternId":"logstash-*","type":"max"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visParams":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
||||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visParams":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"visualization","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"bucket":{"accessor":0},"metric":{"accessor":1,"format":{"id":"number"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"region_map"}}
|
||||
{"as":"visualization","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"bucket":{"accessor":0},"metric":{"accessor":1,"format":{"id":"number"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"region_map"}}
|
|
@ -1 +1 @@
|
|||
{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"}
|
||||
{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
||||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":40,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":20,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
||||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":40,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":20,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[],"meta":{},"rows":[],"type":"datatable"},"visParams":{"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
||||
"[tagcloud] > [visdimension] > Can not cast 'null' to any of 'kibana_datatable'"
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visParams":{"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
||||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visParams":{"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"single","scale":"linear","showLabel":true},"visType":"tagcloud"}}
|
|
@ -1 +1 @@
|
|||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"multiple","scale":"log","showLabel":true},"visType":"tagcloud"}}
|
||||
{"as":"tagloud_vis","type":"render","value":{"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visParams":{"bucket":{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"},"maxFontSize":72,"metric":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"minFontSize":18,"orientation":"multiple","scale":"log","showLabel":true},"visType":"tagcloud"}}
|
|
@ -1 +1 @@
|
|||
{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:5620","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"}
|
||||
{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"}
|
|
@ -1 +1 @@
|
|||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:5620","pathname":"/app/management"}}},"source":"esaggs","sourceParams":{"enabled":true,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}}
|
||||
{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue