Skip to content

Commit

Permalink
[reporting] remove a legacy cross-plugin import (#56354) (#56462)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored Jan 31, 2020
1 parent a8f5bfd commit 815fb39
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +36,7 @@ export function getReportingUsageCollector(
*/
formatForBulkUpload: (result: RangeStats) => {
return {
type: KIBANA_STATS_TYPE_MONITORING,
type: METATYPE,
payload: {
usage: {
xpack: {
Expand Down

0 comments on commit 815fb39

Please sign in to comment.