[MetricVis] Move the expression function and renderer to a separate plugin. (#113427) (#114384)

* Added expressionMetricVis plugin.

* splitted metric vis_type and expression.

* Fixed check errors.

* Fixed plugin docs.

* updated snapshots.

* Added code owner to expressionMetricVis.

* updated chart docs.

* Changed the `Metric` type export.

* Added storybook.

* Added bucket story.

* Added without label story.

* Added "with custom font size" story.

* Added other stories.

* Added DatatableColumn accessors.

* Replaced Metric with MetricOptions.

* Fixed MetricOptions.any

* updated the check of min/max existence.

* Updated function/renderer names.

metricRenderer -> metricVisRenderer
metricFunction -> metricVisFunction

* updated snapshot.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js
#	src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js
This commit is contained in:
Yaroslav Kuznietsov 2021-10-08 11:28:29 +03:00 committed by GitHub
parent 0fd4aeae93
commit 0058764851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 875 additions and 257 deletions

View file

@ -30,6 +30,7 @@
"expressionRevealImage": "src/plugins/expression_reveal_image",
"expressionShape": "src/plugins/expression_shape",
"expressionTagcloud": "src/plugins/chart_expressions/expression_tagcloud",
"expressionMetricVis": "src/plugins/chart_expressions/expression_metric",
"inputControl": "src/plugins/input_control_vis",
"inspector": "src/plugins/inspector",
"inspectorViews": "src/legacy/core_plugins/inspector_views",

View file

@ -478,7 +478,7 @@
"signature": [
"(value: any, colorSchemaName: string) => string"
],
"path": "src/plugins/charts/public/static/color_maps/heatmap_color.ts",
"path": "src/plugins/charts/common/static/color_maps/heatmap_color.ts",
"deprecated": false,
"children": [
{
@ -491,7 +491,7 @@
"signature": [
"any"
],
"path": "src/plugins/charts/public/static/color_maps/heatmap_color.ts",
"path": "src/plugins/charts/common/static/color_maps/heatmap_color.ts",
"deprecated": false,
"isRequired": true
},
@ -505,7 +505,7 @@
"signature": [
"string"
],
"path": "src/plugins/charts/public/static/color_maps/heatmap_color.ts",
"path": "src/plugins/charts/common/static/color_maps/heatmap_color.ts",
"deprecated": false,
"isRequired": true
}
@ -936,7 +936,7 @@
"tags": [],
"label": "ColorMap",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -949,7 +949,7 @@
"signature": [
"any"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
],
@ -962,7 +962,7 @@
"tags": [],
"label": "ColorSchema",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -981,7 +981,7 @@
"text": "ColorSchemas"
}
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -991,7 +991,7 @@
"tags": [],
"label": "text",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
],
@ -1817,7 +1817,7 @@
"tags": [],
"label": "RawColorSchema",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -1836,7 +1836,7 @@
"text": "ColorSchemas"
}
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -1846,7 +1846,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -1859,7 +1859,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
],
@ -2011,7 +2011,7 @@
"tags": [],
"label": "ColorSchemas",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"initialIsOpen": false
}
@ -2027,7 +2027,7 @@
"signature": [
"\"Background\" | \"Labels\" | \"None\""
],
"path": "src/plugins/charts/public/static/components/collections.ts",
"path": "src/plugins/charts/common/static/components/collections.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2048,7 +2048,7 @@
},
"[]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2059,7 +2059,7 @@
"tags": [],
"label": "defaultCountLabel",
"description": [],
"path": "src/plugins/charts/public/static/components/collections.ts",
"path": "src/plugins/charts/common/static/components/collections.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2073,7 +2073,7 @@
"signature": [
"number"
],
"path": "src/plugins/charts/public/static/components/collections.ts",
"path": "src/plugins/charts/common/static/components/collections.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2124,7 +2124,7 @@
},
"[]"
],
"path": "src/plugins/charts/public/static/color_maps/truncated_color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/truncated_color_maps.ts",
"deprecated": false,
"initialIsOpen": false
}
@ -2140,7 +2140,7 @@
"signature": [
"{ readonly Background: \"Background\"; readonly Labels: \"Labels\"; readonly None: \"None\"; }"
],
"path": "src/plugins/charts/public/static/components/collections.ts",
"path": "src/plugins/charts/common/static/components/collections.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2154,7 +2154,7 @@
"signature": [
"{ readonly Horizontal: number; readonly Vertical: number; readonly Angled: number; }"
],
"path": "src/plugins/charts/public/static/components/collections.ts",
"path": "src/plugins/charts/common/static/components/collections.ts",
"deprecated": false,
"initialIsOpen": false
},
@ -2165,7 +2165,7 @@
"tags": [],
"label": "truncatedColorMaps",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/truncated_color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/truncated_color_maps.ts",
"deprecated": false,
"children": [],
"initialIsOpen": false
@ -2177,7 +2177,7 @@
"tags": [],
"label": "vislibColorMaps",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2189,7 +2189,7 @@
"description": [
"// Sequential"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2209,7 +2209,7 @@
},
".Blues"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2219,7 +2219,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2232,7 +2232,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]
@ -2244,7 +2244,7 @@
"tags": [],
"label": "[ColorSchemas.Greens]",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2264,7 +2264,7 @@
},
".Greens"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2274,7 +2274,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2287,7 +2287,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]
@ -2299,7 +2299,7 @@
"tags": [],
"label": "[ColorSchemas.Greys]",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2319,7 +2319,7 @@
},
".Greys"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2329,7 +2329,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2342,7 +2342,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]
@ -2354,7 +2354,7 @@
"tags": [],
"label": "[ColorSchemas.Reds]",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2374,7 +2374,7 @@
},
".Reds"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2384,7 +2384,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2397,7 +2397,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]
@ -2409,7 +2409,7 @@
"tags": [],
"label": "[ColorSchemas.YellowToRed]",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2429,7 +2429,7 @@
},
".YellowToRed"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2439,7 +2439,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2452,7 +2452,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]
@ -2464,7 +2464,7 @@
"tags": [],
"label": "[ColorSchemas.GreenToRed]",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false,
"children": [
{
@ -2484,7 +2484,7 @@
},
".GreenToRed"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2494,7 +2494,7 @@
"tags": [],
"label": "label",
"description": [],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
},
{
@ -2507,7 +2507,7 @@
"signature": [
"[number, number[]][]"
],
"path": "src/plugins/charts/public/static/color_maps/color_maps.ts",
"path": "src/plugins/charts/common/static/color_maps/color_maps.ts",
"deprecated": false
}
]

View file

@ -92,6 +92,10 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a
|Expression Metric plugin adds a metric renderer and function to the expression plugin.
|{kib-repo}blob/{branch}/src/plugins/chart_expressions/expression_metric/README.md[expressionMetricVis]
|Expression MetricVis plugin adds a metric renderer and function to the expression plugin. The renderer will display the metric chart.
|{kib-repo}blob/{branch}/src/plugins/expression_repeat_image/README.md[expressionRepeatImage]
|Expression Repeat Image plugin adds a repeatImage function to the expression plugin and an associated renderer. The renderer will display the given image in mutliple instances.

View file

@ -81,7 +81,6 @@ pageLoadAssetSize:
usageCollection: 39762
visDefaultEditor: 50178
visTypeMarkdown: 30896
visTypeMetric: 42790
visTypeTable: 95078
visTypeTagcloud: 37575
visTypeTimelion: 68883
@ -118,4 +117,6 @@ pageLoadAssetSize:
share: 100298
snapshotRestore: 63225
customIntegrations: 28810
expressionMetricVis: 23121
visTypeMetric: 23332
dataViews: 42000

View file

@ -25,6 +25,7 @@ export const storybookAliases = {
expression_reveal_image: 'src/plugins/expression_reveal_image/.storybook',
expression_shape: 'src/plugins/expression_shape/.storybook',
expression_tagcloud: 'src/plugins/chart_expressions/expression_tagcloud/.storybook',
expression_metric_vis: 'src/plugins/chart_expressions/expression_metric/.storybook',
fleet: 'x-pack/plugins/fleet/storybook',
infra: 'x-pack/plugins/infra/.storybook',
security_solution: 'x-pack/plugins/security_solution/.storybook',

View file

@ -0,0 +1,6 @@
{
"prefix": "expressionMetricVis",
"paths": {
"expressionMetricVis": "."
}
}

View file

@ -0,0 +1,23 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { defaultConfig } from '@kbn/storybook';
import webpackMerge from 'webpack-merge';
import { resolve } from 'path';
const mockConfig = {
resolve: {
alias: {
'../format_service': resolve(__dirname, '../public/__mocks__/format_service.ts'),
},
},
};
module.exports = {
...defaultConfig,
webpackFinal: (config) => webpackMerge(config, mockConfig),
};

View file

@ -0,0 +1,9 @@
# expressionMetricVis
Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart.
---
## Development
See the [kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) for instructions setting up your development environment.

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export const EXPRESSION_METRIC_NAME = 'metricVis';

View file

@ -22,7 +22,7 @@ Object {
exports[`interpreter/functions#metric returns an object with the correct structure 1`] = `
Object {
"as": "metric_vis",
"as": "metricVis",
"type": "render",
"value": Object {
"visConfig": Object {

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export { metricVisFunction } from './metric_vis_function';

View file

@ -6,14 +6,13 @@
* Side Public License, v 1.
*/
import { createMetricVisFn } from './metric_vis_fn';
import { functionWrapper } from '../../../expressions/common/expression_functions/specs/tests/utils';
import { Datatable } from '../../../expressions/common/expression_types/specs';
type Arguments = Parameters<ReturnType<typeof createMetricVisFn>['fn']>[1];
import { metricVisFunction } from './metric_vis_function';
import type { MetricArguments } from '../../common';
import { functionWrapper } from '../../../../expressions/common/expression_functions/specs/tests/utils';
import { Datatable } from '../../../../expressions/common/expression_types/specs';
describe('interpreter/functions#metric', () => {
const fn = functionWrapper(createMetricVisFn());
const fn = functionWrapper(metricVisFunction());
const context = {
type: 'datatable',
rows: [{ 'col-0-1': 0 }],
@ -52,7 +51,7 @@ describe('interpreter/functions#metric', () => {
aggType: 'count',
},
],
} as unknown as Arguments;
} as unknown as MetricArguments;
it('returns an object with the correct structure', () => {
const actual = fn(context, args, undefined);

View file

@ -8,60 +8,24 @@
import { i18n } from '@kbn/i18n';
import {
ExpressionFunctionDefinition,
Datatable,
Range,
Render,
Style,
} from '../../../expressions/public';
import { visType, VisParams } from './types';
import { prepareLogTable, Dimension } from '../../../visualizations/public';
import { ColorSchemas, vislibColorMaps, ColorMode } from '../../../charts/public';
import { ExpressionValueVisDimension } from '../../../visualizations/public';
import { visType } from '../types';
import { prepareLogTable, Dimension } from '../../../../visualizations/common/prepare_log_table';
import { vislibColorMaps, ColorMode } from '../../../../charts/common';
import { MetricVisExpressionFunctionDefinition } from '../types';
import { EXPRESSION_METRIC_NAME } from '../constants';
export type Input = Datatable;
interface Arguments {
percentageMode: boolean;
colorSchema: ColorSchemas;
colorMode: ColorMode;
useRanges: boolean;
invertColors: boolean;
showLabels: boolean;
bgFill: string;
subText: string;
colorRange: Range[];
font: Style;
metric: ExpressionValueVisDimension[];
bucket: ExpressionValueVisDimension;
}
export interface MetricVisRenderValue {
visType: typeof visType;
visData: Input;
visConfig: Pick<VisParams, 'metric' | 'dimensions'>;
}
export type MetricVisExpressionFunctionDefinition = ExpressionFunctionDefinition<
'metricVis',
Input,
Arguments,
Render<MetricVisRenderValue>
>;
export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
name: 'metricVis',
export const metricVisFunction = (): MetricVisExpressionFunctionDefinition => ({
name: EXPRESSION_METRIC_NAME,
type: 'render',
inputTypes: ['datatable'],
help: i18n.translate('visTypeMetric.function.help', {
help: i18n.translate('expressionMetricVis.function.help', {
defaultMessage: 'Metric visualization',
}),
args: {
percentageMode: {
types: ['boolean'],
default: false,
help: i18n.translate('visTypeMetric.function.percentageMode.help', {
help: i18n.translate('expressionMetricVis.function.percentageMode.help', {
defaultMessage: 'Shows metric in percentage mode. Requires colorRange to be set.',
}),
},
@ -69,7 +33,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
types: ['string'],
default: '"Green to Red"',
options: Object.values(vislibColorMaps).map((value: any) => value.id),
help: i18n.translate('visTypeMetric.function.colorSchema.help', {
help: i18n.translate('expressionMetricVis.function.colorSchema.help', {
defaultMessage: 'Color schema to use',
}),
},
@ -77,7 +41,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
types: ['string'],
default: '"None"',
options: [ColorMode.None, ColorMode.Labels, ColorMode.Background],
help: i18n.translate('visTypeMetric.function.colorMode.help', {
help: i18n.translate('expressionMetricVis.function.colorMode.help', {
defaultMessage: 'Which part of metric to color',
}),
},
@ -85,7 +49,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
types: ['range'],
multi: true,
default: '{range from=0 to=10000}',
help: i18n.translate('visTypeMetric.function.colorRange.help', {
help: i18n.translate('expressionMetricVis.function.colorRange.help', {
defaultMessage:
'A range object specifying groups of values to which different colors should be applied.',
}),
@ -93,21 +57,21 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
useRanges: {
types: ['boolean'],
default: false,
help: i18n.translate('visTypeMetric.function.useRanges.help', {
help: i18n.translate('expressionMetricVis.function.useRanges.help', {
defaultMessage: 'Enabled color ranges.',
}),
},
invertColors: {
types: ['boolean'],
default: false,
help: i18n.translate('visTypeMetric.function.invertColors.help', {
help: i18n.translate('expressionMetricVis.function.invertColors.help', {
defaultMessage: 'Inverts the color ranges',
}),
},
showLabels: {
types: ['boolean'],
default: true,
help: i18n.translate('visTypeMetric.function.showLabels.help', {
help: i18n.translate('expressionMetricVis.function.showLabels.help', {
defaultMessage: 'Shows labels under the metric values.',
}),
},
@ -115,14 +79,14 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
types: ['string'],
default: '"#000"',
aliases: ['backgroundFill', 'bgColor', 'backgroundColor'],
help: i18n.translate('visTypeMetric.function.bgFill.help', {
help: i18n.translate('expressionMetricVis.function.bgFill.help', {
defaultMessage:
'Color as html hex code (#123456), html color (red, blue) or rgba value (rgba(255,255,255,1)).',
}),
},
font: {
types: ['style'],
help: i18n.translate('visTypeMetric.function.font.help', {
help: i18n.translate('expressionMetricVis.function.font.help', {
defaultMessage: 'Font settings.',
}),
default: '{font size=60}',
@ -131,13 +95,13 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
types: ['string'],
aliases: ['label', 'text', 'description'],
default: '""',
help: i18n.translate('visTypeMetric.function.subText.help', {
help: i18n.translate('expressionMetricVis.function.subText.help', {
defaultMessage: 'Custom text to show under the metric',
}),
},
metric: {
types: ['vis_dimension'],
help: i18n.translate('visTypeMetric.function.metric.help', {
help: i18n.translate('expressionMetricVis.function.metric.help', {
defaultMessage: 'metric dimension configuration',
}),
required: true,
@ -145,7 +109,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
},
bucket: {
types: ['vis_dimension'],
help: i18n.translate('visTypeMetric.function.bucket.help', {
help: i18n.translate('expressionMetricVis.function.bucket.help', {
defaultMessage: 'bucket dimension configuration',
}),
},
@ -161,7 +125,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
const argsTable: Dimension[] = [
[
args.metric,
i18n.translate('visTypeMetric.function.dimension.metric', {
i18n.translate('expressionMetricVis.function.dimension.metric', {
defaultMessage: 'Metric',
}),
],
@ -169,7 +133,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
if (args.bucket) {
argsTable.push([
[args.bucket],
i18n.translate('visTypeMetric.function.adimension.splitGroup', {
i18n.translate('expressionMetricVis.function.dimension.splitGroup', {
defaultMessage: 'Split group',
}),
]);
@ -180,7 +144,7 @@ export const createMetricVisFn = (): MetricVisExpressionFunctionDefinition => ({
return {
type: 'render',
as: 'metric_vis',
as: EXPRESSION_METRIC_NAME,
value: {
visData: input,
visType,

View file

@ -0,0 +1,25 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export const PLUGIN_ID = 'expressionMetricVis';
export const PLUGIN_NAME = 'expressionMetricVis';
export type {
MetricArguments,
MetricInput,
MetricVisRenderConfig,
MetricVisExpressionFunctionDefinition,
DimensionsVisParam,
MetricVisParam,
VisParams,
MetricOptions,
} from './types';
export { metricVisFunction } from './expression_functions';
export { EXPRESSION_METRIC_NAME } from './constants';

View file

@ -0,0 +1,49 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import {
Datatable,
ExpressionFunctionDefinition,
Range,
ExpressionValueRender,
Style,
} from '../../../../expressions';
import { ExpressionValueVisDimension } from '../../../../visualizations/common';
import { ColorSchemas, ColorMode } from '../../../../charts/common';
import { VisParams, visType } from './expression_renderers';
import { EXPRESSION_METRIC_NAME } from '../constants';
export interface MetricArguments {
percentageMode: boolean;
colorSchema: ColorSchemas;
colorMode: ColorMode;
useRanges: boolean;
invertColors: boolean;
showLabels: boolean;
bgFill: string;
subText: string;
colorRange: Range[];
font: Style;
metric: ExpressionValueVisDimension[];
bucket: ExpressionValueVisDimension;
}
export type MetricInput = Datatable;
export interface MetricVisRenderConfig {
visType: typeof visType;
visData: MetricInput;
visConfig: Pick<VisParams, 'metric' | 'dimensions'>;
}
export type MetricVisExpressionFunctionDefinition = ExpressionFunctionDefinition<
typeof EXPRESSION_METRIC_NAME,
MetricInput,
MetricArguments,
ExpressionValueRender<MetricVisRenderConfig>
>;

View file

@ -0,0 +1,46 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { Range } from '../../../../expressions/common';
import { ExpressionValueVisDimension } from '../../../../visualizations/common';
import { ColorMode, Labels, Style, ColorSchemas } from '../../../../charts/common';
export const visType = 'metric';
export interface DimensionsVisParam {
metrics: ExpressionValueVisDimension[];
bucket?: ExpressionValueVisDimension;
}
export interface MetricVisParam {
percentageMode: boolean;
percentageFormatPattern?: string;
useRanges: boolean;
colorSchema: ColorSchemas;
metricColorMode: ColorMode;
colorsRange: Range[];
labels: Labels;
invertColors: boolean;
style: Style;
}
export interface VisParams {
addTooltip: boolean;
addLegend: boolean;
dimensions: DimensionsVisParam;
metric: MetricVisParam;
type: typeof visType;
}
export interface MetricOptions {
value: string;
label: string;
color?: string;
bgColor?: string;
lightText: boolean;
rowIndex: number;
}

View file

@ -0,0 +1,10 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export * from './expression_functions';
export * from './expression_renderers';

View file

@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../',
roots: ['<rootDir>/src/plugins/chart_expressions/expression_metric'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/src/plugins/chart_expressions/expression_metric',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/src/plugins/chart_expressions/expression_metric/{common,public,server}/**/*.{ts,tsx}',
],
};

View file

@ -0,0 +1,15 @@
{
"id": "expressionMetricVis",
"version": "1.0.0",
"kibanaVersion": "kibana",
"owner": {
"name": "Vis Editors",
"githubTeam": "kibana-vis-editors"
},
"description": "Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart.",
"server": true,
"ui": true,
"requiredPlugins": ["expressions", "fieldFormats", "charts", "visualizations", "presentationUtil"],
"requiredBundles": ["kibanaUtils"],
"optionalPlugins": []
}

View file

@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export const getFormatService = () => ({
deserialize: (target: any) => ({
convert: (text: string, format: string) => text,
}),
});

View file

@ -0,0 +1,250 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { ExpressionValueVisDimension } from '../../../../visualizations/common';
import { DatatableColumn, Range } from '../../../../expressions';
import { Render } from '../../../../presentation_util/public/__stories__';
import { ColorMode, ColorSchemas } from '../../../../charts/common';
import { metricVisRenderer } from '../expression_renderers';
import { MetricVisRenderConfig, visType } from '../../common/types';
const config: MetricVisRenderConfig = {
visType,
visData: {
type: 'datatable',
rows: [{ 'col-0-1': 85, 'col-0-2': 30 }],
columns: [
{
id: 'col-0-1',
name: 'Max products count',
meta: { type: 'number', params: {} },
},
{
id: 'col-0-2',
name: 'Median products count',
meta: { type: 'number', params: {} },
},
],
},
visConfig: {
metric: {
percentageMode: false,
useRanges: false,
colorSchema: ColorSchemas.GreenToRed,
metricColorMode: ColorMode.None,
colorsRange: [],
labels: { show: true },
invertColors: false,
style: {
bgColor: false,
bgFill: '#000',
fontSize: 60,
labelColor: false,
subText: '',
},
},
dimensions: {
metrics: [
{
accessor: 0,
format: {
id: 'number',
params: {},
},
type: 'vis_dimension',
},
{
accessor: {
id: 'col-0-2',
name: 'Median products count',
meta: { type: 'number' },
},
format: {
id: 'number',
params: {},
},
type: 'vis_dimension',
},
],
},
},
};
const dayColumn: DatatableColumn = {
id: 'col-0-3',
name: 'Day of the week',
meta: { type: 'string', params: {} },
};
const dayAccessor: ExpressionValueVisDimension = {
accessor: {
id: 'col-0-3',
name: 'Day of the week',
meta: { type: 'string' },
},
format: {
id: 'string',
params: {},
},
type: 'vis_dimension',
};
const dataWithBuckets = [
{ 'col-0-1': 85, 'col-0-2': 30, 'col-0-3': 'Monday' },
{ 'col-0-1': 55, 'col-0-2': 32, 'col-0-3': 'Tuesday' },
{ 'col-0-1': 56, 'col-0-2': 52, 'col-0-3': 'Wednesday' },
];
const colorsRange: Range[] = [
{ type: 'range', from: 0, to: 50 },
{ type: 'range', from: 51, to: 150 },
];
const containerSize = {
width: '700px',
height: '700px',
};
storiesOf('renderers/visMetric', module)
.add('Default', () => {
return <Render renderer={metricVisRenderer} config={config} {...containerSize} />;
})
.add('Without labels', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visConfig: {
...config.visConfig,
metric: { ...config.visConfig.metric, labels: { show: false } },
},
}}
{...containerSize}
/>
);
})
.add('With custom font size', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visConfig: {
...config.visConfig,
metric: {
...config.visConfig.metric,
style: { ...config.visConfig.metric.style, fontSize: 120 },
},
},
}}
{...containerSize}
/>
);
})
.add('With color ranges, background color mode', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visConfig: {
...config.visConfig,
metric: {
...config.visConfig.metric,
colorsRange,
metricColorMode: ColorMode.Background,
style: {
...config.visConfig.metric.style,
bgColor: true,
},
},
},
}}
{...containerSize}
/>
);
})
.add('With color ranges, labels color mode', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visConfig: {
...config.visConfig,
metric: {
...config.visConfig.metric,
colorsRange,
metricColorMode: ColorMode.Labels,
style: {
...config.visConfig.metric.style,
labelColor: true,
},
},
},
}}
{...containerSize}
/>
);
})
.add('With color ranges, labels color mode, reverse mode', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visConfig: {
...config.visConfig,
metric: {
...config.visConfig.metric,
colorsRange,
metricColorMode: ColorMode.Labels,
style: {
...config.visConfig.metric.style,
labelColor: true,
},
invertColors: true,
},
},
}}
{...containerSize}
/>
);
})
.add('With bucket', () => {
return (
<Render
renderer={metricVisRenderer}
config={{
...config,
visData: {
...config.visData,
columns: [...config.visData.columns, dayColumn],
rows: dataWithBuckets,
},
visConfig: {
...config.visConfig,
dimensions: { ...config.visConfig.dimensions, bucket: dayAccessor },
},
}}
{...containerSize}
/>
);
})
.add('With empty results', () => {
return (
<Render
renderer={metricVisRenderer}
config={{ ...config, visData: { ...config.visData, rows: [] } }}
{...containerSize}
/>
);
});

View file

@ -9,9 +9,9 @@
import React from 'react';
import { shallow } from 'enzyme';
import MetricVisComponent, { MetricVisComponentProps } from './metric_vis_component';
import MetricVisComponent, { MetricVisComponentProps } from './metric_component';
jest.mock('../services', () => ({
jest.mock('../format_service', () => ({
getFormatService: () => ({
deserialize: () => {
return {

View file

@ -9,21 +9,19 @@
import { last, findIndex, isNaN } from 'lodash';
import React, { Component } from 'react';
import { isColorDark } from '@elastic/eui';
import { MetricVisValue } from './metric_vis_value';
import { Input } from '../metric_vis_fn';
import { MetricVisValue } from './metric_value';
import { MetricInput, VisParams, MetricOptions } from '../../common/types';
import type { FieldFormatsContentType, IFieldFormat } from '../../../../field_formats/common';
import { Datatable } from '../../../../expressions/public';
import { getHeatmapColors } from '../../../../charts/public';
import { VisParams, MetricVisMetric } from '../types';
import { getFormatService } from '../services';
import { getFormatService } from '../format_service';
import { ExpressionValueVisDimension } from '../../../../visualizations/public';
import { Range } from '../../../../expressions/public';
import './metric_vis.scss';
import './metric.scss';
export interface MetricVisComponentProps {
visParams: Pick<VisParams, 'metric' | 'dimensions'>;
visData: Input;
visData: MetricInput;
fireEvent: (event: any) => void;
renderComplete: () => void;
}
@ -33,7 +31,7 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
const config = this.props.visParams.metric;
const isPercentageMode = config.percentageMode;
const colorsRange = config.colorsRange;
const max = (last(colorsRange) as Range).to;
const max = last(colorsRange)?.to ?? 1;
const labels: string[] = [];
colorsRange.forEach((range: any) => {
@ -66,7 +64,7 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
});
if (bucket === -1) {
if (val < config.colorsRange[0].from) bucket = 0;
if (config.colorsRange?.[0] && val < config.colorsRange?.[0].from) bucket = 0;
else bucket = config.colorsRange.length - 1;
}
@ -109,14 +107,13 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
}
private processTableGroups(table: Datatable) {
const config = this.props.visParams.metric;
const dimensions = this.props.visParams.dimensions;
const isPercentageMode = config.percentageMode;
const min = config.colorsRange[0].from;
const max = (last(config.colorsRange) as Range).to;
const { metric: metricConfig, dimensions } = this.props.visParams;
const { percentageMode: isPercentageMode, colorsRange, style } = metricConfig;
const min = colorsRange?.[0]?.from;
const max = last(colorsRange)?.to;
const colors = this.getColors();
const labels = this.getLabels();
const metrics: MetricVisMetric[] = [];
const metrics: MetricOptions[] = [];
let bucketColumnId: string;
let bucketFormatter: IFieldFormat;
@ -131,27 +128,26 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
const formatter = getFormatService().deserialize(metric.format);
table.rows.forEach((row, rowIndex) => {
let title = column.name;
let value: any = row[column.id];
let value: number = row[column.id];
const color = this.getColor(value, labels, colors);
if (isPercentageMode) {
if (isPercentageMode && colorsRange?.length && max !== undefined && min !== undefined) {
value = (value - min) / (max - min);
}
value = this.getFormattedValue(formatter, value, 'html');
const formattedValue = this.getFormattedValue(formatter, value, 'html');
if (bucketColumnId) {
const bucketValue = this.getFormattedValue(bucketFormatter, row[bucketColumnId]);
title = `${bucketValue} - ${title}`;
}
const shouldColor = config.colorsRange.length > 1;
const shouldColor = colorsRange && colorsRange.length > 1;
metrics.push({
label: title,
value,
color: shouldColor && config.style.labelColor ? color : undefined,
bgColor: shouldColor && config.style.bgColor ? color : undefined,
lightText: shouldColor && config.style.bgColor && this.needsLightText(color),
value: formattedValue,
color: shouldColor && style.labelColor ? color : undefined,
bgColor: shouldColor && style.bgColor ? color : undefined,
lightText: shouldColor && style.bgColor && this.needsLightText(color),
rowIndex,
});
});
@ -160,7 +156,7 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
return metrics;
}
private filterBucket = (metric: MetricVisMetric) => {
private filterBucket = (metric: MetricOptions) => {
const dimensions = this.props.visParams.dimensions;
if (!dimensions.bucket) {
return;
@ -180,7 +176,7 @@ class MetricVisComponent extends Component<MetricVisComponentProps> {
});
};
private renderMetric = (metric: MetricVisMetric, index: number) => {
private renderMetric = (metric: MetricOptions, index: number) => {
return (
<MetricVisValue
key={index}

View file

@ -9,7 +9,7 @@
import React from 'react';
import { shallow } from 'enzyme';
import { MetricVisValue } from './metric_vis_value';
import { MetricVisValue } from './metric_value';
const baseMetric = { label: 'Foo', value: 'foo' } as any;

View file

@ -9,12 +9,12 @@
import React from 'react';
import classNames from 'classnames';
import { MetricVisMetric } from '../types';
import type { MetricOptions } from '../../common/types';
interface MetricVisValueProps {
metric: MetricVisMetric;
metric: MetricOptions;
fontSize: number;
onFilter?: (metric: MetricVisMetric) => void;
onFilter?: (metric: MetricOptions) => void;
showLabel?: boolean;
}

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export { metricVisRenderer } from './metric_vis_renderer';

View file

@ -9,14 +9,15 @@
import React, { lazy } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { VisualizationContainer } from '../../../visualizations/public';
import { ExpressionRenderDefinition } from '../../../expressions/common/expression_renderers';
import { MetricVisRenderValue } from './metric_vis_fn';
// @ts-ignore
const MetricVisComponent = lazy(() => import('./components/metric_vis_component'));
import { VisualizationContainer } from '../../../../visualizations/public';
import { ExpressionRenderDefinition } from '../../../../expressions/common/expression_renderers';
import { EXPRESSION_METRIC_NAME, MetricVisRenderConfig } from '../../common';
export const metricVisRenderer: () => ExpressionRenderDefinition<MetricVisRenderValue> = () => ({
name: 'metric_vis',
// @ts-ignore
const MetricVisComponent = lazy(() => import('../components/metric_component'));
export const metricVisRenderer: () => ExpressionRenderDefinition<MetricVisRenderConfig> = () => ({
name: EXPRESSION_METRIC_NAME,
displayName: 'metric visualization',
reuseDomNode: true,
render: async (domNode, { visData, visConfig }, handlers) => {

View file

@ -6,9 +6,8 @@
* Side Public License, v 1.
*/
import { createGetterSetter } from '../../../kibana_utils/common';
import { DataPublicPluginStart } from '../../../data/public';
import { createGetterSetter } from '../../../kibana_utils/public';
import { FieldFormatsStart } from '../../../field_formats/public';
export const [getFormatService, setFormatService] = createGetterSetter<
DataPublicPluginStart['fieldFormats']
>('metric data.fieldFormats');
export const [getFormatService, setFormatService] =
createGetterSetter<FieldFormatsStart>('fieldFormats');

View file

@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { ExpressionMetricPlugin } from './plugin';
export function plugin() {
return new ExpressionMetricPlugin();
}

View file

@ -0,0 +1,36 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { CoreSetup, CoreStart, Plugin } from '../../../../core/public';
import { Plugin as ExpressionsPublicPlugin } from '../../../expressions/public';
import { metricVisFunction } from '../common';
import { setFormatService } from './format_service';
import { metricVisRenderer } from './expression_renderers';
import { FieldFormatsStart } from '../../../field_formats/public';
/** @internal */
export interface ExpressionMetricPluginSetup {
expressions: ReturnType<ExpressionsPublicPlugin['setup']>;
}
/** @internal */
export interface ExpressionMetricPluginStart {
fieldFormats: FieldFormatsStart;
}
/** @internal */
export class ExpressionMetricPlugin implements Plugin<void, void> {
public setup(core: CoreSetup, { expressions }: ExpressionMetricPluginSetup) {
expressions.registerFunction(metricVisFunction);
expressions.registerRenderer(metricVisRenderer);
}
public start(core: CoreStart, { fieldFormats }: ExpressionMetricPluginStart) {
setFormatService(fieldFormats);
}
}

View file

@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { ExpressionMetricPlugin } from './plugin';
export function plugin() {
return new ExpressionMetricPlugin();
}

View file

@ -0,0 +1,34 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { CoreSetup, CoreStart, Plugin } from '../../../../core/public';
import { ExpressionsServerStart, ExpressionsServerSetup } from '../../../expressions/server';
import { metricVisFunction } from '../common';
interface SetupDeps {
expressions: ExpressionsServerSetup;
}
interface StartDeps {
expression: ExpressionsServerStart;
}
export type ExpressionMetricPluginSetup = void;
export type ExpressionMetricPluginStart = void;
export class ExpressionMetricPlugin
implements Plugin<ExpressionMetricPluginSetup, ExpressionMetricPluginStart, SetupDeps, StartDeps>
{
public setup(core: CoreSetup, { expressions }: SetupDeps): ExpressionMetricPluginSetup {
expressions.registerFunction(metricVisFunction);
}
public start(core: CoreStart): ExpressionMetricPluginStart {}
public stop() {}
}

View file

@ -0,0 +1,23 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true,
"isolatedModules": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../core/tsconfig.json" },
{ "path": "../../expressions/tsconfig.json" },
{ "path": "../../presentation_util/tsconfig.json" },
{ "path": "../../field_formats/tsconfig.json" },
{ "path": "../../charts/tsconfig.json" },
{ "path": "../../visualizations/tsconfig.json" },
]
}

View file

@ -6,9 +6,33 @@
* Side Public License, v 1.
*/
// TODO: https://github.com/elastic/kibana/issues/110891
/* eslint-disable @kbn/eslint/no_export_all */
export const COLOR_MAPPING_SETTING = 'visualization:colorMapping';
export * from './palette';
export * from './constants';
export {
CustomPaletteArguments,
CustomPaletteState,
SystemPaletteArguments,
PaletteOutput,
defaultCustomColors,
palette,
systemPalette,
} from './palette';
export { paletteIds } from './constants';
export {
ColorSchemas,
ColorSchema,
RawColorSchema,
ColorMap,
vislibColorMaps,
colorSchemas,
getHeatmapColors,
truncatedColorMaps,
truncatedColorSchemas,
ColorMode,
LabelRotation,
defaultCountLabel,
} from './static';
export { ColorSchemaParams, Labels, Style } from './types';

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export { ColorMode, LabelRotation, defaultCountLabel } from './collections';

View file

@ -0,0 +1,21 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export {
ColorSchemas,
ColorSchema,
RawColorSchema,
ColorMap,
vislibColorMaps,
colorSchemas,
getHeatmapColors,
truncatedColorMaps,
truncatedColorSchemas,
} from './color_maps';
export { ColorMode, LabelRotation, defaultCountLabel } from './components';

View file

@ -6,8 +6,7 @@
* Side Public License, v 1.
*/
import { ColorSchemas } from '../color_maps';
import { LabelRotation } from './collections';
import { ColorSchemas, LabelRotation } from './static';
export interface ColorSchemaParams {
colorSchema: ColorSchemas;

View file

@ -3,6 +3,7 @@
"version": "kibana",
"server": true,
"ui": true,
"extraPublicDirs": ["common"],
"requiredPlugins": ["expressions"],
"owner": {
"name": "Vis Editors",

View file

@ -26,4 +26,19 @@ export {
CustomPaletteState,
SystemPaletteArguments,
paletteIds,
ColorSchemas,
ColorSchema,
RawColorSchema,
ColorMap,
vislibColorMaps,
colorSchemas,
getHeatmapColors,
truncatedColorMaps,
truncatedColorSchemas,
ColorMode,
LabelRotation,
defaultCountLabel,
ColorSchemaParams,
Labels,
Style,
} from '../common';

View file

@ -28,7 +28,7 @@ const createStartContract = (): Start => ({
palettes: paletteServiceMock.setup({} as any),
});
export { colorMapsMock } from './static/color_maps/mock';
export { colorMapsMock } from '../common/static/color_maps/mock';
export const chartPluginMock = {
createSetupContract,

View file

@ -6,8 +6,6 @@
* Side Public License, v 1.
*/
export { ColorMode, LabelRotation, defaultCountLabel } from './collections';
export { ColorSchemaParams, Labels, Style } from './types';
export { LegendToggle } from './legend_toggle';
export { ColorPicker } from './color_picker';
export { CurrentTime } from './current_time';

View file

@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
export * from './color_maps';
export * from './colors';
export * from './components';
export * from './utils';

View file

@ -5,7 +5,7 @@
"server": true,
"ui": true,
"requiredPlugins": ["data", "visualizations", "charts", "expressions"],
"requiredBundles": ["kibanaUtils", "visDefaultEditor"],
"requiredBundles": ["visDefaultEditor"],
"owner": {
"name": "Vis Editors",
"githubTeam": "kibana-vis-editors"

View file

@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export { MetricVisOptions } from './metric_vis_options';

View file

@ -7,7 +7,7 @@
*/
import { i18n } from '@kbn/i18n';
import { MetricVisOptions } from './components/metric_vis_options';
import { MetricVisOptions } from './components';
import { ColorSchemas, ColorMode } from '../../../charts/public';
import { VisTypeDefinition } from '../../../visualizations/public';
import { AggGroupNames } from '../../../data/public';

View file

@ -7,27 +7,13 @@
*/
import { PluginInitializerContext, CoreSetup, CoreStart, Plugin } from 'kibana/public';
import { Plugin as ExpressionsPublicPlugin } from '../../../expressions/public';
import { VisualizationsSetup } from '../../../visualizations/public';
import { createMetricVisFn } from './metric_vis_fn';
import { createMetricVisTypeDefinition } from './metric_vis_type';
import { ChartsPluginSetup } from '../../../charts/public';
import { DataPublicPluginStart } from '../../../data/public';
import { setFormatService } from './services';
import { ConfigSchema } from '../config';
import { metricVisRenderer } from './metric_vis_renderer';
/** @internal */
export interface MetricVisPluginSetupDependencies {
expressions: ReturnType<ExpressionsPublicPlugin['setup']>;
visualizations: VisualizationsSetup;
charts: ChartsPluginSetup;
}
/** @internal */
export interface MetricVisPluginStartDependencies {
data: DataPublicPluginStart;
}
/** @internal */
@ -38,16 +24,9 @@ export class MetricVisPlugin implements Plugin<void, void> {
this.initializerContext = initializerContext;
}
public setup(
core: CoreSetup,
{ expressions, visualizations, charts }: MetricVisPluginSetupDependencies
) {
expressions.registerFunction(createMetricVisFn);
expressions.registerRenderer(metricVisRenderer);
public setup(core: CoreSetup, { visualizations }: MetricVisPluginSetupDependencies) {
visualizations.createBaseVisualization(createMetricVisTypeDefinition());
}
public start(core: CoreStart, { data }: MetricVisPluginStartDependencies) {
setFormatService(data.fieldFormats);
}
public start(core: CoreStart) {}
}

View file

@ -9,7 +9,6 @@
import { get } from 'lodash';
import { getVisSchemas, SchemaConfig, VisToExpressionAst } from '../../../visualizations/public';
import { buildExpression, buildExpressionFunction } from '../../../expressions/public';
import { MetricVisExpressionFunctionDefinition } from './metric_vis_fn';
import {
EsaggsExpressionFunctionDefinition,
IndexPatternLoadExpressionFunctionDefinition,
@ -63,8 +62,7 @@ export const toExpressionAst: VisToExpressionAst<VisParams> = (vis, params) => {
});
}
// @ts-expect-error
const metricVis = buildExpressionFunction<MetricVisExpressionFunctionDefinition>('metricVis', {
const metricVis = buildExpressionFunction('metricVis', {
percentageMode,
colorSchema,
colorMode: metricColorMode,

View file

@ -36,12 +36,3 @@ export interface VisParams {
metric: MetricVisParam;
type: typeof visType;
}
export interface MetricVisMetric {
value: any;
label: string;
color?: string;
bgColor?: string;
lightText: boolean;
rowIndex: number;
}

View file

@ -13,8 +13,6 @@
{ "path": "../../visualizations/tsconfig.json" },
{ "path": "../../charts/tsconfig.json" },
{ "path": "../../expressions/tsconfig.json" },
{ "path": "../../kibana_utils/tsconfig.json" },
{ "path": "../../vis_default_editor/tsconfig.json" },
{ "path": "../../field_formats/tsconfig.json" }
{ "path": "../../vis_default_editor/tsconfig.json" }
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}}
{"as":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}}
{"as":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -1 +1 @@
{"as":"metric_vis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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":"metricVis","type":"render","value":{"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"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"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":{"appliedTimeRange":null,"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"}}

View file

@ -5029,21 +5029,21 @@
"visTypeMetric.colorModes.backgroundOptionLabel": "背景",
"visTypeMetric.colorModes.labelsOptionLabel": "ラベル",
"visTypeMetric.colorModes.noneOptionLabel": "なし",
"visTypeMetric.function.adimension.splitGroup": "グループを分割",
"visTypeMetric.function.bgFill.help": "html 16 進数コード(#123456、html 色red、blue、または rgba 値rgba255,255,255,1。",
"visTypeMetric.function.bucket.help": "バケットディメンションの構成です。",
"visTypeMetric.function.colorMode.help": "色を変更するメトリックの部分",
"visTypeMetric.function.colorRange.help": "別の色が適用される値のグループを指定する範囲オブジェクト。",
"visTypeMetric.function.colorSchema.help": "使用する配色",
"visTypeMetric.function.dimension.metric": "メトリック",
"visTypeMetric.function.font.help": "フォント設定です。",
"visTypeMetric.function.help": "メトリックビジュアライゼーション",
"visTypeMetric.function.invertColors.help": "色範囲を反転します",
"visTypeMetric.function.metric.help": "メトリックディメンションの構成です。",
"visTypeMetric.function.percentageMode.help": "百分率モードでメトリックを表示します。colorRange を設定する必要があります。",
"visTypeMetric.function.showLabels.help": "メトリック値の下にラベルを表示します。",
"visTypeMetric.function.subText.help": "メトリックの下に表示するカスタムテキスト",
"visTypeMetric.function.useRanges.help": "有効な色範囲です。",
"expressionMetricVis.function.dimension.splitGroup": "グループを分割",
"expressionMetricVis.function.bgFill.help": "html 16 進数コード(#123456、html 色red、blue、または rgba 値rgba255,255,255,1。",
"expressionMetricVis.function.bucket.help": "バケットディメンションの構成です。",
"expressionMetricVis.function.colorMode.help": "色を変更するメトリックの部分",
"expressionMetricVis.function.colorRange.help": "別の色が適用される値のグループを指定する範囲オブジェクト。",
"expressionMetricVis.function.colorSchema.help": "使用する配色",
"expressionMetricVis.function.dimension.metric": "メトリック",
"expressionMetricVis.function.font.help": "フォント設定です。",
"expressionMetricVis.function.help": "メトリックビジュアライゼーション",
"expressionMetricVis.function.invertColors.help": "色範囲を反転します",
"expressionMetricVis.function.metric.help": "メトリックディメンションの構成です。",
"expressionMetricVis.function.percentageMode.help": "百分率モードでメトリックを表示します。colorRange を設定する必要があります。",
"expressionMetricVis.function.showLabels.help": "メトリック値の下にラベルを表示します。",
"expressionMetricVis.function.subText.help": "メトリックの下に表示するカスタムテキスト",
"expressionMetricVis.function.useRanges.help": "有効な色範囲です。",
"visTypeMetric.metricDescription": "計算結果を単独の数字として表示します。",
"visTypeMetric.metricTitle": "メトリック",
"visTypeMetric.params.color.useForLabel": "使用する色",

View file

@ -5075,21 +5075,21 @@
"visTypeMetric.colorModes.backgroundOptionLabel": "背景",
"visTypeMetric.colorModes.labelsOptionLabel": "标签",
"visTypeMetric.colorModes.noneOptionLabel": "无",
"visTypeMetric.function.adimension.splitGroup": "拆分组",
"visTypeMetric.function.bgFill.help": "将颜色表示为 html 十六进制代码 (#123456)、html 颜色red、blue或 rgba 值 (rgba(255,255,255,1))。",
"visTypeMetric.function.bucket.help": "存储桶维度配置",
"visTypeMetric.function.colorMode.help": "指标的哪部分要上色",
"visTypeMetric.function.colorRange.help": "指定应将不同颜色应用到的值组的范围对象。",
"visTypeMetric.function.colorSchema.help": "要使用的颜色方案",
"visTypeMetric.function.dimension.metric": "指标",
"visTypeMetric.function.font.help": "字体设置。",
"visTypeMetric.function.help": "指标可视化",
"visTypeMetric.function.invertColors.help": "反转颜色范围",
"visTypeMetric.function.metric.help": "指标维度配置",
"visTypeMetric.function.percentageMode.help": "以百分比模式显示指标。需要设置 colorRange。",
"visTypeMetric.function.showLabels.help": "在指标值下显示标签。",
"visTypeMetric.function.subText.help": "要在指标下显示的定制文本",
"visTypeMetric.function.useRanges.help": "已启用颜色范围。",
"expressionMetricVis.function.dimension.splitGroup": "拆分组",
"expressionMetricVis.function.bgFill.help": "将颜色表示为 html 十六进制代码 (#123456)、html 颜色red、blue或 rgba 值 (rgba(255,255,255,1))。",
"expressionMetricVis.function.bucket.help": "存储桶维度配置",
"expressionMetricVis.function.colorMode.help": "指标的哪部分要上色",
"expressionMetricVis.function.colorRange.help": "指定应将不同颜色应用到的值组的范围对象。",
"expressionMetricVis.function.colorSchema.help": "要使用的颜色方案",
"expressionMetricVis.function.dimension.metric": "指标",
"expressionMetricVis.function.font.help": "字体设置。",
"expressionMetricVis.function.help": "指标可视化",
"expressionMetricVis.function.invertColors.help": "反转颜色范围",
"expressionMetricVis.function.metric.help": "指标维度配置",
"expressionMetricVis.function.percentageMode.help": "以百分比模式显示指标。需要设置 colorRange。",
"expressionMetricVis.function.showLabels.help": "在指标值下显示标签。",
"expressionMetricVis.function.subText.help": "要在指标下显示的定制文本",
"expressionMetricVis.function.useRanges.help": "已启用颜色范围。",
"visTypeMetric.metricDescription": "将计算结果显示为单个数字。",
"visTypeMetric.metricTitle": "指标",
"visTypeMetric.params.color.useForLabel": "将颜色用于",