Hi, is there a way get the data that is used in th...
# ask-community
r
Hi, is there a way get the data that is used in the Dashboard UI via api calls? I’m mainly interested in recreating the Run History graph. For context, we’re an agency that implements/manages a bunch of Prefect instances and I would like to build a way for us to get daily summaries of our Client’s flow runs without needing to log in and out of the UI for each instance.
a
@Ryan Brennan you could use something like this:
Copy code
query {
  flow_run {
    logs {
      flow_run_id
      id
      object_id
      object_table
      created
      info
      level
      message
      timestamp
      is_audit_log
      name
      task_run_id
    }
  }
}