|
|
@ -26,14 +26,6 @@ const BACKEND_VARIABLE_NAME = 'HASTIC_SERVER_URL'; |
|
|
|
|
|
|
|
|
|
|
|
class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
static template = template; |
|
|
|
static template = template; |
|
|
|
ANALYTIC_TYPES: Array<{name: string, value: string}> = [ |
|
|
|
|
|
|
|
{ name: 'General', value: 'GENERAL' }, |
|
|
|
|
|
|
|
{ name: 'Peaks', value: 'PEAK' }, |
|
|
|
|
|
|
|
{ name: 'Troughs', value: 'TROUGH' }, |
|
|
|
|
|
|
|
{ name: 'Jumps', value: 'JUMP' }, |
|
|
|
|
|
|
|
{ name: 'Drops', value: 'DROP' }, |
|
|
|
|
|
|
|
{ name: 'Custom', value: 'CUSTOM' } |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hiddenSeries: any = {}; |
|
|
|
hiddenSeries: any = {}; |
|
|
|
seriesList: any = []; |
|
|
|
seriesList: any = []; |
|
|
@ -141,6 +133,14 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
seriesOverrides: [], |
|
|
|
seriesOverrides: [], |
|
|
|
thresholds: [], |
|
|
|
thresholds: [], |
|
|
|
anomalyType: '', |
|
|
|
anomalyType: '', |
|
|
|
|
|
|
|
analyticUnitTypes: [ |
|
|
|
|
|
|
|
{ name: 'General', value: 'GENERAL' }, |
|
|
|
|
|
|
|
{ name: 'Peaks', value: 'PEAK' }, |
|
|
|
|
|
|
|
{ name: 'Troughs', value: 'TROUGH' }, |
|
|
|
|
|
|
|
{ name: 'Jumps', value: 'JUMP' }, |
|
|
|
|
|
|
|
{ name: 'Drops', value: 'DROP' }, |
|
|
|
|
|
|
|
{ name: 'Custom', value: 'CUSTOM' } |
|
|
|
|
|
|
|
] |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** @ngInject */ |
|
|
|
/** @ngInject */ |
|
|
|