[reporting] remove a legacy cross-plugin import (#56354) (#56462)

This commit is contained in:
Tim Sullivan 2020-01-31 09:49:53 -07:00 committed by GitHub
parent a8f5bfdd2e
commit 815fb39aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,13 +5,14 @@
*/
import { UsageCollectionSetup } from 'src/plugins/usage_collection/server';
// @ts-ignore untyped module
import { KIBANA_STATS_TYPE_MONITORING } from '../../../monitoring/common/constants';
import { ServerFacade, ExportTypesRegistry, ESCallCluster } from '../../types';
import { KIBANA_REPORTING_TYPE } from '../../common/constants';
import { getReportingUsage } from './get_reporting_usage';
import { RangeStats } from './types';
// places the reporting data as kibana stats
const METATYPE = 'kibana_stats';
/*
* @param {Object} server
* @return {Object} kibana usage stats type collection object
@ -35,7 +36,7 @@ export function getReportingUsageCollector(
*/
formatForBulkUpload: (result: RangeStats) => {
return {
type: KIBANA_STATS_TYPE_MONITORING,
type: METATYPE,
payload: {
usage: {
xpack: {