TimelineRecord interface

有关管道运行期间执行不同操作的详细信息。

属性

agentSpecification

运行管道作业的代理的规范,采用二进制格式。 当记录的类型为 Job 时适用。 <br />Example: { “VMImage” : “windows-2019” }

attempt

记录尝试次数。

changeId

连接同时更新的所有记录的 ID。 此值取自时间线的 ChangeId。

currentOperation

指示当前操作的字符串。

details

对子时间线的引用。

errorCount

此操作产生的错误数。

finishTime

记录的完成时间。

id

记录的 ID。

identifier

在尝试中保持一致的字符串标识符。

issues

此操作生成的问题列表。

lastModified

上次修改记录的时间。

___location

记录的 REST URL。

log

对此操作生成的日志的引用。

name

记录的名称。

order

相对于时间线内其他记录的序号值。

parentId

记录的父项的 ID。 <br />Example:阶段是阶段的父级,阶段是作业的父级,Job 是 Task 的父级。

percentComplete

记录完成百分比。

previousAttempts

上一条记录尝试。

queueId

将项目连接到运行操作的代理池的队列的 ID。 当记录的类型为 Job 时适用。

refName

引用的记录的名称。

result

记录的结果。

resultCode

在记录操作完成后评估预定义条件。 <br />Example: Evaluating succeeded(), Result = True <br />Example: evaluating and(succeeded(), eq(variables['system.debug'], False)), Result = False

startTime

记录的开始时间。

state

记录的状态。

task

对任务的引用。 当记录类型为 Task 时适用。

type

记录跟踪的操作类型。 <br />示例:阶段、阶段、作业、任务...

variables

记录的变量。

warningCount

此操作生成的警告数。

workerName

运行操作的代理的名称。 当记录的类型为 Job 时适用。

属性详细信息

agentSpecification

运行管道作业的代理的规范,采用二进制格式。 当记录的类型为 Job 时适用。 <br />Example: { “VMImage” : “windows-2019” }

agentSpecification: any

属性值

any

attempt

记录尝试次数。

attempt: number

属性值

number

changeId

连接同时更新的所有记录的 ID。 此值取自时间线的 ChangeId。

changeId: number

属性值

number

currentOperation

指示当前操作的字符串。

currentOperation: string

属性值

string

details

对子时间线的引用。

details: TimelineReference

属性值

errorCount

此操作产生的错误数。

errorCount: number

属性值

number

finishTime

记录的完成时间。

finishTime: Date

属性值

Date

id

记录的 ID。

id: string

属性值

string

identifier

在尝试中保持一致的字符串标识符。

identifier: string

属性值

string

issues

此操作生成的问题列表。

issues: Issue[]

属性值

Issue[]

lastModified

上次修改记录的时间。

lastModified: Date

属性值

Date

___location

记录的 REST URL。

___location: string

属性值

string

log

对此操作生成的日志的引用。

log: TaskLogReference

属性值

name

记录的名称。

name: string

属性值

string

order

相对于时间线内其他记录的序号值。

order: number

属性值

number

parentId

记录的父项的 ID。 <br />Example:阶段是阶段的父级,阶段是作业的父级,Job 是 Task 的父级。

parentId: string

属性值

string

percentComplete

记录完成百分比。

percentComplete: number

属性值

number

previousAttempts

上一条记录尝试。

previousAttempts: TimelineAttempt[]

属性值

queueId

将项目连接到运行操作的代理池的队列的 ID。 当记录的类型为 Job 时适用。

queueId: number

属性值

number

refName

引用的记录的名称。

refName: string

属性值

string

result

记录的结果。

result: TaskResult

属性值

resultCode

在记录操作完成后评估预定义条件。 <br />Example: Evaluating succeeded(), Result = True <br />Example: evaluating and(succeeded(), eq(variables['system.debug'], False)), Result = False

resultCode: string

属性值

string

startTime

记录的开始时间。

startTime: Date

属性值

Date

state

记录的状态。

state: TimelineRecordState

属性值

task

对任务的引用。 当记录类型为 Task 时适用。

task: TaskReference

属性值

type

记录跟踪的操作类型。 <br />示例:阶段、阶段、作业、任务...

type: string

属性值

string

variables

记录的变量。

variables: {[key: string]: VariableValue}

属性值

{[key: string]: VariableValue}

warningCount

此操作生成的警告数。

warningCount: number

属性值

number

workerName

运行操作的代理的名称。 当记录的类型为 Job 时适用。

workerName: string

属性值

string