Revision 50883
Added by Myrto Koukouli about 6 years ago
monitor.service.ts | ||
---|---|---|
20 | 20 |
|
21 | 21 |
@Injectable () |
22 | 22 |
export class MonitorService { |
23 |
private apiUrl = apiUrl; |
|
23 |
private apiUrl = apiUrl + '/monitor/';
|
|
24 | 24 |
|
25 | 25 |
constructor(private http: Http) { } |
26 | 26 |
|
27 | 27 |
getJobSummary(jobId: string, groupBy: string): Observable<StoredJob> { |
28 |
let url = `${this.apiUrl}/monitor/getJobSummary?jobId=${jobId}&groupBy=${groupBy}`;
|
|
28 |
let url = `${this.apiUrl}getJobSummary?jobId=${jobId}&groupBy=${groupBy}`; |
|
29 | 29 |
console.log(`knocking on: ${url}`); |
30 | 30 |
return this.http.get(url) |
31 | 31 |
.map(res => <StoredJob>res.json() ) |
... | ... | |
40 | 40 |
dateTo: string, |
41 | 41 |
validationStatus: string, |
42 | 42 |
includeJobsTotal): Observable<JobsOfUser> { |
43 |
let url = `${this.apiUrl}/monitor/getJobsOfUser?user=${userEmail}`;
|
|
43 |
let url = `${this.apiUrl}getJobsOfUser?user=${userEmail}`; |
|
44 | 44 |
if (jobType != '') { |
45 | 45 |
url = `${url}&jobType=${encodeURI(jobType)}&offset=${offset}&limit=${limit}&validationStatus=${validationStatus}&includeJobsTotal=${includeJobsTotal}`; |
46 | 46 |
} else { |
Also available in: Unified diff
finished subscriptions and notifications