serverless-plugin-aws-alerts icon indicating copy to clipboard operation
serverless-plugin-aws-alerts copied to clipboard

Purpose of normalizing dashes to "dash" in name?

Open apham-sy opened this issue 4 years ago • 2 comments

This is a (Bug Report / Feature Proposal)

This is more of a question, and not sure if this is intended.

Description

My api name has dashes in it, however because it's named "api-name-v1-this-is-the-function-name", the package updates the name for the cloudwatch alert to replace it as apiDashnameDashv1DashthisDashisDashtheDashfunctionDashname

Is there a way to disable this, or what is the intended reasoning to replace this as we can use dashes in the title as the prefixTemplate option can contain dashes just fine. e.g. prefix-template-dashes-worksapiDashnameDashv1DashthisDashisDashtheDashfunctionDashname assuming prefixTemplate: prefix-template-dashes-work and apiName:api-name-v1-this-is-the-function-name

  • Serverless Framework Version: "serverless": "^1.83.0",

apham-sy avatar Nov 05 '20 20:11 apham-sy

Maybe we could add some config to disable this behaviour. Happy for you to create PR.

adikari avatar Feb 10 '21 07:02 adikari

Are there plans to implement this as a feature? The default behaviour makes unnecessarily hard to parse the notifications.

gio-trueper avatar May 05 '22 20:05 gio-trueper