Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipb committed Jun 25, 2020
1 parent 37be9d0 commit d7e0f7f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ describe('ExpressionChart', () => {
logColumns: [],
metricAlias: 'metricbeat-*',
logAlias: 'filebeat-*',
inventoryDefaultView: 'host',
metricsExplorerDefaultView: 'host',
fields: {
timestamp: '@timestamp',
message: ['message'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { useCallback } from 'react';
import { fold } from 'fp-ts/lib/Either';
import { identity } from 'fp-ts/lib/function';
import { pipe } from 'fp-ts/lib/pipeable';
Expand All @@ -22,16 +21,6 @@ import {
SnapshotMetricType,
} from '../../../../../common/inventory_models/types';

interface SnapshotData {
filterQuery: string | null | undefined;
metric: { type: SnapshotMetricType };
groupBy: SnapshotGroupBy;
nodeType: InventoryItemType;
sourceId: string;
currentTime: number;
accountId: string;
region: string;
}
export function useSnapshot(
filterQuery: string | null | undefined,
metric: { type: SnapshotMetricType },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { MetricsExplorerGroupBy } from './group_by';
import { MetricsExplorerAggregationPicker } from './aggregation';
import { MetricsExplorerChartOptions as MetricsExplorerChartOptionsComponent } from './chart_options';
import { SavedViewsToolbarControls } from '../../../../components/saved_views/toolbar_control';
import { MetricExplorerViewState } from '../hooks/use_metric_explorer_state';
import { metricsExplorerViewSavedObjectName } from '../../../../../common/saved_objects/metrics_explorer_view';
import { useKibanaUiSetting } from '../../../../utils/use_kibana_ui_setting';
import { mapKibanaQuickRangesToDatePickerRanges } from '../../../../utils/map_timepicker_quickranges_to_datepicker_ranges';
import { ToolbarPanel } from '../../../../components/toolbar_panel';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const MetricsExplorerPage = ({ source, derivedIndexPattern }: MetricsExpl
handleTimeChange,
handleRefresh,
handleLoadMore,
defaultViewState,
onViewStateChange,
} = useMetricsExplorerState(source, derivedIndexPattern);
const { currentView } = useSavedViewContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export const source = {
logAlias: 'filebeat-*',
metricAlias: 'metricbeat-*',
logColumns: [],
inventoryDefaultView: 'host',
metricsExplorerDefaultView: 'host',
fields: {
host: 'host.name',
container: 'container.id',
Expand Down

0 comments on commit d7e0f7f

Please sign in to comment.