cloud-governance 1.1.369__py3-none-any.whl → 1.1.370__py3-none-any.whl
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.
- cloud_governance/main/environment_variables.py +2 -0
- cloud_governance/policy/common_policies/send_aggregated_alerts.py +2 -1
- {cloud_governance-1.1.369.dist-info → cloud_governance-1.1.370.dist-info}/METADATA +1 -1
- {cloud_governance-1.1.369.dist-info → cloud_governance-1.1.370.dist-info}/RECORD +7 -7
- {cloud_governance-1.1.369.dist-info → cloud_governance-1.1.370.dist-info}/WHEEL +1 -1
- {cloud_governance-1.1.369.dist-info → cloud_governance-1.1.370.dist-info}/licenses/LICENSE +0 -0
- {cloud_governance-1.1.369.dist-info → cloud_governance-1.1.370.dist-info}/top_level.txt +0 -0
|
@@ -283,6 +283,8 @@ class EnvironmentVariables:
|
|
|
283
283
|
self._environment_variables_dict['POLICIES_TO_ALERT'] = literal_eval(
|
|
284
284
|
EnvironmentVariables.get_env('POLICIES_TO_ALERT', '[]'))
|
|
285
285
|
self._environment_variables_dict['ADMIN_MAIL_LIST'] = EnvironmentVariables.get_env('ADMIN_MAIL_LIST', '')
|
|
286
|
+
self._environment_variables_dict['SKIP_POLICIES_ALERT'] = literal_eval(
|
|
287
|
+
EnvironmentVariables.get_env('SKIP_POLICIES_ALERT', "['']"))
|
|
286
288
|
if self._environment_variables_dict.get('policy') in ['send_aggregated_alerts', 'cloudability_cost_reports']:
|
|
287
289
|
self._environment_variables_dict['COMMON_POLICIES'] = True
|
|
288
290
|
# CRO -- Cloud Resource Orch
|
|
@@ -20,6 +20,7 @@ class SendAggregatedAlerts:
|
|
|
20
20
|
self.__mail_to = self.__environment_variables.get('EMAIL_TO') # testing purposes
|
|
21
21
|
self.__mail_cc = self.__environment_variables.get('EMAIL_CC', [])
|
|
22
22
|
self.__alert_dry_run = self.__environment_variables.get('ALERT_DRY_RUN')
|
|
23
|
+
self.__skip_policies_alert = self.__environment_variables.get('SKIP_POLICIES_ALERT')
|
|
23
24
|
self.__mail_message = MailMessage()
|
|
24
25
|
self.__postfix = Postfix()
|
|
25
26
|
self.__es_operations = ElasticSearchOperations()
|
|
@@ -55,7 +56,7 @@ class SendAggregatedAlerts:
|
|
|
55
56
|
"ebs_in_use",
|
|
56
57
|
"instance_run", "cluster_run", "optimize_resource_report",
|
|
57
58
|
"optimize_resources_report", "skipped_resources"
|
|
58
|
-
]
|
|
59
|
+
] + self.__skip_policies_alert
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
],
|
|
@@ -143,7 +143,7 @@ cloud_governance/common/utils/configs.py,sha256=8ry4UQT9s_GUivhrCdwS0vOWYN6OJIHD
|
|
|
143
143
|
cloud_governance/common/utils/json_datetime_encoder.py,sha256=_-jzRTe0UqAKTn2E9qaU8SYIxHUoRA5ElWuVA0Y54Xw,338
|
|
144
144
|
cloud_governance/common/utils/utils.py,sha256=ZUsi4ax2XhDIV-EQ5kJt5Ppd72kmm2psqcg1cNDZrvc,4349
|
|
145
145
|
cloud_governance/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
146
|
-
cloud_governance/main/environment_variables.py,sha256=
|
|
146
|
+
cloud_governance/main/environment_variables.py,sha256=TeqODK3MlZwdv6l80KB6G8wjyU4rk1DoS5XETzuQcoI,29314
|
|
147
147
|
cloud_governance/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
|
|
148
148
|
cloud_governance/main/es_uploader.py,sha256=6Ify5CS2NtUF1xXZ-rMwpYxVzDKfEZhv2vogWFltt98,10656
|
|
149
149
|
cloud_governance/main/main.py,sha256=4TBiCBO_1z8KpGXb8brPKBmv3jHBl8fl_-Sb80ctYno,18880
|
|
@@ -186,7 +186,7 @@ cloud_governance/policy/azure/cleanup/unattached_volume.py,sha256=MXX_R7bWAYy-Yj
|
|
|
186
186
|
cloud_governance/policy/azure/cleanup/unused_nat_gateway.py,sha256=aJVYHtERfp23kiI0VAkqqu2tDzZzyYZMokrJFfUVpuw,3882
|
|
187
187
|
cloud_governance/policy/common_policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
188
188
|
cloud_governance/policy/common_policies/cloudability_cost_reports.py,sha256=ivmYvkobi8O4kYVuZNzGTJSqTenqdwb3VOc4Nv2bfh0,9540
|
|
189
|
-
cloud_governance/policy/common_policies/send_aggregated_alerts.py,sha256=
|
|
189
|
+
cloud_governance/policy/common_policies/send_aggregated_alerts.py,sha256=1P2V2KTNqTmxQHjJyGM238LLgvT_SC1j26WHGT5vdfU,8872
|
|
190
190
|
cloud_governance/policy/gcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
191
191
|
cloud_governance/policy/gcp/cost_billing_reports.py,sha256=6de0r9I-Yr9GpEqHJxYCAdTUkmgNrzS-7ZthcVBL1m0,14908
|
|
192
192
|
cloud_governance/policy/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -263,8 +263,8 @@ cloud_governance/policy/policy_runners/elasticsearch/__init__.py,sha256=47DEQpj8
|
|
|
263
263
|
cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py,sha256=pOwUJWXjJbyTy8iv3Ap8xJGnqQe-5lZgoR8-vGfAVos,1881
|
|
264
264
|
cloud_governance/policy/policy_runners/ibm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
265
265
|
cloud_governance/policy/policy_runners/ibm/policy_runner.py,sha256=V0E_f7F3hXit0aSq4BlfX1Jd4vjR2NEvOWsJ5upvZ4o,1302
|
|
266
|
-
cloud_governance-1.1.
|
|
267
|
-
cloud_governance-1.1.
|
|
268
|
-
cloud_governance-1.1.
|
|
269
|
-
cloud_governance-1.1.
|
|
270
|
-
cloud_governance-1.1.
|
|
266
|
+
cloud_governance-1.1.370.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
267
|
+
cloud_governance-1.1.370.dist-info/METADATA,sha256=6GdMVjJArXWEciC9gLu7rd5pRfWVNZO0B7bIk0qUZDk,11364
|
|
268
|
+
cloud_governance-1.1.370.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
269
|
+
cloud_governance-1.1.370.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
|
|
270
|
+
cloud_governance-1.1.370.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|