adding new script

master
rforstner 2022-01-20 19:39:55 +01:00
parent 9c62da2943
commit 80d42e2fc5
1 changed files with 3 additions and 2 deletions

View File

@ -59,10 +59,11 @@ def getSLO(DTAPIToken, DTENV, fromDate, toDate):
}
r = make_request(DTAPIURL,headers=headers,parameters=parameters,verify=verify)
try:
#print(r.json())
df = pd.json_normalize(r.json()['slo'])
cont = r.json()
df = pd.json_normalize(cont['slo'])
except:
print("No SLO json returned")
print(parameters)
print(r.content)
df = pd.DataFrame()