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: 237e36f98a20300147486d8e6b38dd1444b27200613fac04fe8a9e51ac92182b
4
- data.tar.gz: d8c2473cf0bd221b92a7dc2562adbc0f908c030b7f748521eb24ab2266c6a387
3
+ metadata.gz: ff93cd20da8da257e23a333dfea6a8030a852e0a1f0f1db4d449b5299c4c9b5d
4
+ data.tar.gz: 9fcd0afbe84baa31bc905b98ff349b2fbff7040b760f8fc0c6b3b0cca0ec6513
5
5
  SHA512:
6
- metadata.gz: e7baa641e5f570fd3994b6dc2dc63db4fdfcb14dd495caea1198acd71845b12665b65380d28a6dc5a9a73c5aaf6003b119651b4c462a7f5172cac119085b3c8e
7
- data.tar.gz: 7e46aa554dcf93604ac26ef8b9c2115fa495fcf639f556cfdd7a0452c62d378124d503c0670b93dd8c472b2352f9f2dab3e359463667a3d558580c304982792e
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.threshold = 30
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
@@ -1,4 +1,4 @@
1
1
  module CfnGuardian
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  CHANGE_SET_VERSION = VERSION.gsub('.', '-').freeze
4
4
  end
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
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-03 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor