TOMAS IGNACIO ACUÑA RUZ

    TOMAS IGNACIO ACUÑA RUZ

    11 months ago
    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
    Kevin Kho

    Kevin Kho

    11 months ago
    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
    TOMAS IGNACIO ACUÑA RUZ

    TOMAS IGNACIO ACUÑA RUZ

    11 months ago
    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
    Kevin Kho

    Kevin Kho

    11 months ago
    Yeah! We have the Prefect client. Use the
    client.graphql()
    method to run the query. You just need to be authenticated
    TOMAS IGNACIO ACUÑA RUZ

    TOMAS IGNACIO ACUÑA RUZ

    11 months ago
    Thanks you