Matias Godoy
08/19/2021, 10:57 AMquery{
flow_run{
name,
created,
state,
flow_id,
duration: <here goes the flow_run execution duration>
}
}
Ideally I could do something like duration = end_time - start_time
, but I think GraphQL does not allow operations like these?
I also checked the flow_run_aggregate
query, but it does not contain such information.
The real problem is that I want to consume this data from Grafana, so I have nowhere to run these calculations and the data should come already calculated in the response.
Any ideas on how could I do this?
Thanks a lot!Bouke Krom
08/19/2021, 12:42 PMKevin Kho
Matias Godoy
08/19/2021, 2:17 PMMatias Godoy
08/19/2021, 2:19 PMMatias Godoy
08/19/2021, 2:19 PM