Skip to content

Commit

Permalink
removing toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Oct 15, 2019
1 parent 1b25fea commit 443537b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
*/

import { layout } from './layout';
import { toolbar } from './toolbar';
import { metrics } from './metrics';
import { InventoryModel } from '../types';

export const container: InventoryModel = {
id: 'container',
requiredModules: ['docker'],
layout,
toolbar,
metrics,
};

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
*/

import { layout } from './layout';
import { toolbar } from './toolbar';
import { metrics } from './metrics';
import { InventoryModel } from '../types';

export const host: InventoryModel = {
id: 'host',
requiredModules: ['system'],
layout,
toolbar,
metrics,
};

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
*/

import { layout } from './layout';
import { toolbar } from './toolbar';
import { metrics } from './metrics';
import { InventoryModel } from '../types';
export const pod: InventoryModel = {
id: 'pod',
requiredModules: ['kubernetes'],
layout,
toolbar,
metrics,
};
45 changes: 0 additions & 45 deletions x-pack/legacy/plugins/infra/common/inventory_models/pod/toolbar.ts

This file was deleted.

19 changes: 0 additions & 19 deletions x-pack/legacy/plugins/infra/common/inventory_models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,24 +272,6 @@ export const SnapshotModelRT = rt.record(
);
export type SnapshotModel = rt.TypeOf<typeof SnapshotModelRT>;

export const InventoryToolbarMericRT = rt.type({
type: rt.literal('metric'),
options: rt.array(rt.type({ text: rt.string, value: rt.string })),
});

export const InventoryToolbarGroupByRT = rt.type({
type: rt.literal('groupBy'),
options: rt.array(rt.type({ text: rt.string, value: rt.string })),
});

export const InventoryToolbarItemRT = rt.union([
InventoryToolbarMericRT,
InventoryToolbarGroupByRT,
]);

export const InventoryToolbarRT = rt.array(InventoryToolbarItemRT);
export type InventoryToolbar = rt.TypeOf<typeof InventoryToolbarRT>;

export interface InventoryMetrics {
tsvb: { [name: string]: TSVBMetricModelCreator };
snapshot?: { [name: string]: SnapshotModel };
Expand All @@ -299,6 +281,5 @@ export interface InventoryModel {
id: string;
requiredModules: string[];
layout: InventoryDetailLayoutCreator;
toolbar: InventoryToolbar;
metrics: InventoryMetrics;
}

0 comments on commit 443537b

Please sign in to comment.