Skip to content
Snippets Groups Projects
Commit c202c767 authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Merge branch 'add-api-to-scaling-support' into 'develop'

Add api to scaling support

See merge request !211
parents f2a18fab bf012b1f
Branches
No related tags found
1 merge request!211Add api to scaling support
...@@ -702,7 +702,7 @@ export class AppInstanceComponent implements OnInit, OnDestroy { ...@@ -702,7 +702,7 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
} }
private getDeploymentId(): number { private getDeploymentId(): string {
return this.appInstance.application.application.appDeploymentSpec.id return this.appInstance.internalId
} }
} }
...@@ -153,10 +153,10 @@ export class AppInstanceService extends GenericDataService { ...@@ -153,10 +153,10 @@ export class AppInstanceService extends GenericDataService {
return this.http.get<Map<string, string>>(this.getUrl() + `${appInstanceId}/parameters`); return this.http.get<Map<string, string>>(this.getUrl() + `${appInstanceId}/parameters`);
} }
public scaleDown(appInstanceId: number): Observable<any> { public scaleDown(appInstanceId: string): Observable<any> {
return this.http.put(this.getUrl() + `${appInstanceId}/scale-down`, null) return this.http.put(this.getUrl() + `${appInstanceId}/scale-down`, null)
} }
public scaleUp(appInstanceId: number): Observable<any> { public scaleUp(appInstanceId: string): Observable<any> {
return this.http.put(this.getUrl() + `${appInstanceId}/scale-up`, null) return this.http.put(this.getUrl() + `${appInstanceId}/scale-up`, null)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment