alerting_srv.ts 434 B

12345678910111213141516171819202122
  1. ///<reference path="../../headers/common.d.ts" />
  2. import config from 'app/core/config';
  3. import angular from 'angular';
  4. import moment from 'moment';
  5. import _ from 'lodash';
  6. import coreModule from 'app/core/core_module';
  7. export class AlertingSrv {
  8. dashboard: any;
  9. alerts: any[];
  10. init(dashboard, alerts) {
  11. this.dashboard = dashboard;
  12. this.alerts = alerts || [];
  13. }
  14. }
  15. coreModule.service('alertingSrv', AlertingSrv);