import { StatusValue } from "../model/status-value.model"; import { HostConfig } from '../config/host.config'; import { Injectable } from '@angular/core'; import { HttpHandler } from './http-handler.service'; import { Page } from '../response/page.type'; @Injectable({ providedIn: 'root', }) export class TestService { static PATH = '/agent'; constructor(private httpHandler: HttpHandler) {} testCallCommand(gid: number,gsn: string,dsn: string,q: boolean, header?: any): Promise { return this.httpHandler.(`${HostConfig.DEV_HOST}${TestService.PATH}?gid=${gid}&gsn=${gsn}&dsn=${dsn}&q=${q}`, header); } testCallStopSLA(gid: number,gsn: string,dsn: string,start: boolean, header?: any): Promise { return this.httpHandler.(`${HostConfig.DEV_HOST}${TestService.PATH}?gid=${gid}&gsn=${gsn}&dsn=${dsn}&start=${start}`, header); } testStatueValues(statusValue: StatusValue, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${TestService.PATH}/testStatueValues` ,statusValue, header); } }