cfn-guardian 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff93cd20da8da257e23a333dfea6a8030a852e0a1f0f1db4d449b5299c4c9b5d
|
|
4
|
+
data.tar.gz: 9fcd0afbe84baa31bc905b98ff349b2fbff7040b760f8fc0c6b3b0cca0ec6513
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41407bc66a4d392d1155c72325a38adeaf0756e92cd2d1fd2b8587a18c752c8df49fb23093cbed696a19697bf2c14a379f5ea6842a6ab0a5a284a571bb1784c2
|
|
7
|
+
data.tar.gz: 360399af17db177a9c81c2694c2d12ff0b34f9b41cd30bc062886799a97f26c9bf2552954935eb45f90c068e0aff1b3685b01d51a4d5e360e3f017bf0799af3b
|
|
@@ -21,11 +21,12 @@ module CfnGuardian::Resource
|
|
|
21
21
|
@alarms.push(alarm)
|
|
22
22
|
|
|
23
23
|
alarm = CfnGuardian::Models::ApplicationTargetGroupAlarm.new(@resource)
|
|
24
|
+
alarm.enabled = false
|
|
24
25
|
alarm.name = 'TargetResponseTime'
|
|
25
26
|
alarm.metric_name = 'TargetResponseTime'
|
|
26
|
-
alarm.
|
|
27
|
+
alarm.extended_statistic = 'p95'
|
|
28
|
+
alarm.threshold = 5
|
|
27
29
|
alarm.evaluation_periods = 5
|
|
28
|
-
alarm.alarm_action = 'Warning'
|
|
29
30
|
@alarms.push(alarm)
|
|
30
31
|
end
|
|
31
32
|
|
|
@@ -8,6 +8,15 @@ module CfnGuardian::Resource
|
|
|
8
8
|
event_subscription.message = 'A failover for the DB cluster has failed.'
|
|
9
9
|
@event_subscriptions.push(event_subscription)
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
def default_event_subscriptions()
|
|
13
|
+
event_subscription = CfnGuardian::Models::RDSClusterEventSubscription.new(@resource)
|
|
14
|
+
event_subscription.name = 'FailoverFinished'
|
|
15
|
+
event_subscription.rds_event_category = 'failover'
|
|
16
|
+
event_subscription.message = 'A failover for the DB cluster has finished.'
|
|
17
|
+
event_subscription.enabled = false
|
|
18
|
+
@event_subscriptions.push(event_subscription)
|
|
19
|
+
end
|
|
11
20
|
|
|
12
21
|
end
|
|
13
22
|
end
|
data/lib/cfnguardian/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cfn-guardian
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guslington
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|