UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

78 lines (77 loc) 2.49 kB
import BitmovinResponse from './BitmovinResponse'; import Message from './Message'; import Status from './Status'; /** * @export * @class Subtask */ export declare class Subtask extends BitmovinResponse { /** * Current status (required) * @type {Status} * @memberof Subtask */ status?: Status; /** * Progress in percent * @type {number} * @memberof Subtask */ progress?: number; /** * Name of the subtask (required) * @type {string} * @memberof Subtask */ name?: string; /** * Task specific messages * @type {Message[]} * @memberof Subtask */ messages?: Message[]; /** * Timestamp when the subtask was created, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ * @type {Date} * @memberof Subtask */ createdAt?: Date; /** * Timestamp when the subtask was last updated, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ * @type {Date} * @memberof Subtask */ updatedAt?: Date; /** * Timestamp when the subtask was started, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ * @type {Date} * @memberof Subtask */ startedAt?: Date; /** * Timestamp when the subtask status changed to 'QUEUED', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ * @type {Date} * @memberof Subtask */ queuedAt?: Date; /** * Timestamp when the subtask status changed to 'RUNNING', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ * @type {Date} * @memberof Subtask */ runningAt?: Date; /** * Timestamp when the subtask status changed to a final state like 'FINISHED', 'ERROR', 'CANCELED', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Note that this timestamp might be inaccurate for subtasks which ran prior to the [1.50.0 REST API release](https://bitmovin.com/docs/encoding/changelogs/rest). * @type {Date} * @memberof Subtask */ finishedAt?: Date; /** * Timestamp when the subtask status changed to 'ERROR', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Note that this timestamp is deprecated and is equivalent to finishedAt in case of an 'ERROR'. * @type {Date} * @memberof Subtask */ errorAt?: Date; constructor(obj?: Partial<Subtask>); } export default Subtask;