UNPKG

@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_.

25 lines (22 loc) 745 B
import { StateType } from '@/models/StateType' export type IStateHistory = { stateType: StateType, stateName: string, countRuns: number, sumEstimatedRunTime: number, sumEstimatedLateness: number, } export class StateHistory implements IStateHistory { public readonly stateType: StateType public readonly stateName: string public readonly countRuns: number public readonly sumEstimatedRunTime: number public readonly sumEstimatedLateness: number public constructor(state: IStateHistory) { this.stateType = state.stateType this.stateName = state.stateName this.countRuns = state.countRuns this.sumEstimatedRunTime = state.sumEstimatedRunTime this.sumEstimatedLateness = state.sumEstimatedLateness } }