added throttling rate

master
Daniel Mikula 2023-04-28 07:14:42 +02:00
parent 107ba5a394
commit a3104474df
1 changed files with 7 additions and 2 deletions

View File

@ -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"],