MCPcopy Create free account
hub / github.com/astercloud/aster / getCosts

Method getCosts

studio/src/api/client.ts:103–106  ·  view source on GitHub ↗
(opts: CostQueryOpts = {})

Source from the content-addressed store, hash-verified

101 }
102
103 async getCosts(opts: CostQueryOpts = {}): Promise<CostBreakdown> {
104 const query = this.buildQueryString(opts);
105 return this.fetch<CostBreakdown>(`/dashboard/metrics/costs${query}`);
106 }
107
108 async getPerformance(period: string = '24h'): Promise<PerformanceStats> {
109 return this.fetch<PerformanceStats>(`/dashboard/metrics/performance?period=${period}`);

Callers 1

useCostsFunction · 0.80

Calls 2

buildQueryStringMethod · 0.95
fetchMethod · 0.95

Tested by

no test coverage detected