diff --git a/create_report.py b/create_report.py index a723a70..1305ffd 100644 --- a/create_report.py +++ b/create_report.py @@ -15,8 +15,6 @@ import requests import urllib.parse import time -import numpy as np - def get_slo(ENV, DTAPIToken, DTENV) -> pd.DataFrame: # DTENV = base url @@ -228,7 +226,7 @@ def develop_load_json(): if tag["key"] == "PaaS": df_data_item["paas"] = tag["value"] - # TODO: rework + # TODO: rework - add else. so datastructure is complete if "runsOn" in entity["fromRelationships"]: for process_group in entity[ "fromRelationships" @@ -291,7 +289,7 @@ def check_if_service_already_exists(services: list, entity_id: str) -> bool: return result -def build_data_frame_data(data: typing.Dict) -> None: +def build_dataframe_data(data: typing.Dict) -> None: df_data = [] for hub in data: @@ -483,7 +481,7 @@ def main() -> None: ) host["details"] = host_response - build_data_frame_data(reportItem) + build_dataframe_data(reportItem) # with open("test-data-with-hosts-main.json", "w") as f: # f.write(json.dumps(reportItem, indent=4))