Skip to content

Commit

Permalink
[reporting] remove a legacy cross-plugin import (elastic#56354)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored and John Schulz committed Feb 4, 2020
1 parent 662a39d commit ab84c5a
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 ab84c5a

Please sign in to comment.