diff --git a/create_report.py b/create_report.py index 1305ffd..63e2a98 100644 --- a/create_report.py +++ b/create_report.py @@ -343,6 +343,7 @@ def build_dataframe_data(data: typing.Dict) -> None: @timer def main() -> None: + throttling_rate: int | float = 0.25 # only tested with 0.5 reportItem = {} with open("./environment.yaml") as file: env_doc = yaml.safe_load(file) @@ -456,7 +457,11 @@ def main() -> None: "fields": "fromRelationships,tags", } entities = get_data_from_dynatrace( - 0.5, DTTOKEN, DTURL, params, "entities" + throttling_rate, + DTTOKEN, + DTURL, + params, + "entities", ) # TODO: it is possible that "entities" is empty. maybe create check. service["entities"] = entities["entities"] @@ -472,7 +477,7 @@ def main() -> None: ]["runsOnHost"]: host_response = ( get_data_from_dynatrace( - 0.5, + throttling_rate, DTTOKEN, DTURL, host["id"],