You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that properties are passed to the underlying metric. This functionality works on metrics that do not use the "toRate" method as the metric is directly returned.
For example, .with(properties) works correctly on metric4XXErrorCount:
Properties are not passed to underlying TPS metric.
Other details
We are using this to show a widget for TPS, but need to specify the account. The account for the TPS metric we specify in the properties is not being used.
The text was updated successfully, but these errors were encountered:
jackbnz-aws
changed the title
ApiGatewayMetricFactory.metricTps and metricInvocationRate do not pass ".with" properties to underlying metricInvocationCount
ApiGatewayMetricFactory.metricTps and metricInvocationRate do not pass ".with(properties)" to underlying metricInvocationCount
Sep 27, 2023
Version
5.0.0
Steps and/or minimal code example to reproduce
Relevant line of code:
cdk-monitoring-constructs/lib/monitoring/aws-apigateway/ApiGatewayMetricFactory.ts
Line 77 in 064d54f
Expected behavior
I would expect that properties are passed to the underlying metric. This functionality works on metrics that do not use the "toRate" method as the metric is directly returned.
For example, .with(properties) works correctly on metric4XXErrorCount:
cdk-monitoring-constructs/lib/monitoring/aws-apigateway/ApiGatewayMetricFactory.ts
Line 98 in 064d54f
Actual behavior
Properties are not passed to underlying TPS metric.
Other details
We are using this to show a widget for TPS, but need to specify the account. The account for the TPS metric we specify in the properties is not being used.
The text was updated successfully, but these errors were encountered: