@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
44 lines (43 loc) • 1.66 kB
TypeScript
import { CreatedOrUpdatedByResponse } from '../../models/api/CreatedOrUpdatedByResponse';
import { EmpiricalPolicyResponse } from '../../models/api/EmpiricalPolicyResponse';
import { StateResponse } from '../../models/api/StateResponse';
import { ServerStateType } from '../../models/StateType';
import { PrefectStateNames } from '../../types';
import { DateString } from '../../types/dates';
import { SchemaValues } from '../../types/schemas';
export type FlowRunResponse = {
id: string;
created: DateString;
created_by: CreatedOrUpdatedByResponse | null;
updated: DateString;
name: string | null;
flow_id: string;
flow_name: string | null;
state_id: string | null;
deployment_id: string | null;
deployment_version_id: string | null;
flow_version: string | null;
parameters: SchemaValues;
idempotency_key: string | null;
context: unknown;
empirical_policy: EmpiricalPolicyResponse | null;
empirical_config: unknown;
tags: string[] | null;
parent_task_run_id: string | null;
state_name: PrefectStateNames | null;
state_type: ServerStateType | null;
run_count: number | null;
expected_start_time: DateString | null;
next_scheduled_start_time: DateString | null;
start_time: DateString | null;
end_time: DateString | null;
total_run_time: number;
estimated_run_time: number;
estimated_start_time_delta: number | null;
auto_scheduled: boolean | null;
state: StateResponse | null;
work_queue_name: string | null;
work_pool_name: string | null;
work_pool_queue_name: string | null;
job_variables?: Record<string, unknown> | null;
};