mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[NP] Move visTypeVislib into NP (#63963)
This commit is contained in:
parent
c2e464325e
commit
da89856503
311 changed files with 16519 additions and 18516 deletions
|
@ -10,7 +10,6 @@ bower_components
|
|||
/html_docs
|
||||
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
|
||||
/src/plugins/vis_type_timelion/public/_generated_/**
|
||||
src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data
|
||||
/src/legacy/ui/public/flot-charts
|
||||
/test/fixtures/scenarios
|
||||
/src/legacy/core_plugins/console/public/webpackShims
|
||||
|
|
|
@ -217,6 +217,9 @@ module.exports = {
|
|||
'examples/**/*',
|
||||
'!(src|x-pack)/**/*.test.*',
|
||||
'!(x-pack/)?test/**/*',
|
||||
// next folder contains legacy browser tests which can't be migrated to jest
|
||||
// which import np files
|
||||
'!src/legacy/core_plugins/kibana/public/__tests__/**/*',
|
||||
],
|
||||
from: [
|
||||
'(src|x-pack)/plugins/**/(public|server)/**/*',
|
||||
|
|
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -11,7 +11,7 @@
|
|||
/src/legacy/core_plugins/kibana/public/discover/ @elastic/kibana-app
|
||||
/src/legacy/core_plugins/kibana/public/local_application_service/ @elastic/kibana-app
|
||||
/src/legacy/core_plugins/kibana/public/dev_tools/ @elastic/kibana-app
|
||||
/src/legacy/core_plugins/vis_type_vislib/ @elastic/kibana-app
|
||||
/src/plugins/vis_type_vislib/ @elastic/kibana-app
|
||||
/src/plugins/vis_type_xy/ @elastic/kibana-app
|
||||
/src/plugins/vis_type_table/ @elastic/kibana-app
|
||||
/src/plugins/kibana_legacy/ @elastic/kibana-app
|
||||
|
|
|
@ -50,10 +50,10 @@
|
|||
"visTypeMetric": "src/plugins/vis_type_metric",
|
||||
"visTypeTable": "src/plugins/vis_type_table",
|
||||
"visTypeTagCloud": "src/plugins/vis_type_tagcloud",
|
||||
"visTypeTimeseries": ["src/legacy/core_plugins/vis_type_timeseries", "src/plugins/vis_type_timeseries"],
|
||||
"visTypeTimeseries": "src/plugins/vis_type_timeseries",
|
||||
"visTypeVega": "src/plugins/vis_type_vega",
|
||||
"visTypeVislib": "src/legacy/core_plugins/vis_type_vislib",
|
||||
"visTypeXy": "src/legacy/core_plugins/vis_type_xy",
|
||||
"visTypeVislib": "src/plugins/vis_type_vislib",
|
||||
"visTypeXy": "src/plugins/vis_type_xy",
|
||||
"visualizations": "src/plugins/visualizations",
|
||||
"visualize": "src/plugins/visualize"
|
||||
},
|
||||
|
|
|
@ -2,8 +2,8 @@ files:
|
|||
include:
|
||||
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
|
||||
- 'src/legacy/core_plugins/timelion/**/*.s+(a|c)ss'
|
||||
- 'src/legacy/core_plugins/vis_type_vislib/**/*.s+(a|c)ss'
|
||||
- 'src/legacy/core_plugins/vis_type_xy/**/*.s+(a|c)ss'
|
||||
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
|
||||
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
|
||||
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss'
|
||||
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
|
||||
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
|
||||
|
|
|
@ -117,7 +117,6 @@ export const TEMPORARILY_IGNORED_PATHS = [
|
|||
'src/legacy/core_plugins/tile_map/public/__tests__/shadedCircleMarkers.png',
|
||||
'src/legacy/core_plugins/tile_map/public/__tests__/shadedGeohashGrid.png',
|
||||
'src/fixtures/config_upgrade_from_4.0.0_to_4.0.1-snapshot.json',
|
||||
'src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data/terms/_seriesMultiple.js',
|
||||
'src/core/server/core_app/assets/favicons/android-chrome-192x192.png',
|
||||
'src/core/server/core_app/assets/favicons/android-chrome-256x256.png',
|
||||
'src/core/server/core_app/assets/favicons/android-chrome-512x512.png',
|
||||
|
|
|
@ -20,13 +20,10 @@
|
|||
import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
|
||||
import { Vis } from '../../../vis';
|
||||
import { Vis } from '../../../../../../plugins/vis_type_vislib/public/vislib/vis';
|
||||
|
||||
// TODO: Remove when converted to jest mocks
|
||||
import {
|
||||
ColorsService,
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
} from '../../../../../../../../plugins/charts/public/services';
|
||||
import { ColorsService } from '../../../../../../plugins/charts/public/services';
|
||||
|
||||
const $visCanvas = $('<div>')
|
||||
.attr('id', 'vislib-vis-fixtures')
|
||||
|
@ -72,17 +69,6 @@ const getDeps = () => {
|
|||
};
|
||||
};
|
||||
|
||||
export const getMockUiState = () => {
|
||||
const map = new Map();
|
||||
|
||||
return (() => ({
|
||||
get: (...args) => map.get(...args),
|
||||
set: (...args) => map.set(...args),
|
||||
setSilent: (...args) => map.set(...args),
|
||||
on: () => undefined,
|
||||
}))();
|
||||
};
|
||||
|
||||
export function getVis(visLibParams, element) {
|
||||
return new Vis(
|
||||
element || $visCanvas.new(),
|
|
@ -21,9 +21,9 @@ import d3 from 'd3';
|
|||
import _ from 'lodash';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { ChartTitle } from '../../lib/chart_title';
|
||||
import { VisConfig } from '../../lib/vis_config';
|
||||
import { getMockUiState } from './fixtures/_vis_fixture';
|
||||
import { ChartTitle } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/chart_title';
|
||||
import { VisConfig } from '../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
|
||||
describe('Vislib ChartTitle Class Test Suite', function() {
|
||||
let mockUiState;
|
|
@ -22,9 +22,10 @@ import d3 from 'd3';
|
|||
import expect from '@kbn/expect';
|
||||
|
||||
// Data
|
||||
import data from './fixtures/mock_data/date_histogram/_series';
|
||||
import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
|
||||
import { getVis, getMockUiState } from './fixtures/_vis_fixture';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
describe('Vislib Dispatch Class Test Suite', function() {
|
||||
function destroyVis(vis) {
|
|
@ -21,12 +21,12 @@ import expect from '@kbn/expect';
|
|||
import $ from 'jquery';
|
||||
|
||||
// Data
|
||||
import series from '../fixtures/mock_data/date_histogram/_series';
|
||||
import columns from '../fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from '../fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
|
||||
|
||||
import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
|
||||
import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../../_vis_fixture';
|
||||
|
||||
const dateHistogramArray = [series, columns, rows, stackedSeries];
|
||||
const names = ['series', 'columns', 'rows', 'stackedSeries'];
|
|
@ -22,14 +22,14 @@ import expect from '@kbn/expect';
|
|||
import $ from 'jquery';
|
||||
|
||||
// Data
|
||||
import series from '../fixtures/mock_data/date_histogram/_series';
|
||||
import columns from '../fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from '../fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
|
||||
|
||||
import { Layout } from '../../../lib/layout/layout';
|
||||
import { getVis, getMockUiState } from '../fixtures/_vis_fixture';
|
||||
import { VisConfig } from '../../../lib/vis_config';
|
||||
import series from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import columns from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import { getMockUiState } from '../../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { Layout } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/layout/layout';
|
||||
import { VisConfig } from '../../../../../../../../plugins/vis_type_vislib/public/vislib/lib/vis_config';
|
||||
import { getVis } from '../../_vis_fixture';
|
||||
|
||||
const dateHistogramArray = [series, columns, rows, stackedSeries];
|
||||
const names = ['series', 'columns', 'rows', 'stackedSeries'];
|
|
@ -21,11 +21,12 @@ import _ from 'lodash';
|
|||
import $ from 'jquery';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import series from './lib/fixtures/mock_data/date_histogram/_series';
|
||||
import columns from './lib/fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from './lib/fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from './lib/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import { getVis, getMockUiState } from './lib/fixtures/_vis_fixture';
|
||||
import series from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import columns from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_columns';
|
||||
import rows from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
|
||||
import stackedSeries from '../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import { getMockUiState } from '../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from './_vis_fixture';
|
||||
|
||||
const dataArray = [series, columns, rows, stackedSeries];
|
||||
const names = ['series', 'columns', 'rows', 'stackedSeries'];
|
|
@ -22,15 +22,16 @@ import _ from 'lodash';
|
|||
import $ from 'jquery';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
const dataTypesArray = {
|
||||
'series pos': require('../lib/fixtures/mock_data/date_histogram/_series'),
|
||||
'series pos neg': require('../lib/fixtures/mock_data/date_histogram/_series_pos_neg'),
|
||||
'series neg': require('../lib/fixtures/mock_data/date_histogram/_series_neg'),
|
||||
'term columns': require('../lib/fixtures/mock_data/terms/_columns'),
|
||||
'range rows': require('../lib/fixtures/mock_data/range/_rows'),
|
||||
stackedSeries: require('../lib/fixtures/mock_data/date_histogram/_stacked_series'),
|
||||
'series pos': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series'),
|
||||
'series pos neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg'),
|
||||
'series neg': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg'),
|
||||
'term columns': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns'),
|
||||
'range rows': require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows'),
|
||||
stackedSeries: require('../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series'),
|
||||
};
|
||||
|
||||
const visLibParams = {
|
|
@ -20,8 +20,9 @@
|
|||
import d3 from 'd3';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { Chart } from '../../visualizations/_chart';
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import { Chart } from '../../../../../../../plugins/vis_type_vislib/public/vislib/visualizations/_chart';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
describe('Vislib _chart Test Suite', function() {
|
||||
let vis;
|
|
@ -23,17 +23,18 @@ import $ from 'jquery';
|
|||
import expect from '@kbn/expect';
|
||||
|
||||
// Data
|
||||
import series from '../lib/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
|
||||
import histogramRows from '../lib/fixtures/mock_data/histogram/_rows';
|
||||
import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
|
||||
import histogramRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_rows';
|
||||
import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
|
||||
import { seriesMonthlyInterval } from '../lib/fixtures/mock_data/date_histogram/_series_monthly_interval';
|
||||
import { rowsSeriesWithHoles } from '../lib/fixtures/mock_data/date_histogram/_rows_series_with_holes';
|
||||
import rowsWithZeros from '../lib/fixtures/mock_data/date_histogram/_rows';
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import { seriesMonthlyInterval } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_monthly_interval';
|
||||
import { rowsSeriesWithHoles } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows_series_with_holes';
|
||||
import rowsWithZeros from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_rows';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
// tuple, with the format [description, mode, data]
|
||||
const dataTypesArray = [
|
|
@ -21,8 +21,9 @@ import $ from 'jquery';
|
|||
import _ from 'lodash';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import data from '../lib/fixtures/mock_data/terms/_seriesMultiple';
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import data from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series_multiple';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
describe('Vislib Gauge Chart Test Suite', function() {
|
||||
let vis;
|
|
@ -23,13 +23,13 @@ import d3 from 'd3';
|
|||
import expect from '@kbn/expect';
|
||||
|
||||
// Data
|
||||
import series from '../lib/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import termsColumns from '../lib/fixtures/mock_data/terms/_columns';
|
||||
import stackedSeries from '../lib/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import series from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import termsColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_columns';
|
||||
import stackedSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_stacked_series';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
// tuple, with the format [description, mode, data]
|
||||
const dataTypesArray = [
|
|
@ -23,14 +23,14 @@ import $ from 'jquery';
|
|||
import _ from 'lodash';
|
||||
|
||||
// Data
|
||||
import seriesPos from '../lib/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../lib/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../lib/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import histogramColumns from '../lib/fixtures/mock_data/histogram/_columns';
|
||||
import rangeRows from '../lib/fixtures/mock_data/range/_rows';
|
||||
import termSeries from '../lib/fixtures/mock_data/terms/_series';
|
||||
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import seriesPos from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series';
|
||||
import seriesPosNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_pos_neg';
|
||||
import seriesNeg from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/date_histogram/_series_neg';
|
||||
import histogramColumns from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/histogram/_columns';
|
||||
import rangeRows from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/range/_rows';
|
||||
import termSeries from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mock_data/terms/_series';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
|
||||
const dataTypes = [
|
||||
['series pos', seriesPos],
|
|
@ -22,7 +22,8 @@ import _ from 'lodash';
|
|||
import $ from 'jquery';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getVis, getMockUiState } from '../lib/fixtures/_vis_fixture';
|
||||
import { getMockUiState } from '../../../../../../../plugins/vis_type_vislib/public/fixtures/mocks';
|
||||
import { getVis } from '../_vis_fixture';
|
||||
import { pieChartMockData } from './pie_chart_mock_data';
|
||||
|
||||
const names = ['rows', 'columns', 'slices'];
|
|
@ -7,16 +7,9 @@
|
|||
// Public UI styles
|
||||
@import 'src/legacy/ui/public/index';
|
||||
|
||||
// vis_type_vislib UI styles
|
||||
@import 'src/legacy/core_plugins/vis_type_vislib/public/index';
|
||||
|
||||
// Discover styles
|
||||
@import 'discover/index';
|
||||
|
||||
// Visualization styles are imported here for running karma Browser tests
|
||||
// should be somehow included through the "visualizations" plugin initialization
|
||||
@import '../../../../plugins/visualizations/public/index';
|
||||
|
||||
// Has to come after visualize because of some
|
||||
// bad cascading in the Editor layout
|
||||
@import '../../../../plugins/maps_legacy/public/index';
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
import { createReadStream } from 'fs';
|
||||
import { resolve } from 'path';
|
||||
|
||||
import globby from 'globby';
|
||||
import MultiStream from 'multistream';
|
||||
|
@ -40,6 +41,7 @@ export default kibana => {
|
|||
},
|
||||
|
||||
uiExports: {
|
||||
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
|
||||
async __bundleProvider__(kbnServer) {
|
||||
const modules = new Set();
|
||||
|
||||
|
|
6
src/legacy/core_plugins/tests_bundle/public/index.scss
Normal file
6
src/legacy/core_plugins/tests_bundle/public/index.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
@import 'src/legacy/ui/public/styles/styling_constants';
|
||||
|
||||
// This file pulls some styles of NP plugins into the legacy test stylesheet
|
||||
// so they are available for karma browser tests.
|
||||
@import '../../../../plugins/vis_type_vislib/public/index';
|
||||
@import '../../../../plugins/visualizations/public/index';
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { resolve } from 'path';
|
||||
import { Legacy } from 'kibana';
|
||||
|
||||
import { LegacyPluginApi, LegacyPluginInitializer } from '../../types';
|
||||
|
||||
const visTypeVislibPluginInitializer: LegacyPluginInitializer = ({ Plugin }: LegacyPluginApi) =>
|
||||
new Plugin({
|
||||
id: 'vis_type_vislib',
|
||||
require: ['kibana', 'elasticsearch', 'interpreter'],
|
||||
publicDir: resolve(__dirname, 'public'),
|
||||
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
|
||||
uiExports: {
|
||||
hacks: [resolve(__dirname, 'public/legacy')],
|
||||
injectDefaultVars: server => ({}),
|
||||
},
|
||||
init: (server: Legacy.Server) => ({}),
|
||||
config(Joi: any) {
|
||||
return Joi.object({
|
||||
enabled: Joi.boolean().default(true),
|
||||
}).default();
|
||||
},
|
||||
} as Legacy.PluginSpecOptions);
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default visTypeVislibPluginInitializer;
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"name": "vis_type_vislib",
|
||||
"version": "kibana"
|
||||
}
|
|
@ -1,300 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': '200: response',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'interval': 30000,
|
||||
'min': 1415826608440,
|
||||
'max': 1415827508440
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
},
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1415826600000,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 1415826630000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1415826660000,
|
||||
'y': 7
|
||||
},
|
||||
{
|
||||
'x': 1415826690000,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 1415826720000,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 1415826750000,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 1415826780000,
|
||||
'y': 10
|
||||
},
|
||||
{
|
||||
'x': 1415826810000,
|
||||
'y': 7
|
||||
},
|
||||
{
|
||||
'x': 1415826840000,
|
||||
'y': 9
|
||||
},
|
||||
{
|
||||
'x': 1415826870000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1415826900000,
|
||||
'y': 9
|
||||
},
|
||||
{
|
||||
'x': 1415826930000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1415826960000,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 1415826990000,
|
||||
'y': 9
|
||||
},
|
||||
{
|
||||
'x': 1415827020000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827050000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1415827080000,
|
||||
'y': 7
|
||||
},
|
||||
{
|
||||
'x': 1415827110000,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 1415827140000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827170000,
|
||||
'y': 10
|
||||
},
|
||||
{
|
||||
'x': 1415827200000,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 1415827230000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1415827260000,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 1415827290000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827320000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827350000,
|
||||
'y': 10
|
||||
},
|
||||
{
|
||||
'x': 1415827380000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827410000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 1415827440000,
|
||||
'y': 12
|
||||
},
|
||||
{
|
||||
'x': 1415827470000,
|
||||
'y': 9
|
||||
},
|
||||
{
|
||||
'x': 1415827500000,
|
||||
'y': 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'label': '503: response',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'interval': 30000,
|
||||
'min': 1415826608440,
|
||||
'max': 1415827508440
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
},
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1415826630000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826660000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826720000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826780000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826900000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827020000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827080000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827110000,
|
||||
'y': 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'label': '404: response',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'interval': 30000,
|
||||
'min': 1415826608440,
|
||||
'max': 1415827508440
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
},
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1415826660000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826720000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826810000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415826960000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827050000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827260000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827380000,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 1415827410000,
|
||||
'y': 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': [
|
||||
1415826600000,
|
||||
1415826630000,
|
||||
1415826660000,
|
||||
1415826690000,
|
||||
1415826720000,
|
||||
1415826750000,
|
||||
1415826780000,
|
||||
1415826810000,
|
||||
1415826840000,
|
||||
1415826870000,
|
||||
1415826900000,
|
||||
1415826930000,
|
||||
1415826960000,
|
||||
1415826990000,
|
||||
1415827020000,
|
||||
1415827050000,
|
||||
1415827080000,
|
||||
1415827110000,
|
||||
1415827140000,
|
||||
1415827170000,
|
||||
1415827200000,
|
||||
1415827230000,
|
||||
1415827260000,
|
||||
1415827290000,
|
||||
1415827320000,
|
||||
1415827350000,
|
||||
1415827380000,
|
||||
1415827410000,
|
||||
1415827440000,
|
||||
1415827470000,
|
||||
1415827500000,
|
||||
],
|
||||
'hits': 225
|
||||
};
|
File diff suppressed because it is too large
Load diff
|
@ -1,123 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export const rowsSeriesWithHoles = {
|
||||
rows: [
|
||||
{
|
||||
'label': '',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'min': 1411761457636,
|
||||
'max': 1411762357636,
|
||||
'interval': 30000
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1411761450000,
|
||||
'y': 41
|
||||
},
|
||||
{
|
||||
'x': 1411761510000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411761540000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761840000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761870000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761900000,
|
||||
'y': 21
|
||||
},
|
||||
{
|
||||
'x': 1411761930000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761960000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761990000,
|
||||
'y': 13
|
||||
},
|
||||
{
|
||||
'x': 1411762020000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762050000,
|
||||
'y': 25
|
||||
},
|
||||
{
|
||||
'x': 1411762080000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411762110000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762140000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411762170000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762200000,
|
||||
'y': 19
|
||||
},
|
||||
{
|
||||
'x': 1411762320000,
|
||||
'y': 15
|
||||
},
|
||||
{
|
||||
'x': 1411762350000,
|
||||
'y': 4
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 533,
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': [
|
||||
1411761450000,
|
||||
1411761510000,
|
||||
1411761540000,
|
||||
1411761840000,
|
||||
1411761870000,
|
||||
1411761900000,
|
||||
1411761930000,
|
||||
1411761960000,
|
||||
1411761990000,
|
||||
1411762020000,
|
||||
1411762050000,
|
||||
1411762080000,
|
||||
1411762110000,
|
||||
1411762140000,
|
||||
1411762170000,
|
||||
1411762200000,
|
||||
1411762320000,
|
||||
1411762350000,
|
||||
],
|
||||
};
|
|
@ -1,184 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'min': 1411761457636,
|
||||
'max': 1411762357636,
|
||||
'interval': 30000
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1411761450000,
|
||||
'y': 41
|
||||
},
|
||||
{
|
||||
'x': 1411761480000,
|
||||
'y': 18
|
||||
},
|
||||
{
|
||||
'x': 1411761510000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411761540000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761570000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761600000,
|
||||
'y': 21
|
||||
},
|
||||
{
|
||||
'x': 1411761630000,
|
||||
'y': 16
|
||||
},
|
||||
{
|
||||
'x': 1411761660000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761690000,
|
||||
'y': 15
|
||||
},
|
||||
{
|
||||
'x': 1411761720000,
|
||||
'y': 19
|
||||
},
|
||||
{
|
||||
'x': 1411761750000,
|
||||
'y': 11
|
||||
},
|
||||
{
|
||||
'x': 1411761780000,
|
||||
'y': 13
|
||||
},
|
||||
{
|
||||
'x': 1411761810000,
|
||||
'y': 24
|
||||
},
|
||||
{
|
||||
'x': 1411761840000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761870000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761900000,
|
||||
'y': 21
|
||||
},
|
||||
{
|
||||
'x': 1411761930000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761960000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761990000,
|
||||
'y': 13
|
||||
},
|
||||
{
|
||||
'x': 1411762020000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762050000,
|
||||
'y': 25
|
||||
},
|
||||
{
|
||||
'x': 1411762080000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411762110000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762140000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411762170000,
|
||||
'y': 14
|
||||
},
|
||||
{
|
||||
'x': 1411762200000,
|
||||
'y': 19
|
||||
},
|
||||
{
|
||||
'x': 1411762230000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411762260000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411762290000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1411762320000,
|
||||
'y': 15
|
||||
},
|
||||
{
|
||||
'x': 1411762350000,
|
||||
'y': 4
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 533,
|
||||
'xAxisOrderedValues': [
|
||||
1411761450000,
|
||||
1411761480000,
|
||||
1411761510000,
|
||||
1411761540000,
|
||||
1411761570000,
|
||||
1411761600000,
|
||||
1411761630000,
|
||||
1411761660000,
|
||||
1411761690000,
|
||||
1411761720000,
|
||||
1411761750000,
|
||||
1411761780000,
|
||||
1411761810000,
|
||||
1411761840000,
|
||||
1411761870000,
|
||||
1411761900000,
|
||||
1411761930000,
|
||||
1411761960000,
|
||||
1411761990000,
|
||||
1411762020000,
|
||||
1411762050000,
|
||||
1411762080000,
|
||||
1411762110000,
|
||||
1411762140000,
|
||||
1411762170000,
|
||||
1411762200000,
|
||||
1411762230000,
|
||||
1411762260000,
|
||||
1411762290000,
|
||||
1411762320000,
|
||||
1411762350000,
|
||||
],
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,89 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export const seriesMonthlyInterval = {
|
||||
'label': '',
|
||||
'xAxisLabel': '@timestamp per month',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'min': 1451631600000,
|
||||
'max': 1483254000000,
|
||||
'interval': 2678000000
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1451631600000,
|
||||
'y': 10220
|
||||
},
|
||||
{
|
||||
'x': 1454310000000,
|
||||
'y': 9997,
|
||||
},
|
||||
{
|
||||
'x': 1456815600000,
|
||||
'y': 10792,
|
||||
},
|
||||
{
|
||||
'x': 1459490400000,
|
||||
'y': 10262
|
||||
},
|
||||
{
|
||||
'x': 1462082400000,
|
||||
'y': 10080
|
||||
},
|
||||
{
|
||||
'x': 1464760800000,
|
||||
'y': 11161
|
||||
},
|
||||
{
|
||||
'x': 1467352800000,
|
||||
'y': 9933
|
||||
},
|
||||
{
|
||||
'x': 1470031200000,
|
||||
'y': 10342
|
||||
},
|
||||
{
|
||||
'x': 1472709600000,
|
||||
'y': 10887
|
||||
},
|
||||
{
|
||||
'x': 1475301600000,
|
||||
'y': 9666
|
||||
},
|
||||
{
|
||||
'x': 1477980000000,
|
||||
'y': 9556
|
||||
},
|
||||
{
|
||||
'x': 1480575600000,
|
||||
'y': 11644
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 533,
|
||||
'xAxisOrderedValues': [
|
||||
1451631600000,
|
||||
1454310000000,
|
||||
1456815600000,
|
||||
1459490400000,
|
||||
1462082400000,
|
||||
1464760800000,
|
||||
1467352800000,
|
||||
1470031200000,
|
||||
1472709600000,
|
||||
1475301600000,
|
||||
1477980000000,
|
||||
1480575600000,
|
||||
],
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,184 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'min': 1411761457636,
|
||||
'max': 1411762357636,
|
||||
'interval': 30000
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1411761450000,
|
||||
'y': -41
|
||||
},
|
||||
{
|
||||
'x': 1411761480000,
|
||||
'y': -18
|
||||
},
|
||||
{
|
||||
'x': 1411761510000,
|
||||
'y': -22
|
||||
},
|
||||
{
|
||||
'x': 1411761540000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761570000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761600000,
|
||||
'y': -21
|
||||
},
|
||||
{
|
||||
'x': 1411761630000,
|
||||
'y': -16
|
||||
},
|
||||
{
|
||||
'x': 1411761660000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761690000,
|
||||
'y': -15
|
||||
},
|
||||
{
|
||||
'x': 1411761720000,
|
||||
'y': -19
|
||||
},
|
||||
{
|
||||
'x': 1411761750000,
|
||||
'y': -11
|
||||
},
|
||||
{
|
||||
'x': 1411761780000,
|
||||
'y': -13
|
||||
},
|
||||
{
|
||||
'x': 1411761810000,
|
||||
'y': -24
|
||||
},
|
||||
{
|
||||
'x': 1411761840000,
|
||||
'y': -20
|
||||
},
|
||||
{
|
||||
'x': 1411761870000,
|
||||
'y': -20
|
||||
},
|
||||
{
|
||||
'x': 1411761900000,
|
||||
'y': -21
|
||||
},
|
||||
{
|
||||
'x': 1411761930000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761960000,
|
||||
'y': -20
|
||||
},
|
||||
{
|
||||
'x': 1411761990000,
|
||||
'y': -13
|
||||
},
|
||||
{
|
||||
'x': 1411762020000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762050000,
|
||||
'y': -25
|
||||
},
|
||||
{
|
||||
'x': 1411762080000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411762110000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762140000,
|
||||
'y': -22
|
||||
},
|
||||
{
|
||||
'x': 1411762170000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762200000,
|
||||
'y': -19
|
||||
},
|
||||
{
|
||||
'x': 1411762230000,
|
||||
'y': -22
|
||||
},
|
||||
{
|
||||
'x': 1411762260000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411762290000,
|
||||
'y': -8
|
||||
},
|
||||
{
|
||||
'x': 1411762320000,
|
||||
'y': -15
|
||||
},
|
||||
{
|
||||
'x': 1411762350000,
|
||||
'y': -4
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 533,
|
||||
'xAxisOrderedValues': [
|
||||
1411761450000,
|
||||
1411761480000,
|
||||
1411761510000,
|
||||
1411761540000,
|
||||
1411761570000,
|
||||
1411761600000,
|
||||
1411761630000,
|
||||
1411761660000,
|
||||
1411761690000,
|
||||
1411761720000,
|
||||
1411761750000,
|
||||
1411761780000,
|
||||
1411761810000,
|
||||
1411761840000,
|
||||
1411761870000,
|
||||
1411761900000,
|
||||
1411761930000,
|
||||
1411761960000,
|
||||
1411761990000,
|
||||
1411762020000,
|
||||
1411762050000,
|
||||
1411762080000,
|
||||
1411762110000,
|
||||
1411762140000,
|
||||
1411762170000,
|
||||
1411762200000,
|
||||
1411762230000,
|
||||
1411762260000,
|
||||
1411762290000,
|
||||
1411762320000,
|
||||
1411762350000,
|
||||
],
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,184 +0,0 @@
|
|||
import moment from 'moment';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': '@timestamp per 30 sec',
|
||||
'ordered': {
|
||||
'date': true,
|
||||
'min': 1411761457636,
|
||||
'max': 1411762357636,
|
||||
'interval': 30000
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 1411761450000,
|
||||
'y': 41
|
||||
},
|
||||
{
|
||||
'x': 1411761480000,
|
||||
'y': 18
|
||||
},
|
||||
{
|
||||
'x': 1411761510000,
|
||||
'y': -22
|
||||
},
|
||||
{
|
||||
'x': 1411761540000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761570000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411761600000,
|
||||
'y': -21
|
||||
},
|
||||
{
|
||||
'x': 1411761630000,
|
||||
'y': -16
|
||||
},
|
||||
{
|
||||
'x': 1411761660000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761690000,
|
||||
'y': 15
|
||||
},
|
||||
{
|
||||
'x': 1411761720000,
|
||||
'y': 19
|
||||
},
|
||||
{
|
||||
'x': 1411761750000,
|
||||
'y': 11
|
||||
},
|
||||
{
|
||||
'x': 1411761780000,
|
||||
'y': -13
|
||||
},
|
||||
{
|
||||
'x': 1411761810000,
|
||||
'y': -24
|
||||
},
|
||||
{
|
||||
'x': 1411761840000,
|
||||
'y': -20
|
||||
},
|
||||
{
|
||||
'x': 1411761870000,
|
||||
'y': -20
|
||||
},
|
||||
{
|
||||
'x': 1411761900000,
|
||||
'y': -21
|
||||
},
|
||||
{
|
||||
'x': 1411761930000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411761960000,
|
||||
'y': 20
|
||||
},
|
||||
{
|
||||
'x': 1411761990000,
|
||||
'y': -13
|
||||
},
|
||||
{
|
||||
'x': 1411762020000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762050000,
|
||||
'y': 25
|
||||
},
|
||||
{
|
||||
'x': 1411762080000,
|
||||
'y': -17
|
||||
},
|
||||
{
|
||||
'x': 1411762110000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762140000,
|
||||
'y': -22
|
||||
},
|
||||
{
|
||||
'x': 1411762170000,
|
||||
'y': -14
|
||||
},
|
||||
{
|
||||
'x': 1411762200000,
|
||||
'y': 19
|
||||
},
|
||||
{
|
||||
'x': 1411762230000,
|
||||
'y': 22
|
||||
},
|
||||
{
|
||||
'x': 1411762260000,
|
||||
'y': 17
|
||||
},
|
||||
{
|
||||
'x': 1411762290000,
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 1411762320000,
|
||||
'y': -15
|
||||
},
|
||||
{
|
||||
'x': 1411762350000,
|
||||
'y': -4
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 533,
|
||||
'xAxisOrderedValues': [
|
||||
1411761450000,
|
||||
1411761480000,
|
||||
1411761510000,
|
||||
1411761540000,
|
||||
1411761570000,
|
||||
1411761600000,
|
||||
1411761630000,
|
||||
1411761660000,
|
||||
1411761690000,
|
||||
1411761720000,
|
||||
1411761750000,
|
||||
1411761780000,
|
||||
1411761810000,
|
||||
1411761840000,
|
||||
1411761870000,
|
||||
1411761900000,
|
||||
1411761930000,
|
||||
1411761960000,
|
||||
1411761990000,
|
||||
1411762020000,
|
||||
1411762050000,
|
||||
1411762080000,
|
||||
1411762110000,
|
||||
1411762140000,
|
||||
1411762170000,
|
||||
1411762200000,
|
||||
1411762230000,
|
||||
1411762260000,
|
||||
1411762290000,
|
||||
1411762320000,
|
||||
1411762350000,
|
||||
],
|
||||
'xAxisFormatter': function (thing) {
|
||||
return moment(thing);
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
File diff suppressed because it is too large
Load diff
|
@ -1,112 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 10379
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 6395
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['css', 'png'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 9253
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 5571
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['css', 'png'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 7740
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 4697
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['css', 'png'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'hits': 171443
|
||||
};
|
|
@ -1,109 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'rows': [
|
||||
{
|
||||
'label': '200: response',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 25260
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 15311
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '404: response',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 1352
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 826
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '503: response',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 761
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 527
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'hits': 171443
|
||||
};
|
|
@ -1,42 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': 'filters',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 27374
|
||||
},
|
||||
{
|
||||
'x': 'html',
|
||||
'y': 0
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 16663
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171454,
|
||||
'xAxisOrderedValues': ['css', 'html', 'png'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,368 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': '404: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 2147483600,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 3221225400,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 4294967200,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 5368709100,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 6442450900,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 7516192700,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 8589934500,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 11811160000,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 12884901800,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 13958643700,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 16106127300,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 18253611000,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 20401094600,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 21474836400,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '200: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 2147483600,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 3221225400,
|
||||
'y': 2,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 4294967200,
|
||||
'y': 3,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 5368709100,
|
||||
'y': 3,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 6442450900,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 7516192700,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 8589934500,
|
||||
'y': 4,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 11811160000,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 12884901800,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 13958643700,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 2,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 16106127300,
|
||||
'y': 3,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 18253611000,
|
||||
'y': 4,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 5,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 20401094600,
|
||||
'y': 2,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 21474836400,
|
||||
'y': 2,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '503: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 2147483600,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 3221225400,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 4294967200,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 5368709100,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 6442450900,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 7516192700,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 8589934500,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 1,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 11811160000,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 12884901800,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 13958643700,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 16106127300,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 18253611000,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 20401094600,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': 21474836400,
|
||||
'y': 0,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': [
|
||||
2147483600,
|
||||
3221225400,
|
||||
4294967200,
|
||||
5368709100,
|
||||
6442450900,
|
||||
7516192700,
|
||||
8589934500,
|
||||
10737418200,
|
||||
11811160000,
|
||||
12884901800,
|
||||
13958643700,
|
||||
15032385500,
|
||||
16106127300,
|
||||
18253611000,
|
||||
19327352800,
|
||||
20401094600,
|
||||
21474836400,
|
||||
],
|
||||
'hits': 40
|
||||
};
|
|
@ -1,212 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'rows': [
|
||||
{
|
||||
'label': '404: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 2147483600,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 32212254700,
|
||||
'y': 1
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '200: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 3221225400,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 4294967200,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 5368709100,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 6442450900,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 7516192700,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 8589934500,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 9663676400,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 11811160000,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 12884901800,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 13958643700,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 16106127300,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 17179869100,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 18253611000,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 20401094600,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 21474836400,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 32212254700,
|
||||
'y': 3
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '503: response',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 1
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': [
|
||||
2147483600,
|
||||
3221225400,
|
||||
4294967200,
|
||||
5368709100,
|
||||
6442450900,
|
||||
7516192700,
|
||||
8589934500,
|
||||
9663676400,
|
||||
10737418200,
|
||||
11811160000,
|
||||
12884901800,
|
||||
13958643700,
|
||||
15032385500,
|
||||
16106127300,
|
||||
17179869100,
|
||||
18253611000,
|
||||
19327352800,
|
||||
20401094600,
|
||||
21474836400,
|
||||
32212254700,
|
||||
],
|
||||
'hits': 51
|
||||
};
|
|
@ -1,124 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': 'machine.ram',
|
||||
'ordered': {
|
||||
'interval': 100
|
||||
},
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 3221225400,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 4294967200,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 5368709100,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 6442450900,
|
||||
'y': 4
|
||||
},
|
||||
{
|
||||
'x': 7516192700,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 9663676400,
|
||||
'y': 9
|
||||
},
|
||||
{
|
||||
'x': 10737418200,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 11811160000,
|
||||
'y': 5
|
||||
},
|
||||
{
|
||||
'x': 12884901800,
|
||||
'y': 2
|
||||
},
|
||||
{
|
||||
'x': 13958643700,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 15032385500,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 16106127300,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 17179869100,
|
||||
'y': 1
|
||||
},
|
||||
{
|
||||
'x': 18253611000,
|
||||
'y': 6
|
||||
},
|
||||
{
|
||||
'x': 19327352800,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 20401094600,
|
||||
'y': 3
|
||||
},
|
||||
{
|
||||
'x': 21474836400,
|
||||
'y': 7
|
||||
},
|
||||
{
|
||||
'x': 32212254700,
|
||||
'y': 4
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 71,
|
||||
'xAxisOrderedValues': [
|
||||
3221225400,
|
||||
4294967200,
|
||||
5368709100,
|
||||
6442450900,
|
||||
7516192700,
|
||||
9663676400,
|
||||
10737418200,
|
||||
11811160000,
|
||||
12884901800,
|
||||
13958643700,
|
||||
15032385500,
|
||||
16106127300,
|
||||
17179869100,
|
||||
18253611000,
|
||||
19327352800,
|
||||
20401094600,
|
||||
21474836400,
|
||||
32212254700,
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,309 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'slices': {
|
||||
'children': [
|
||||
{
|
||||
'name': 0,
|
||||
'size': 378611,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 1000,
|
||||
'size': 205997,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 2000,
|
||||
'size': 397189,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 3000,
|
||||
'size': 397195,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 4000,
|
||||
'size': 398429,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 5000,
|
||||
'size': 397843,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 6000,
|
||||
'size': 398140,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 7000,
|
||||
'size': 398076,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 8000,
|
||||
'size': 396746,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 9000,
|
||||
'size': 397418,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 10000,
|
||||
'size': 20222,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 11000,
|
||||
'size': 20173,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 12000,
|
||||
'size': 20026,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 13000,
|
||||
'size': 19986,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 14000,
|
||||
'size': 20091,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 15000,
|
||||
'size': 20052,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 16000,
|
||||
'size': 20349,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 17000,
|
||||
'size': 20290,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 18000,
|
||||
'size': 20399,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 19000,
|
||||
'size': 20133,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'name': 20000,
|
||||
'size': 9,
|
||||
'aggConfig': {
|
||||
'type': 'histogram',
|
||||
'schema': 'segment',
|
||||
'fieldFormatter': _.constant(String),
|
||||
'params': {
|
||||
'interval': 1000,
|
||||
'extended_bounds': {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
'names': [
|
||||
0,
|
||||
1000,
|
||||
2000,
|
||||
3000,
|
||||
4000,
|
||||
5000,
|
||||
6000,
|
||||
7000,
|
||||
8000,
|
||||
9000,
|
||||
10000,
|
||||
11000,
|
||||
12000,
|
||||
13000,
|
||||
14000,
|
||||
15000,
|
||||
16000,
|
||||
17000,
|
||||
18000,
|
||||
19000,
|
||||
20000
|
||||
],
|
||||
'hits': 3967374,
|
||||
'tooltipFormatter': function (event) {
|
||||
return event.point;
|
||||
}
|
||||
};
|
|
@ -1,34 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': '',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '_all',
|
||||
'y': 274
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 274,
|
||||
'xAxisOrderedValues': ['_all'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,62 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': 'apache: _type',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 13309
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 7196
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'label': 'nginx: _type',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 3278
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 1804
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171499,
|
||||
'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,88 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'rows': [
|
||||
{
|
||||
'label': 'Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1: agent.raw',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 6422,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 3446,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'label': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24: agent.raw',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 5430,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 3010,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'label': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322): agent.raw',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 4735,
|
||||
'y0': 0
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 2542,
|
||||
'y0': 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171501,
|
||||
'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,38 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': 'bytes ranges',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': '0.0-1000.0',
|
||||
'y': 16576
|
||||
},
|
||||
{
|
||||
'x': '1000.0-2000.0',
|
||||
'y': 9005
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171500,
|
||||
'xAxisOrderedValues': ['0.0-1000.0', '1000.0-2000.0'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,242 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': 'http: links',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 144000
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 128237
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 34518
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 10258
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 17188
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'info: links',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 108148
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 96242
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 25889
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 7673
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 12842
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'www.slate.com: links',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 98056
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 87344
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 23577
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 7004
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 11759
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'twitter.com: links',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 74154
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 65963
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 17832
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 5258
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 8906
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'www.www.slate.com: links',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 62591
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 55822
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 15100
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 4564
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 7498
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'hits': 171446
|
||||
};
|
|
@ -1,242 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'rows': [
|
||||
{
|
||||
'label': 'h3: headings',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 144000
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 128235
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 34518
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 10257
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 17188
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'h5: headings',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 144000
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 128235
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 34518
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 10257
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 17188
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'http: headings',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 144000
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 128235
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 34518
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 10257
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 17188
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'success: headings',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 120689
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 107621
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 28916
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 8590
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 14548
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': 'www.slate.com: headings',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 62292
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 55646
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 14823
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 4441
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 7539
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['success', 'info', 'security', 'error', 'warning'],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'hits': 171445
|
||||
};
|
|
@ -1,49 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': 'Top 5 unusual terms in @tags',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'success',
|
||||
'y': 143995
|
||||
},
|
||||
{
|
||||
'x': 'info',
|
||||
'y': 128233
|
||||
},
|
||||
{
|
||||
'x': 'security',
|
||||
'y': 34515
|
||||
},
|
||||
{
|
||||
'x': 'error',
|
||||
'y': 10256
|
||||
},
|
||||
{
|
||||
'x': 'warning',
|
||||
'y': 17188
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171439,
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
File diff suppressed because it is too large
Load diff
|
@ -1,146 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'columns': [
|
||||
{
|
||||
'label': 'logstash: index',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 110710
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 27376
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 16664
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 11264
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 5448
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '2014.11.12: index',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 110643
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 27350
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 16648
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 11257
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 5440
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '2014.11.11: index',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 67
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 26
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 16
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 7
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 8
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
|
||||
'hits': 171462
|
||||
};
|
|
@ -1,100 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'rows': [
|
||||
{
|
||||
'label': '0.0-1000.0: bytes',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 3378
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 762
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 527
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 11258
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 653
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
},
|
||||
{
|
||||
'label': '1000.0-2000.0: bytes',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 6422
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 1591
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 430
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 8
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 561
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
],
|
||||
'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
|
||||
'hits': 171458
|
||||
};
|
|
@ -1,50 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'label': '',
|
||||
'xAxisLabel': 'Top 5 extension',
|
||||
'xAxisOrderedValues': ['jpg', 'css', 'png', 'gif', 'php'],
|
||||
'yAxisLabel': 'Count of documents',
|
||||
'series': [
|
||||
{
|
||||
'label': 'Count',
|
||||
'values': [
|
||||
{
|
||||
'x': 'jpg',
|
||||
'y': 110710
|
||||
},
|
||||
{
|
||||
'x': 'css',
|
||||
'y': 27389
|
||||
},
|
||||
{
|
||||
'x': 'png',
|
||||
'y': 16661
|
||||
},
|
||||
{
|
||||
'x': 'gif',
|
||||
'y': 11269
|
||||
},
|
||||
{
|
||||
'x': 'php',
|
||||
'y': 5447
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'hits': 171476,
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,72 +0,0 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
export default {
|
||||
'xAxisOrderedValues': ['_all'],
|
||||
'yAxisLabel': 'Count',
|
||||
'zAxisLabel': 'machine.os.raw: Descending',
|
||||
'yScale': null,
|
||||
'series': [{
|
||||
'label': 'ios',
|
||||
'id': '1',
|
||||
'yAxisFormatter': _.identity,
|
||||
'values': [{
|
||||
'x': '_all',
|
||||
'y': 2820,
|
||||
'series': 'ios'
|
||||
}]
|
||||
}, {
|
||||
'label': 'win 7',
|
||||
'aggId': '1',
|
||||
'yAxisFormatter': _.identity,
|
||||
'values': [{
|
||||
'x': '_all',
|
||||
'y': 2319,
|
||||
'series': 'win 7'
|
||||
}]
|
||||
}, {
|
||||
'label': 'win 8',
|
||||
'id': '1',
|
||||
'yAxisFormatter': _.identity,
|
||||
'values': [{
|
||||
'x': '_all',
|
||||
'y': 1835,
|
||||
'series': 'win 8'
|
||||
}]
|
||||
}, {
|
||||
'label': 'windows xp service pack 2 version 20123452',
|
||||
'id': '1',
|
||||
'yAxisFormatter': _.identity,
|
||||
'values': [{
|
||||
'x': '_all',
|
||||
'y': 734,
|
||||
'series': 'win xp'
|
||||
}]
|
||||
}, {
|
||||
'label': 'osx',
|
||||
'id': '1',
|
||||
'yAxisFormatter': _.identity,
|
||||
'values': [{
|
||||
'x': '_all',
|
||||
'y': 1352,
|
||||
'series': 'osx'
|
||||
}]
|
||||
}],
|
||||
'hits': 14005,
|
||||
'xAxisFormatter': function (val) {
|
||||
if (_.isObject(val)) {
|
||||
return JSON.stringify(val);
|
||||
}
|
||||
else if (val == null) {
|
||||
return '';
|
||||
}
|
||||
else {
|
||||
return '' + val;
|
||||
}
|
||||
},
|
||||
'yAxisFormatter': function (val) {
|
||||
return val;
|
||||
},
|
||||
'tooltipFormatter': function (d) {
|
||||
return d;
|
||||
}
|
||||
};
|
|
@ -1,128 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import percentileTestdata from './testdata_linechart_percentile.json';
|
||||
import percentileTestdataResult from './testdata_linechart_percentile_result.json';
|
||||
|
||||
import { vislibPointSeriesTypes as pointSeriesConfig } from '../../../lib/types/point_series';
|
||||
|
||||
describe('Point Series Config Type Class Test Suite', function() {
|
||||
let parsedConfig;
|
||||
const histogramConfig = {
|
||||
type: 'histogram',
|
||||
addLegend: true,
|
||||
tooltip: {
|
||||
show: true,
|
||||
},
|
||||
categoryAxes: [
|
||||
{
|
||||
id: 'CategoryAxis-1',
|
||||
type: 'category',
|
||||
title: {},
|
||||
},
|
||||
],
|
||||
valueAxes: [
|
||||
{
|
||||
id: 'ValueAxis-1',
|
||||
type: 'value',
|
||||
labels: {},
|
||||
title: {},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const data = {
|
||||
get: prop => {
|
||||
return data[prop] || data.data[prop] || null;
|
||||
},
|
||||
getLabels: () => [],
|
||||
data: {
|
||||
hits: 621,
|
||||
ordered: {
|
||||
date: true,
|
||||
interval: 30000,
|
||||
max: 1408734982458,
|
||||
min: 1408734082458,
|
||||
},
|
||||
series: [
|
||||
{ label: 's1', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's2', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's3', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's4', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's5', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's6', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's7', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's8', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's9', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's10', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's11', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's12', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's13', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's14', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's15', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's16', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's17', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's18', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's19', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's20', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's21', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's22', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's23', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's24', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's25', values: [{ x: 1408734060000, y: 8 }] },
|
||||
{ label: 's26', values: [{ x: 1408734060000, y: 8 }] },
|
||||
],
|
||||
xAxisLabel: 'Date Histogram',
|
||||
yAxisLabel: 'series',
|
||||
yAxisFormatter: () => 'test',
|
||||
},
|
||||
};
|
||||
|
||||
describe('histogram chart', function() {
|
||||
beforeEach(function() {
|
||||
parsedConfig = pointSeriesConfig.column(histogramConfig, data);
|
||||
});
|
||||
it('should not throw an error when more than 25 series are provided', function() {
|
||||
expect(parsedConfig.error).to.be.undefined;
|
||||
});
|
||||
|
||||
it('should set axis title and formatter from data', () => {
|
||||
expect(parsedConfig.categoryAxes[0].title.text).to.equal(data.data.xAxisLabel);
|
||||
expect(parsedConfig.valueAxes[0].labels.axisFormatter).to.not.be.undefined;
|
||||
});
|
||||
});
|
||||
|
||||
describe('line chart', function() {
|
||||
beforeEach(function() {
|
||||
const percentileDataObj = {
|
||||
get: prop => {
|
||||
return data[prop] || data.data[prop] || null;
|
||||
},
|
||||
getLabels: () => [],
|
||||
data: percentileTestdata.data,
|
||||
};
|
||||
parsedConfig = pointSeriesConfig.line(percentileTestdata.cfg, percentileDataObj);
|
||||
});
|
||||
it('should render a percentile line chart', function() {
|
||||
expect(JSON.stringify(parsedConfig)).to.eql(JSON.stringify(percentileTestdataResult));
|
||||
});
|
||||
});
|
||||
});
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import './lib/types/pie';
|
||||
import './lib/types/point_series';
|
||||
import './lib/types';
|
||||
import './lib/layout/layout_types';
|
||||
import './lib/data';
|
||||
import './visualizations/vis_types';
|
||||
import { Vis } from './vis';
|
||||
|
||||
// prefetched for faster optimization runs
|
||||
// end prefetching
|
||||
|
||||
/**
|
||||
* Provides the Kibana4 Visualization Library
|
||||
*
|
||||
* @module vislib
|
||||
* @main vislib
|
||||
* @return {Object} Contains the version number and the Vis Class for creating visualizations
|
||||
*/
|
||||
export function VislibProvider() {
|
||||
return {
|
||||
version: '0.0.0',
|
||||
Vis,
|
||||
};
|
||||
}
|
8
src/plugins/vis_type_vislib/kibana.json
Normal file
8
src/plugins/vis_type_vislib/kibana.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"id": "visTypeVislib",
|
||||
"version": "kibana",
|
||||
"server": true,
|
||||
"ui": true,
|
||||
"requiredPlugins": ["charts", "data", "expressions", "visualizations"],
|
||||
"optionalPlugins": ["visTypeXy"]
|
||||
}
|
|
@ -23,8 +23,8 @@ import { palettes } from '@elastic/eui/lib/services';
|
|||
// @ts-ignore
|
||||
import { euiPaletteColorBlind } from '@elastic/eui/lib/services';
|
||||
|
||||
import { AggGroupNames } from '../../../../plugins/data/public';
|
||||
import { Schemas } from '../../../../plugins/vis_default_editor/public';
|
||||
import { AggGroupNames } from '../../data/public';
|
||||
import { Schemas } from '../../vis_default_editor/public';
|
||||
import {
|
||||
Positions,
|
||||
ChartTypes,
|
||||
|
@ -39,7 +39,7 @@ import {
|
|||
import { getAreaOptionTabs, countLabel } from './utils/common_config';
|
||||
import { createVislibVisController } from './vis_controller';
|
||||
import { VisTypeVislibDependencies } from './plugin';
|
||||
import { Rotates } from '../../../../plugins/charts/public';
|
||||
import { Rotates } from '../../charts/public';
|
||||
|
||||
export const createAreaVisTypeDefinition = (deps: VisTypeVislibDependencies) => ({
|
||||
name: 'area',
|
|
@ -22,8 +22,8 @@ import { EuiPanel, EuiSpacer, EuiTitle } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { SwitchOption, TextInputOption } from '../../../../../../../plugins/charts/public';
|
||||
import { GaugeOptionsInternalProps } from '.';
|
||||
import { SwitchOption, TextInputOption } from '../../../../../charts/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
|
||||
function LabelsPanel({ stateParams, setValue, setGaugeValue }: GaugeOptionsInternalProps) {
|
||||
return (
|
|
@ -29,8 +29,8 @@ import {
|
|||
SetColorRangeValue,
|
||||
SwitchOption,
|
||||
ColorSchemas,
|
||||
} from '../../../../../../../plugins/charts/public';
|
||||
import { GaugeOptionsInternalProps } from '.';
|
||||
} from '../../../../../charts/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
import { Gauge } from '../../../gauge';
|
||||
|
||||
function RangesPanel({
|
|
@ -22,9 +22,9 @@ import { EuiPanel, EuiSpacer, EuiTitle } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { SelectOption } from '../../../../../../../plugins/charts/public';
|
||||
import { GaugeOptionsInternalProps } from '.';
|
||||
import { AggGroupNames } from '../../../../../../../plugins/data/public';
|
||||
import { SelectOption } from '../../../../../charts/public';
|
||||
import { GaugeOptionsInternalProps } from '../gauge';
|
||||
import { AggGroupNames } from '../../../../../data/public';
|
||||
|
||||
function StylePanel({ aggs, setGaugeValue, stateParams, vis }: GaugeOptionsInternalProps) {
|
||||
const diasableAlignment =
|
|
@ -33,7 +33,7 @@ import {
|
|||
SwitchOption,
|
||||
SetColorSchemaOptionsValue,
|
||||
SetColorRangeValue,
|
||||
} from '../../../../../../../plugins/charts/public';
|
||||
} from '../../../../../charts/public';
|
||||
import { HeatmapVisParams } from '../../../heatmap';
|
||||
import { ValueAxis } from '../../../types';
|
||||
import { LabelsPanel } from './labels_panel';
|
|
@ -26,7 +26,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
|
|||
import { VisOptionsProps } from 'src/plugins/vis_default_editor/public';
|
||||
import { ValueAxis } from '../../../types';
|
||||
import { HeatmapVisParams } from '../../../heatmap';
|
||||
import { SwitchOption } from '../../../../../../../plugins/charts/public';
|
||||
import { SwitchOption } from '../../../../../charts/public';
|
||||
|
||||
const VERTICAL_ROTATION = 270;
|
||||
|
|
@ -25,8 +25,6 @@ import { Positions } from '../../../utils/collections';
|
|||
import { LabelOptions } from './label_options';
|
||||
import { categoryAxis, vis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
describe('CategoryAxisPanel component', () => {
|
||||
let setCategoryAxis: jest.Mock;
|
||||
let onPositionChanged: jest.Mock;
|
|
@ -25,7 +25,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
|
|||
|
||||
import { VisOptionsProps } from 'src/plugins/vis_default_editor/public';
|
||||
import { Axis } from '../../../types';
|
||||
import { SelectOption, SwitchOption } from '../../../../../../../plugins/charts/public';
|
||||
import { SelectOption, SwitchOption } from '../../../../../charts/public';
|
||||
import { LabelOptions, SetAxisLabel } from './label_options';
|
||||
import { Positions } from '../../../utils/collections';
|
||||
|
|
@ -25,8 +25,6 @@ import { LineOptions } from './line_options';
|
|||
import { ChartTypes, ChartModes } from '../../../utils/collections';
|
||||
import { valueAxis, seriesParam, vis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
describe('ChartOptions component', () => {
|
||||
let setParamByIndex: jest.Mock;
|
||||
let changeValueAxis: jest.Mock;
|
|
@ -22,12 +22,12 @@ import React, { useMemo, useCallback } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui';
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { SeriesParam, ValueAxis } from '../../../types';
|
||||
import { ChartTypes } from '../../../utils/collections';
|
||||
import { SelectOption } from '../../../../../../../plugins/charts/public';
|
||||
import { SelectOption } from '../../../../../charts/public';
|
||||
import { LineOptions } from './line_options';
|
||||
import { SetParamByIndex, ChangeValueAxis } from './';
|
||||
import { SetParamByIndex, ChangeValueAxis } from '.';
|
||||
|
||||
export type SetChart = <T extends keyof SeriesParam>(paramName: T, value: SeriesParam[T]) => void;
|
||||
|
|
@ -28,8 +28,6 @@ const DEFAULT_Y_EXTENTS = 'defaultYExtents';
|
|||
const SCALE = 'scale';
|
||||
const SET_Y_EXTENTS = 'setYExtents';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
describe('CustomExtentsOptions component', () => {
|
||||
let setValueAxis: jest.Mock;
|
||||
let setValueAxisScale: jest.Mock;
|
|
@ -21,7 +21,7 @@ import React, { useCallback, useEffect } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { ValueAxis } from '../../../types';
|
||||
import { NumberInputOption, SwitchOption } from '../../../../../../../plugins/charts/public';
|
||||
import { NumberInputOption, SwitchOption } from '../../../../../charts/public';
|
||||
import { YExtents } from './y_extents';
|
||||
import { SetScale } from './value_axis_options';
|
||||
|
|
@ -23,8 +23,6 @@ import { LabelOptions, LabelOptionsProps } from './label_options';
|
|||
import { TruncateLabelsOption } from '../../common';
|
||||
import { valueAxis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
const FILTER = 'filter';
|
||||
const ROTATE = 'rotate';
|
||||
const DISABLED = 'disabled';
|
|
@ -26,7 +26,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
|
|||
import { Axis } from '../../../types';
|
||||
import { TruncateLabelsOption } from '../../common';
|
||||
import { getRotateOptions } from '../../../utils/collections';
|
||||
import { SelectOption, SwitchOption } from '../../../../../../../plugins/charts/public';
|
||||
import { SelectOption, SwitchOption } from '../../../../../charts/public';
|
||||
|
||||
export type SetAxisLabel = <T extends keyof Axis['labels']>(
|
||||
paramName: T,
|
|
@ -20,11 +20,9 @@
|
|||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { LineOptions, LineOptionsParams } from './line_options';
|
||||
import { NumberInputOption } from '../../../../../../../plugins/charts/public';
|
||||
import { NumberInputOption } from '../../../../../charts/public';
|
||||
import { seriesParam, vis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
const LINE_WIDTH = 'lineWidth';
|
||||
const DRAW_LINES = 'drawLinesBetweenPoints';
|
||||
|
|
@ -22,13 +22,9 @@ import React, { useCallback } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui';
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { SeriesParam } from '../../../types';
|
||||
import {
|
||||
NumberInputOption,
|
||||
SelectOption,
|
||||
SwitchOption,
|
||||
} from '../../../../../../../plugins/charts/public';
|
||||
import { NumberInputOption, SelectOption, SwitchOption } from '../../../../../charts/public';
|
||||
import { SetChart } from './chart_options';
|
||||
|
||||
export interface LineOptionsParams {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { Axis, ValueAxis, SeriesParam } from '../../../types';
|
||||
import {
|
||||
ChartTypes,
|
||||
|
@ -31,7 +31,7 @@ import {
|
|||
getPositions,
|
||||
getInterpolationModes,
|
||||
} from '../../../utils/collections';
|
||||
import { Style } from '../../../../../../../plugins/charts/public';
|
||||
import { Style } from '../../../../../charts/public';
|
||||
|
||||
const defaultValueAxisId = 'ValueAxis-1';
|
||||
|
|
@ -23,10 +23,10 @@ import { EuiPanel, EuiTitle, EuiSpacer, EuiAccordion } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { ValueAxis, SeriesParam } from '../../../types';
|
||||
import { ChartOptions } from './chart_options';
|
||||
import { SetParamByIndex, ChangeValueAxis } from './';
|
||||
import { SetParamByIndex, ChangeValueAxis } from '.';
|
||||
|
||||
export interface SeriesPanelProps {
|
||||
changeValueAxis: ChangeValueAxis;
|
|
@ -25,8 +25,6 @@ import { Positions } from '../../../utils/collections';
|
|||
import { mountWithIntl } from 'test_utils/enzyme_helpers';
|
||||
import { valueAxis, seriesParam, vis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
describe('ValueAxesPanel component', () => {
|
||||
let setParamByIndex: jest.Mock;
|
||||
let onValueAxisPositionChanged: jest.Mock;
|
|
@ -31,10 +31,10 @@ import {
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { SeriesParam, ValueAxis } from '../../../types';
|
||||
import { ValueAxisOptions } from './value_axis_options';
|
||||
import { SetParamByIndex } from './';
|
||||
import { SetParamByIndex } from '.';
|
||||
|
||||
export interface ValueAxesPanelProps {
|
||||
isCategoryAxisHorizontal: boolean;
|
|
@ -21,13 +21,11 @@ import React from 'react';
|
|||
import { shallow } from 'enzyme';
|
||||
import { ValueAxisOptions, ValueAxisOptionsParams } from './value_axis_options';
|
||||
import { ValueAxis } from '../../../types';
|
||||
import { TextInputOption } from '../../../../../../../plugins/charts/public';
|
||||
import { TextInputOption } from '../../../../../charts/public';
|
||||
import { LabelOptions } from './label_options';
|
||||
import { ScaleTypes, Positions } from '../../../utils/collections';
|
||||
import { valueAxis, vis } from './mocks';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
|
||||
const POSITION = 'position';
|
||||
|
||||
interface PositionOption {
|
|
@ -21,18 +21,14 @@ import React, { useCallback, useMemo } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { EuiSpacer, EuiAccordion, EuiHorizontalRule } from '@elastic/eui';
|
||||
|
||||
import { Vis } from '../../../../../../../plugins/visualizations/public';
|
||||
import { Vis } from '../../../../../visualizations/public';
|
||||
import { ValueAxis } from '../../../types';
|
||||
import { Positions } from '../../../utils/collections';
|
||||
import {
|
||||
SelectOption,
|
||||
SwitchOption,
|
||||
TextInputOption,
|
||||
} from '../../../../../../../plugins/charts/public';
|
||||
import { SelectOption, SwitchOption, TextInputOption } from '../../../../../charts/public';
|
||||
import { LabelOptions, SetAxisLabel } from './label_options';
|
||||
import { CustomExtentsOptions } from './custom_extents_options';
|
||||
import { isAxisHorizontal } from './utils';
|
||||
import { SetParamByIndex } from './';
|
||||
import { SetParamByIndex } from '.';
|
||||
|
||||
export type SetScale = <T extends keyof ValueAxis['scale']>(
|
||||
paramName: T,
|
|
@ -21,9 +21,7 @@ import React from 'react';
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import { YExtents, YExtentsProps } from './y_extents';
|
||||
import { ScaleTypes } from '../../../utils/collections';
|
||||
import { NumberInputOption } from '../../../../../../../plugins/charts/public';
|
||||
|
||||
jest.mock('ui/new_platform');
|
||||
import { NumberInputOption } from '../../../../../charts/public';
|
||||
|
||||
describe('YExtents component', () => {
|
||||
let setMultipleValidity: jest.Mock;
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue