Skip to content

Commit 4b8bf03

Browse files
authored
feat: make MultipleAlarmActionStrategy.actions public (#165)
Made MultipleAlarmActionStrategy.actions public so we can process the actions internally. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
1 parent d1546d9 commit 4b8bf03

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

API.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43053,6 +43053,23 @@ public addAlarmActions(props: AlarmActionStrategyProps): void
4305343053
---
4305443054

4305543055

43056+
#### Properties <a name="Properties" id="Properties"></a>
43057+
43058+
| **Name** | **Type** | **Description** |
43059+
| --- | --- | --- |
43060+
| <code><a href="#cdk-monitoring-constructs.MultipleAlarmActionStrategy.property.actions">actions</a></code> | <code><a href="#cdk-monitoring-constructs.IAlarmActionStrategy">IAlarmActionStrategy</a>[]</code> | *No description.* |
43061+
43062+
---
43063+
43064+
##### `actions`<sup>Required</sup> <a name="actions" id="cdk-monitoring-constructs.MultipleAlarmActionStrategy.property.actions"></a>
43065+
43066+
```typescript
43067+
public readonly actions: IAlarmActionStrategy[];
43068+
```
43069+
43070+
- *Type:* <a href="#cdk-monitoring-constructs.IAlarmActionStrategy">IAlarmActionStrategy</a>[]
43071+
43072+
---
4305643073

4305743074

4305843075
### NetworkLoadBalancerMetricFactory <a name="NetworkLoadBalancerMetricFactory" id="cdk-monitoring-constructs.NetworkLoadBalancerMetricFactory"></a>

lib/common/alarm/MultipleAlarmActionStrategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function multipleActions(...actions: IAlarmActionStrategy[]) {
1111
* Alarm action strategy that combines multiple actions in the same order as they were given.
1212
*/
1313
export class MultipleAlarmActionStrategy implements IAlarmActionStrategy {
14-
protected readonly actions: IAlarmActionStrategy[];
14+
readonly actions: IAlarmActionStrategy[];
1515

1616
constructor(actions: IAlarmActionStrategy[]) {
1717
this.actions = actions;

0 commit comments

Comments
 (0)