diff --git a/components/PerformanceList/index.tsx b/components/PerformanceList/index.tsx index a00c83f..d1f9ca6 100644 --- a/components/PerformanceList/index.tsx +++ b/components/PerformanceList/index.tsx @@ -56,6 +56,10 @@ const PerformanceList = ({ id: "scores.sin", desc: true, }, + { + id: "scores.sao", + desc: true, + }, ], hiddenColumns: [ "activationRound", diff --git a/pages/api/score/[address].tsx b/pages/api/score/[address].tsx index 09bf8ac..732721b 100644 --- a/pages/api/score/[address].tsx +++ b/pages/api/score/[address].tsx @@ -20,6 +20,7 @@ export type MetricsResponse = { NYC: Metric; PRG: Metric; SIN: Metric; + SAO: Metric; } | undefined; }; @@ -87,6 +88,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.success_rate * 100 || 0, lon: metrics[transcoderId]?.LON?.success_rate * 100 || 0, prg: metrics[transcoderId]?.PRG?.success_rate * 100 || 0, + sao: metrics[transcoderId]?.SAO?.success_rate * 100 || 0, }, roundTripScores: { global: avg(metrics[transcoderId], "round_trip_score") * 100, @@ -97,6 +99,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.round_trip_score * 100 || 0, lon: metrics[transcoderId]?.LON?.round_trip_score * 100 || 0, prg: metrics[transcoderId]?.PRG?.round_trip_score * 100 || 0, + sao: metrics[transcoderId]?.SAO?.round_trip_score * 100 || 0, }, scores: { global: avg(metrics[transcoderId], "score") * 100 || 0, @@ -107,6 +110,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.score * 100 || 0, lon: metrics[transcoderId]?.LON?.score * 100 || 0, prg: metrics[transcoderId]?.PRG?.score * 100 || 0, + sao: metrics[transcoderId]?.SAO?.score * 100 || 0, }, }; diff --git a/pages/api/score/index.tsx b/pages/api/score/index.tsx index bacedba..5fcb6e7 100644 --- a/pages/api/score/index.tsx +++ b/pages/api/score/index.tsx @@ -44,6 +44,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.success_rate * 100 || 0, lon: metrics[transcoderId]?.LON?.success_rate * 100 || 0, prg: metrics[transcoderId]?.PRG?.success_rate * 100 || 0, + sao: metrics[transcoderId]?.SAO?.success_rate * 100 || 0, }, roundTripScores: { global: avg(metrics[transcoderId], "round_trip_score") * 100, @@ -54,6 +55,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.round_trip_score * 100 || 0, lon: metrics[transcoderId]?.LON?.round_trip_score * 100 || 0, prg: metrics[transcoderId]?.PRG?.round_trip_score * 100 || 0, + sao: metrics[transcoderId]?.SAO?.round_trip_score * 100 || 0, }, scores: { global: avg(metrics[transcoderId], "score") * 100 || 0, @@ -64,6 +66,7 @@ const handler = async ( lax: metrics[transcoderId]?.LAX?.score * 100 || 0, lon: metrics[transcoderId]?.LON?.score * 100 || 0, prg: metrics[transcoderId]?.PRG?.score * 100 || 0, + sao: metrics[transcoderId]?.SAO?.score * 100 || 0, }, }, }), diff --git a/utils/allRegions.ts b/utils/allRegions.ts index 1b96aa1..a90e5ee 100644 --- a/utils/allRegions.ts +++ b/utils/allRegions.ts @@ -7,4 +7,5 @@ export const ALL_REGIONS = { nyc: "New York City", prg: "Prague", sin: "Singapore", + sao: "São Paulo" } as const;