From ebc041f8372b340d3a4c745c0bcf67ba1f459019 Mon Sep 17 00:00:00 2001 From: Max Brenner Date: Tue, 21 Sep 2021 16:10:36 +0200 Subject: [PATCH] remove obsolete cw_alarm_count --- CHANGELOG.md | 10 ++++++++++ aws_quota/check/__init__.py | 1 - aws_quota/check/cloudwatch.py | 14 -------------- 3 files changed, 10 insertions(+), 15 deletions(-) delete mode 100644 aws_quota/check/cloudwatch.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 32db421..2c1db1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- new check: rds_event_subscriptions + +### Removed + +- obsolete check: cw_alarm_count + ## [1.8.0] - 2021-09-10 ### Added diff --git a/aws_quota/check/__init__.py b/aws_quota/check/__init__.py index 818806c..a7b273c 100644 --- a/aws_quota/check/__init__.py +++ b/aws_quota/check/__init__.py @@ -1,7 +1,6 @@ from .appmesh import * from .autoscaling import * from .cloudformation import * -from .cloudwatch import * from .dynamodb import * from .ebs import * from .ec2 import * diff --git a/aws_quota/check/cloudwatch.py b/aws_quota/check/cloudwatch.py deleted file mode 100644 index 4b93510..0000000 --- a/aws_quota/check/cloudwatch.py +++ /dev/null @@ -1,14 +0,0 @@ -from .quota_check import QuotaCheck, QuotaScope - - -class AlarmCountCheck(QuotaCheck): - key = "cw_alarm_count" - description = "Number of CloudWatch alarms per region" - scope = QuotaScope.REGION - service_code = 'monitoring' - quota_code = 'L-2FF78D7B' - - @property - def current(self): - alarms = self.boto_session.client('cloudwatch').describe_alarms() - return len(alarms['CompositeAlarms']) + len(alarms['MetricAlarms'])