Skip to content

Commit

Permalink
Updated for 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanF committed May 7, 2017
1 parent 17ee404 commit 4e1e714
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/health_metric_vis.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import 'plugins/health_metric_vis/health_metric_vis.less';
import 'plugins/health_metric_vis/health_metric_vis_controller';
import VisVisTypeProvider from 'ui/vis/vis_type';
import TemplateVisTypeTemplateVisTypeProvider from 'ui/template_vis_type/template_vis_type';
import VisSchemasProvider from 'ui/vis/schemas';

import image from './images/icon-colored-number.svg'

require('ui/registry/vis_types').register(HealthMetricVisProvider);

function HealthMetricVisProvider(Private) {
const VisType = Private(VisVisTypeProvider);
const TemplateVisType = Private(TemplateVisTypeTemplateVisTypeProvider);
const Schemas = Private(VisSchemasProvider);

Expand All @@ -16,8 +18,9 @@ function HealthMetricVisProvider(Private) {
name: 'health-metric',
title: 'Health Metric',
description: 'A numeric health metric, can show a number and color it accordingly.',
icon: 'fa-calculator',
image,
template: require('plugins/health_metric_vis/health_metric_vis.html'),
category: VisType.CATEGORY.DATA,
params: {
defaults: {
handleNoResults: true,
Expand All @@ -39,6 +42,7 @@ function HealthMetricVisProvider(Private) {
title: 'Metric',
min: 1,
max: 1,
aggFilter: ['!derivative'],
defaults: [
{ type: 'count', schema: 'metric' }
]
Expand Down
16 changes: 16 additions & 0 deletions public/images/icon-colored-number.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e1e714

Please sign in to comment.