POST
/
api
/
flow_runs
/
history
[
  {
    "interval_start": "2023-11-07T05:31:56Z",
    "interval_end": "2023-11-07T05:31:56Z",
    "states": [
      {
        "state_type": "SCHEDULED",
        "state_name": "<string>",
        "count_runs": 123,
        "sum_estimated_run_time": 123,
        "sum_estimated_lateness": 123
      }
    ]
  }
]

Headers

x-prefect-api-version
string

Body

application/json
history_start
string
required

The history's start time.

history_end
string
required

The history's end time.

history_interval
number
required

The size of each history interval, in seconds. Must be at least 1 second.

flows
object

Filter for flows. Only flows matching all criteria will be returned.

flow_runs
object

Filter flow runs. Only flow runs matching all criteria will be returned

task_runs
object

Filter task runs. Only task runs matching all criteria will be returned

deployments
object

Filter for deployments. Only deployments matching all criteria will be returned.

work_pools
object

Filter work pools. Only work pools matching all criteria will be returned

work_queues
object

Filter work queues. Only work queues matching all criteria will be returned

Response

200
application/json
Successful Response
interval_start
string
required

The start date of the interval.

interval_end
string
required

The end date of the interval.

states
object[]
required

A list of state histories during the interval.