mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
🔧 Use the new Records field from Lens (#124276)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
54810f8b7c
commit
bb4509cf3b
6 changed files with 16 additions and 13 deletions
|
@ -544,7 +544,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Tx. last week',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
timeShift: '1w',
|
||||
},
|
||||
'ddc92e50-4d5c-413e-b91b-3e504889fa65': {
|
||||
|
@ -554,7 +554,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Transactions',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'eadae280-2da3-4d1d-a0e1-f9733f89c15b': {
|
||||
customLabel: true,
|
||||
|
@ -743,7 +743,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Count of records',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'9f61a7df-198e-4754-b34c-81ed544136ba': {
|
||||
dataType: 'string',
|
||||
|
@ -1070,7 +1070,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Items',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'd77cdd24-dedc-48dd-9a4b-d34c6f1a6c46': {
|
||||
customLabel: true,
|
||||
|
@ -1186,7 +1186,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Items',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'd77cdd24-dedc-48dd-9a4b-d34c6f1a6c46': {
|
||||
customLabel: true,
|
||||
|
|
|
@ -249,7 +249,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Part of count() / overall_sum(count())',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'b5f3dc78-dba8-4db8-87b6-24a0b9cca260X1': {
|
||||
customLabel: true,
|
||||
|
@ -258,7 +258,7 @@ export const getSavedObjects = (): SavedObject[] => [
|
|||
label: 'Part of count() / overall_sum(count())',
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: '___records___',
|
||||
},
|
||||
'b5f3dc78-dba8-4db8-87b6-24a0b9cca260X2': {
|
||||
customLabel: true,
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
"esUiShared",
|
||||
"fieldFormats",
|
||||
"uiActions",
|
||||
"lens",
|
||||
"cloud"
|
||||
],
|
||||
"owner": {
|
||||
|
|
|
@ -17,6 +17,7 @@ import type {
|
|||
TypedLensByValueInput,
|
||||
XYLayerConfig,
|
||||
} from '../../../../../../../lens/public';
|
||||
import { DOCUMENT_FIELD_NAME as RECORDS_FIELD } from '../../../../../../../lens/common/constants';
|
||||
import { FieldVisConfig } from '../../stats_table/types';
|
||||
import { JOB_FIELD_TYPES } from '../../../../../../common/constants';
|
||||
|
||||
|
@ -52,7 +53,7 @@ export function getNumberSettings(item: FieldVisConfig, defaultIndexPattern: Ind
|
|||
label: COUNT,
|
||||
dataType: 'number',
|
||||
isBucketed: false,
|
||||
sourceField: 'Records',
|
||||
sourceField: RECORDS_FIELD,
|
||||
operationType: 'count',
|
||||
},
|
||||
};
|
||||
|
@ -107,7 +108,7 @@ export function getDateSettings(item: FieldVisConfig) {
|
|||
label: COUNT,
|
||||
operationType: 'count',
|
||||
scale: 'ratio',
|
||||
sourceField: 'Records',
|
||||
sourceField: RECORDS_FIELD,
|
||||
},
|
||||
col1: {
|
||||
dataType: 'date',
|
||||
|
@ -148,7 +149,7 @@ export function getKeywordSettings(item: FieldVisConfig) {
|
|||
label: COUNT,
|
||||
dataType: 'number',
|
||||
isBucketed: false,
|
||||
sourceField: 'Records',
|
||||
sourceField: RECORDS_FIELD,
|
||||
operationType: 'count',
|
||||
},
|
||||
};
|
||||
|
@ -181,7 +182,7 @@ export function getBooleanSettings(item: FieldVisConfig) {
|
|||
label: COUNT,
|
||||
dataType: 'number',
|
||||
isBucketed: false,
|
||||
sourceField: 'Records',
|
||||
sourceField: RECORDS_FIELD,
|
||||
operationType: 'count',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"kibanaVersion": "kibana",
|
||||
"optionalPlugins": ["fleet", "home", "usageCollection", "lens"],
|
||||
"requiredBundles": ["esUiShared", "fleet", "kibanaUtils", "kibanaReact"],
|
||||
"requiredBundles": ["esUiShared", "fleet", "kibanaUtils", "kibanaReact", "lens"],
|
||||
"requiredPlugins": [
|
||||
"actions",
|
||||
"data",
|
||||
|
|
|
@ -30,6 +30,7 @@ import {
|
|||
PieVisualizationState,
|
||||
TermsIndexPatternColumn,
|
||||
} from '../../../lens/public';
|
||||
import { DOCUMENT_FIELD_NAME as RECORDS_FIELD } from '../../../lens/common/constants';
|
||||
import { FilterStateStore, DataView } from '../../../../../src/plugins/data/common';
|
||||
import { useKibana } from '../common/lib/kibana';
|
||||
import { OsqueryManagerPackagePolicyInputStream } from '../../common/types';
|
||||
|
@ -91,7 +92,7 @@ function getLensAttributes(
|
|||
},
|
||||
} as TermsIndexPatternColumn,
|
||||
'ed999e9d-204c-465b-897f-fe1a125b39ed': {
|
||||
sourceField: 'Records',
|
||||
sourceField: RECORDS_FIELD,
|
||||
isBucketed: false,
|
||||
dataType: 'number',
|
||||
scale: 'ratio',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue