SIENTIAPDE-1312

Update Redis and CoreScouter to incorporate 'fill_missing_tags' parameter in data processing. Adjusted related tests to ensure proper handling of missing tags, enhancing overall functionality and consistency across workflows.
This commit is contained in:
vitor-aignosi
2025-10-21 09:14:41 -03:00
parent bd6474a975
commit 9cc55ea5e7
4 changed files with 29 additions and 9 deletions

View File

@@ -220,7 +220,6 @@ class Redis(RedisBase):
data_hold = {tag: content for tag, content in data_hold.items() if tag in tags}
self.debug(f'Data hold after removing removed tags: {data_hold}', metadata=metadata)
to_register_metrics = []
for _, row in data.iterrows():
value = row['value']
@@ -229,7 +228,7 @@ class Redis(RedisBase):
to_register_metrics.append((row['name'], value))
if fill_missing_tags:
self.debug("Filling missing tags in data package", metadata=metadata)
self.debug('Filling missing tags in data package', metadata=metadata)
missing_tags = [tag for tag in tags if tag not in list(data_hold.keys())]
for tag in missing_tags: