easy-utils-dev 2.142__tar.gz → 2.143__tar.gz
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.
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/PKG-INFO +1 -1
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/wsnoclib.py +15 -3
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev.egg-info/PKG-INFO +1 -1
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/setup.py +1 -1
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/MANIFEST.in +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/EasySsh.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/Events.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/FastQueue.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/NameObject.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/__init__.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/abortable.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/brevosmtp.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/check_license.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/cplib.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/custom_env.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/debugger-C-PF4PAMMP.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/debugger.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/easy_oracle.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/encryptor.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/ept.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/ept_sql/create_dirs.sql +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/ept_sql/create_ept_tables.sql +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/exceptions.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/filescompressor.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/generate_license.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/keycloakapi.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/lralib.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/ne1830PSS.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/nsp_kafka.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/openid_server.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/optics_utils.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/require_auth.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/simple_sqlite.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/temp_memory.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/uiserver.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/utils.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/winserviceapi.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev/wsselib.py +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev.egg-info/SOURCES.txt +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev.egg-info/dependency_links.txt +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev.egg-info/requires.txt +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/easy_utils_dev.egg-info/top_level.txt +0 -0
- {easy_utils_dev-2.142 → easy_utils_dev-2.143}/setup.cfg +0 -0
|
@@ -773,6 +773,8 @@ class PmHadoopClient :
|
|
|
773
773
|
self.PM24H = 1
|
|
774
774
|
self.PM15M = 2
|
|
775
775
|
self.KPIAGGR = 3
|
|
776
|
+
self.CURRENT = 1
|
|
777
|
+
self.ARCHIVE = 2
|
|
776
778
|
self.logger : DEBUGGER = self.wsnoc.logger
|
|
777
779
|
|
|
778
780
|
|
|
@@ -795,12 +797,15 @@ class PmHadoopClient :
|
|
|
795
797
|
dt = datetime.strptime(date_str, "%Y%m%d")
|
|
796
798
|
return int(dt.timestamp())
|
|
797
799
|
|
|
798
|
-
def pm_list(self , mode , date_range=[]) :
|
|
800
|
+
def pm_list(self , mode , target_pm , date_range=[]) :
|
|
799
801
|
'''
|
|
800
802
|
mode : must be one of the following:
|
|
801
803
|
- self.PM24H
|
|
802
804
|
- self.PM15M
|
|
803
805
|
- self.KPIAGGR
|
|
806
|
+
target_pm : must be on the following :
|
|
807
|
+
- self.CURRENT
|
|
808
|
+
- self.ARCHIVE
|
|
804
809
|
date_range : must be a list of two integers in the format of [start_timestamp, end_timestamp]
|
|
805
810
|
- for example: [1718217600, 1718221200]
|
|
806
811
|
- if date_range is not provided, all available PM dates will be returned
|
|
@@ -813,8 +818,15 @@ class PmHadoopClient :
|
|
|
813
818
|
_mode = 'KPIAGGR'
|
|
814
819
|
else :
|
|
815
820
|
raise Exception(f'Invalid mode: {mode}')
|
|
816
|
-
|
|
817
|
-
|
|
821
|
+
if target_pm == self.CURRENT :
|
|
822
|
+
_target = 'PMDATA'
|
|
823
|
+
elif target_pm == self.ARCHIVE :
|
|
824
|
+
_target = "ARC_PMDATA"
|
|
825
|
+
else :
|
|
826
|
+
self.logger.error(f"target_pm arg must be self.CURRENT or self.ARCHIVE.")
|
|
827
|
+
raise Exception("Invalid TARGET_PM")
|
|
828
|
+
self.logger.info(f"Getting available PM dates for {_target}/{_mode}" , source='PmHadoopClient')
|
|
829
|
+
dirs = list(self.client.ls([f'/{_target}/{_mode}']))
|
|
818
830
|
ts_now = getTimestamp()
|
|
819
831
|
for index , dir in enumerate(dirs) :
|
|
820
832
|
self.logger.info(f"Processing {dir.get('path')}" , source='PmHadoopClient')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|