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
fix(dynamo): adjusts DynamoTableGlobalSecondaryIndexMonitoring to respect localAlarmNamePrefixOverride (#629)
Fixes#628
This change passes the BaseMonitoringProps passed into
DynamoTableGlobalSecondaryIndexMonitoring along to the super class
constructor, which exposes `localAlarmNamePrefixOverride` to be consumed
by Monitoring.createAlarmFactory. Additionally, this changes the
construction of the alarm factory to use `createAlarmFactory` from the
parent class (thus using `localAlarmNamePrefixOverride`, rather than
that from the parent scope (MonitoringFacade, which doesn't have
`localAlarmNamePrefixOverride` available).
By doing so, we achieve the more expected behavior of having
`localAlarmNamePrefixOverride` influence the local portion of the alarm
name. By default, that portion is just the GSI name itself, and there
are cases where this can cause collisions (e.g. two GSIs with the same
name on different tables). Having `localAlarmNamePrefixOverride`
function as expected provides an escape hatch for this corner case
without changing the default naming behavior. (i.e. including table name
in the alarm name).
---
_By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license_
0 commit comments