made adjustments for new krp
parent
27a8ef919f
commit
e63cbbf5ff
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Reference in New Issue