From cf768d5067016112cb1a75e1f282ed0869946a77 Mon Sep 17 00:00:00 2001 From: ConjunctiveNormalForm Date: Mon, 10 Jun 2024 11:29:45 -0400 Subject: [PATCH] fix dashboard dimensions and filelr names --- bin/stacks/param-dashboard-stack.ts | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/bin/stacks/param-dashboard-stack.ts b/bin/stacks/param-dashboard-stack.ts index 0efeb50..3401442 100644 --- a/bin/stacks/param-dashboard-stack.ts +++ b/bin/stacks/param-dashboard-stack.ts @@ -5,9 +5,9 @@ import { Construct } from 'constructs'; import { CircuitBreakerMetricDimension, + HardQuoteMetricDimension, Metric, SoftQuoteMetricDimension, - UniswapXParamServiceMetricDimension, } from '../../lib/entities'; export const NAMESPACE = 'Uniswap'; @@ -47,7 +47,7 @@ export type LambdaWidget = { }; }; -const RFQ_SERVICES = [SoftQuoteMetricDimension, UniswapXParamServiceMetricDimension]; +const RFQ_SERVICES = [SoftQuoteMetricDimension, HardQuoteMetricDimension]; const LatencyWidget = (region: string): LambdaWidget[] => RFQ_SERVICES.map((service) => { @@ -65,7 +65,7 @@ const LatencyWidget = (region: string): LambdaWidget[] => stacked: false, region, period: 300, - title: 'Quote Latency | 5 minutes', + title: `${service.Service} Quote Latency | 5 minutes`, }, }; }); @@ -89,7 +89,7 @@ const RFQLatencyWidget = (region: string, rfqProviders: string[]): LambdaWidget[ region, stat: 'p90', period: 300, - title: 'RFQ Response Times P90 | 5 minutes', + title: `${service.Service} RFQ Response Times P90 | 5 minutes`, }, }; }); @@ -112,7 +112,7 @@ const QuotesRequestedWidget = (region: string): LambdaWidget[] => stat: 'Sum', period: 300, stacked: false, - title: 'Quotes Requested | 5 minutes', + title: `${service.Service} Quotes Requested | 5 minutes`, }, }; }); @@ -138,7 +138,7 @@ const ErrorRatesWidget = (region: string): LambdaWidget[] => region, stat: 'Sum', period: 300, - title: 'Error Rates', + title: `${service.Service} Error Rates`, yAxis: { left: { label: 'Percent', @@ -216,7 +216,7 @@ const RFQFailRatesWidget = (region: string, rfqProviders: string[]): LambdaWidge region, stat: 'Sum', period: 300, - title: 'RFQ Fail Rates', + title: `${service.Service} RFQ Fail Rates`, yAxis: { left: { label: 'Percent', @@ -256,7 +256,20 @@ export interface DashboardProps extends cdk.NestedStackProps { } // TODO: fetch dynamically from s3? -const RFQ_PROVIDERS = ['A', 'B', 'C', 'D', 'E', 'F']; +const RFQ_PROVIDERS = [ + 'Barter', + 'Wintermute', + 'Kodea', + 'Flow Traders - Validation', + 'Flow Traders' + 'ODOS', + 'Pear', + 'Altonomy', + 'SCP', + 'Propellerheads', + 'Clipper', + 'Prycto V2', +]; export class ParamDashboardStack extends cdk.NestedStack { constructor(scope: Construct, name: string, props: DashboardProps) {