This commit is contained in:
insanity 2018-06-05 20:25:04 +09:00
parent f81f4ae030
commit f6021b9951

View File

@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
import { RPCService } from '@loafer/ng-rpc';
import { Target } from '@overflow/commons-typescript/model/target';
import { Host, Service } from '@overflow/commons-typescript/model/discovery';
@Injectable()
@ -15,6 +16,10 @@ export class TargetService {
}
public registDiscoveredTargets(probeID: number, hosts: Host[], services: Service[]): Observable<Target> {
return this.rpcService.call('TargetService.registDiscoveredTargets', probeID, hosts, services);
}
public modify(target: Target): Observable<Target> {
return this.rpcService.call('TargetService.modify', target);
}