made adjustments for new krp

master
Daniel Mikula 2023-05-16 13:46:28 +02:00
parent 27a8ef919f
commit e63cbbf5ff
1 changed files with 6 additions and 2 deletions

View File

@ -160,7 +160,10 @@ def get_process_group_data(df: pd.DataFrame) -> typing.Dict:
data = get_data_from_dynatrace(
0.1, hub_data[hub]["token"], hub_data[hub]["url"], params, "entities"
)
unique_process_groups_per_hub[hub][process_group] = data["entities"]
if data is not None:
unique_process_groups_per_hub[hub][process_group] = data["entities"]
else:
print(f"{process_group} returned None")
return unique_process_groups_per_hub
@ -345,7 +348,8 @@ def main() -> None:
krp = krparser.KRParser(
name=env,
options=krparser.KROption.RESOLVESERVICES,
options=krparser.KROption.RESOLVESERVICES
| krparser.KROption.VALIDATE_HASDATA,
config={
"threads": 10,
"serviceLookupParams": {"fields": "tags,fromRelationships"},