Skip to content
alarm.service.ts 543 B
Newer Older
wangqinghua's avatar
wangqinghua committed
import { HttpClient } from "@angular/common/http";
import {Observable} from "rxjs/Rx";
import { Injectable } from '@angular/core';
import {SERVER_API_URL} from "../app.constants";

@Injectable()
export class AlarmService {

    constructor(private http: HttpClient) {
    }

wangqinghua's avatar
wangqinghua committed
    //告警list
    eventFind(data): Observable<any>{
        return this.http.post(SERVER_API_URL + '/event/find',data);
wangqinghua's avatar
wangqinghua committed
    }

wangqinghua's avatar
wangqinghua committed
    //告警推送日志
    alertFind(data): Observable<any>{
        return this.http.post(SERVER_API_URL + '/alert/find',data);
    }
wangqinghua's avatar
wangqinghua committed
}