-
Notifications
You must be signed in to change notification settings - Fork 4.1k
(aws-dynamodb): metricThrottledRequestsForOperation is not part of the ITable interface. #21963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Comments
4 tasks
Raised a PR to add the recommended method |
4 tasks
mergify bot
pushed a commit
that referenced
this issue
Sep 27, 2022
# Description This PR is changing `metricThrottledRequestsForOperation` and `metricSystemErrorForOperations` to receive the `OperationsMetricsOptions` parameter to standardize these calls and adds `metricThrottledRequestsForOperation` to the ITable interface I also change the `metricThrottledRequests` to deprecated Closes #21963 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
arewa
pushed a commit
to arewa/aws-cdk
that referenced
this issue
Oct 8, 2022
…22097) # Description This PR is changing `metricThrottledRequestsForOperation` and `metricSystemErrorForOperations` to receive the `OperationsMetricsOptions` parameter to standardize these calls and adds `metricThrottledRequestsForOperation` to the ITable interface I also change the `metricThrottledRequests` to deprecated Closes aws#21963 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
homakk
pushed a commit
to homakk/aws-cdk
that referenced
this issue
Dec 1, 2022
…22097) # Description This PR is changing `metricThrottledRequestsForOperation` and `metricSystemErrorForOperations` to receive the `OperationsMetricsOptions` parameter to standardize these calls and adds `metricThrottledRequestsForOperation` to the ITable interface I also change the `metricThrottledRequests` to deprecated Closes aws#21963 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
p1
Describe the bug
ITable interface doesn't contain metricThrottledRequestsForOperation but instead contains deprecated metricThrottledRequests which has an issue and doesn't provide any metrics at all. By just having metricThrottledRequests in ITable interface is hiding the fact that it's deprecated and not allowing the recommended metricThrottledRequestsForOperation to use for users who declare the objects with ITable as type.
Expected Behavior
ITable interface should contain metricThrottledRequestsForOperation declaration
Current Behavior
ITable interface contains metricThrottledRequests declartion which is providing invalid metrics or not providing any metircs at all. So there is a new method (metricThrottledRequestsForOperation) provided as alternative and recommended according to documentation but it's not part of the ITable interface. If an object is declared with ITable type then the recommended method can't be accesed.
Reproduction Steps
if an object is declared with
ITable
as type then onlygetThrottledMetrics
can be accessed and notmetricThrottledRequestsForOperation
Possible Solution
If
metricThrottledRequestsForOperation
is added to theITable
interface then the object can access it and use accordinglyAdditional Information/Context
No response
CDK CLI Version
3
Framework Version
No response
Node.js Version
14.x
OS
GNU/Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: