Skip to content
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

add staticName and defaultValue for MetricOption #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wip0
Copy link

@wip0 wip0 commented Jun 13, 2019

feat: add staticName and defaultValue for MetricOption
fix: dynamicNamespace if service or stage is loaded from config
fix: function name is required to be populated from variables.

fix: dynamicNamespace if service or stage is loaded from config
Copy link
Collaborator

@ChristopheBougere ChristopheBougere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for that, looks good to me 👍
Also, the metric name is a breaking change (starts with an capital letter because of normalizeName use), so maybe publish a major release @alex20465?

Properties: {
FilterPattern: pattern,
LogGroupName: logGroupName,
MetricTransformations: [
{
MetricName: `${functionName}-${name}`,
MetricName: (staticName) ? name : `${normalizedName}-${name}`,
MetricNamespace: namespace || dynamicNamespace,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be this.dynamicNamespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants