https://prefect.io logo
t

TOMAS IGNACIO ACUÑA RUZ

10/06/2021, 3:10 PM
Hi Everyone, I want to extract the summary value of Prefect UI, is there any way to do it using the python API? Is for a external report for SLA references.
@Diego Bloom Alert
k

Kevin Kho

10/06/2021, 3:12 PM
Hey @TOMAS IGNACIO ACUÑA RUZ , you’d need to use the graphql API. The Dashboard queries are open source though do you may find them here
t

TOMAS IGNACIO ACUÑA RUZ

10/06/2021, 3:13 PM
Thanks you! I will give a Try and I'm back to you
Great its work, is there any chance to automatize this using python? @Kevin Kho
k

Kevin Kho

10/06/2021, 3:18 PM
Yeah! We have the Prefect client. Use the
client.graphql()
method to run the query. You just need to be authenticated
t

TOMAS IGNACIO ACUÑA RUZ

10/06/2021, 3:37 PM
Thanks you
👍 1