atomicshop 2.15.5__py3-none-any.whl → 2.15.6__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/mitm/statistic_analyzer.py +1 -0
- atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py +8 -1
- {atomicshop-2.15.5.dist-info → atomicshop-2.15.6.dist-info}/METADATA +1 -1
- {atomicshop-2.15.5.dist-info → atomicshop-2.15.6.dist-info}/RECORD +8 -8
- {atomicshop-2.15.5.dist-info → atomicshop-2.15.6.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.15.5.dist-info → atomicshop-2.15.6.dist-info}/WHEEL +0 -0
- {atomicshop-2.15.5.dist-info → atomicshop-2.15.6.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -435,6 +435,7 @@ def deviation_calculator_by_moving_average_main(
|
|
|
435
435
|
'message': deviation['message'],
|
|
436
436
|
'value': deviation.get('value', None),
|
|
437
437
|
'ma_value': deviation.get('ma_value', None),
|
|
438
|
+
'deviation_percentage': deviation.get('deviation_percentage', None),
|
|
438
439
|
'total_entries_averaged': total_entries_averaged
|
|
439
440
|
})
|
|
440
441
|
|
|
@@ -273,11 +273,17 @@ def find_deviation_from_moving_average(
|
|
|
273
273
|
check_type_moving_below = host_moving_average_by_type - check_type_moving_by_percent
|
|
274
274
|
|
|
275
275
|
deviation_type = None
|
|
276
|
+
deviation_percentage = None
|
|
276
277
|
if day_statistics_content_dict[check_type] > check_type_moving_above:
|
|
277
278
|
deviation_type = 'above'
|
|
279
|
+
deviation_percentage = (
|
|
280
|
+
(day_statistics_content_dict[check_type] - host_moving_average_by_type) /
|
|
281
|
+
host_moving_average_by_type)
|
|
278
282
|
elif day_statistics_content_dict[check_type] < check_type_moving_below:
|
|
279
283
|
deviation_type = 'below'
|
|
280
|
-
|
|
284
|
+
deviation_percentage = (
|
|
285
|
+
(host_moving_average_by_type - day_statistics_content_dict[check_type]) /
|
|
286
|
+
host_moving_average_by_type)
|
|
281
287
|
if deviation_type:
|
|
282
288
|
message = f'[{check_type}] is [{deviation_type}] the moving average.'
|
|
283
289
|
deviation_list.append({
|
|
@@ -289,6 +295,7 @@ def find_deviation_from_moving_average(
|
|
|
289
295
|
'check_type': check_type,
|
|
290
296
|
'percentage': top_bottom_deviation_percentage,
|
|
291
297
|
'ma_value_checked': check_type_moving_above,
|
|
298
|
+
'deviation_percentage': deviation_percentage,
|
|
292
299
|
'deviation_type': deviation_type,
|
|
293
300
|
'data': day_statistics_content_dict,
|
|
294
301
|
'ma_data': moving_averages_dict[host]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=1hdUGTA9S4fKop2fWaz_-LGGl280RKNToC4zKa_Ed7E,123
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -128,7 +128,7 @@ atomicshop/mitm/initialize_engines.py,sha256=YnXPK1UKrmULnfL4zLo2LOpKWq-aGKzc9p3
|
|
|
128
128
|
atomicshop/mitm/initialize_mitm_server.py,sha256=j1yMUbHsnFh9l5rFiUgBQA0mRZqREOKviP0frRzYikM,14611
|
|
129
129
|
atomicshop/mitm/message.py,sha256=u2U2f2SOHdBNU-6r1Ik2W14ai2EOwxUV4wVfGZA098k,1732
|
|
130
130
|
atomicshop/mitm/shared_functions.py,sha256=PaK_sbnEA5zo9k2ktEOKLmvo-6wRUunxzSNRr41uXIQ,1924
|
|
131
|
-
atomicshop/mitm/statistic_analyzer.py,sha256=
|
|
131
|
+
atomicshop/mitm/statistic_analyzer.py,sha256=F7RjQXE9S8iZe-DF7_hLx6dl5fHUKi0wf10bFxhTL9M,23840
|
|
132
132
|
atomicshop/mitm/engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
133
133
|
atomicshop/mitm/engines/create_module_template.py,sha256=tRjVSm1sD6FzML71Qbuwvita0qsusdFGm8NZLsZ-XMs,4853
|
|
134
134
|
atomicshop/mitm/engines/create_module_template_example.py,sha256=X5xhvbV6-g9jU_bQVhf_crZmaH50LRWz3bS-faQ18ds,489
|
|
@@ -142,7 +142,7 @@ atomicshop/mitm/engines/__reference_general/recorder___reference_general.py,sha2
|
|
|
142
142
|
atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=1AM49UaFTKA0AHw-k3SV3uH3QbG-o6ux0c-GoWkKNU0,6993
|
|
143
143
|
atomicshop/mitm/statistic_analyzer_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
144
|
atomicshop/mitm/statistic_analyzer_helper/analyzer_helper.py,sha256=pk6L1t1ea1kvlBoR9QEJptOmaX-mumhwLsP2GCKukbk,5920
|
|
145
|
-
atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=
|
|
145
|
+
atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=bSjsrDhlwhDKTzK5QWPZPpCoqPE26Hv_DlKj65TperI,14006
|
|
146
146
|
atomicshop/monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
147
147
|
atomicshop/monitor/change_monitor.py,sha256=K5NlVp99XIDDPnQQMdru4BDmua_DtcDIhVAzkTOvD5s,7673
|
|
148
148
|
atomicshop/monitor/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -294,8 +294,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
|
|
|
294
294
|
atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
|
|
295
295
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
|
|
296
296
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
|
|
297
|
-
atomicshop-2.15.
|
|
298
|
-
atomicshop-2.15.
|
|
299
|
-
atomicshop-2.15.
|
|
300
|
-
atomicshop-2.15.
|
|
301
|
-
atomicshop-2.15.
|
|
297
|
+
atomicshop-2.15.6.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
298
|
+
atomicshop-2.15.6.dist-info/METADATA,sha256=Q5MZL59GkPTmEyDcTAlcDfRmFrOs9N8yQt6r-xnCKAM,10502
|
|
299
|
+
atomicshop-2.15.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
300
|
+
atomicshop-2.15.6.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
301
|
+
atomicshop-2.15.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|