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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user