update
This commit is contained in:
@@ -20,6 +20,8 @@ import {
|
||||
IPlatformService,
|
||||
IPlatformResource,
|
||||
TPlatformServiceType,
|
||||
INetworkTarget,
|
||||
INetworkStats,
|
||||
} from '../types/api.types';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
@@ -178,4 +180,13 @@ export class ApiService {
|
||||
async getServicePlatformResources(serviceName: string): Promise<IApiResponse<IPlatformResource[]>> {
|
||||
return firstValueFrom(this.http.get<IApiResponse<IPlatformResource[]>>(`/api/services/${serviceName}/platform-resources`));
|
||||
}
|
||||
|
||||
// Network
|
||||
async getNetworkTargets(): Promise<IApiResponse<INetworkTarget[]>> {
|
||||
return firstValueFrom(this.http.get<IApiResponse<INetworkTarget[]>>('/api/network/targets'));
|
||||
}
|
||||
|
||||
async getNetworkStats(): Promise<IApiResponse<INetworkStats>> {
|
||||
return firstValueFrom(this.http.get<IApiResponse<INetworkStats>>('/api/network/stats'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user