Hi, hi! I am trying to find out if there is a way ...
# ask-community
m
Hi, hi! I am trying to find out if there is a way to generate a timeline-like diagram of the flows I have registered on Prefect. Something to showcase that "Flow A is triggered by Flow B which scheduled at 12:00". Something similar to the schematic that I get on flow level with tasks.
k
Hey @marios, I guess not easily at this time, but you might be able to construct it by using the GraphQL API to fetch the flows and then feeding it into matplotlib like this?
m
Thanks @Kevin Kho! Would you be able to point out same GraphQL queries that will be helpful as a starting point?
k
Try something like this:
Copy code
query{
  flow_run{
    name
    id
    flow {
      name
      project {
        id
      }
    }
    start_time
    created_by {
      id
      username
      first_name
      last_name
    }
    created_by_user_id
  }
}
m
thanks!