@spotinst/spinnaker-deck
Version:
Spinnaker-Deck service, forked with support to Spotinst
9 lines (7 loc) • 330 B
text/typescript
import { REST } from 'core/api';
import { ISnapshot } from 'core/domain';
export class SnapshotReader {
public static getSnapshotHistory(application: string, account: string, params = {}): PromiseLike<ISnapshot[]> {
return REST('/applications').path(application, 'snapshots', account, 'history').query(params).get();
}
}