Skip to content

Commit

Permalink
Sorting metrics list (#451)
Browse files Browse the repository at this point in the history
* Add sorting for listMetrics
  • Loading branch information
anatheka authored Jun 29, 2023
1 parent bb3950e commit a588e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ export async function updateControlInScope(scope: ControlInScope, fetch = window
* @returns an array of {@link Metric}s.
*/
export async function listMetrics(fetch = window.fetch): Promise<Metric[]> {
const apiUrl = clouditorize(`/v1/orchestrator/metrics?pageSize=200`)
const apiUrl = clouditorize(`/v1/orchestrator/metrics?pageSize=200&orderBy=id&asc=true`)

return fetch(apiUrl, {
method: 'GET',
Expand Down

0 comments on commit a588e1d

Please sign in to comment.