mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
23 lines
434 B
TypeScript
23 lines
434 B
TypeScript
///<reference path="../../headers/common.d.ts" />
|
|
|
|
import config from 'app/core/config';
|
|
import angular from 'angular';
|
|
import moment from 'moment';
|
|
import _ from 'lodash';
|
|
|
|
import coreModule from 'app/core/core_module';
|
|
|
|
export class AlertingSrv {
|
|
dashboard: any;
|
|
alerts: any[];
|
|
|
|
init(dashboard, alerts) {
|
|
this.dashboard = dashboard;
|
|
this.alerts = alerts || [];
|
|
}
|
|
}
|
|
|
|
|
|
coreModule.service('alertingSrv', AlertingSrv);
|
|
|