@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_.
13 lines (12 loc) • 457 B
text/typescript
import { UiFlowRunHistory } from '@/models'
import { MockFunction } from '@/services/Mocker'
export const randomUiFlowRunHistory: MockFunction<UiFlowRunHistory, [Partial<UiFlowRunHistory>?]> = function(overrides = {}) {
return {
id: this.create('string'),
stateType: this.create('stateType'),
duration: this.create('number', [1, 200]),
lateness: this.create('number', [1, 200]),
timestamp: this.create('date'),
...overrides,
}
}