(opts: CostQueryOpts = {})
| 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}`); |
no test coverage detected