UiPath Documentation
insights
2.2510
true
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Insights 用户指南

上次更新日期 2026年5月7日

实时数据导出数据模型

概述

系统中的每项更改都由事件记录的 JSON 格式表示。

支持以下事件类型:

  • 描述作业的事件:
    • job.created
    • job.started
    • job.stopped
    • job.pending
    • job.completed
    • job.faulted
    • job.stopping
    • job.terminating
  • 描述队列项目的事件:
    • queueitem.added
    • queueItem.deferred
    • queueItem.reviewStatusChanged
    • queueItem.retried
    • queueItem.updated
    • queueItem.transactionAbandoned
    • queueItem.transactionCompleted
    • queueItem.transactionFailed
    • queueItem.transactionRetried
    • queueItem.transactionStarted
      备注:

      以下字段将从queueItem.deferredqueueItem.reviewStatusChanged事件中删除:

      • 特定数据
      • 具体内容
      • 输出
  • 描述计算机的事件:
    • machine.created
    • machine.updated
    • machine.deleted
    • machineSession.status
    • machine.assign
    • machine.unassign
  • 描述机器人日志的事件:
    • robotlog

由于不同的事件描述不同的实体和系统更改,因此它们具有不同的内容(JSON 字段)。

事件的格式和架构

每个事件都以 JSON 格式传递,并具有以下内容:

  • 特定于事件的正文
  • 常用字段
  • 元数据

为了更好地理解,请查看以下job.created事件示例。为便于阅读,该示例使用了新行和描述每个部分的注释。真实事件不具有此格式,并作为单行字符串提供。

{
    /*********************
            event-specific body
    **********************/
    "body": {
        "Job": {
            "Key": "<job-key>",
            "CreationTime": null,
            "State": "Pending",
            "StartTime": "<job-start-time>",
            "EndTime": null,
            "ProcessName": "<process-name>",
          "DisplayName": "<display-name>",
            "RobotName": "<robot-name>",
            "HostMachineName": "<host-machine-name>"
        },
    /*********************
            common fields
    **********************/
        "EventType": "job.started",
        "SchemaVersion": "0.0.1",
        "Timestamp": "<timestamp>",
        "TenantKey": "<tenant-key>",
        "TenantName": "<tenant-name>",
        "FolderName": "<folder-name>",
        "FullFolderPath": "<folder-path>",
        "FolderKey": "<folder-key>"
        },
    /*********************
            metadata
    **********************/
    "x-opt-sequence-number": <sequence-number>,
    "x-opt-offset": "<offset>",
    "x-opt-enqueued-time": <enqueued-time>,
    "Diagnostic-Id": "<diagnostic-id>"
}
{
    /*********************
            event-specific body
    **********************/
    "body": {
        "Job": {
            "Key": "<job-key>",
            "CreationTime": null,
            "State": "Pending",
            "StartTime": "<job-start-time>",
            "EndTime": null,
            "ProcessName": "<process-name>",
          "DisplayName": "<display-name>",
            "RobotName": "<robot-name>",
            "HostMachineName": "<host-machine-name>"
        },
    /*********************
            common fields
    **********************/
        "EventType": "job.started",
        "SchemaVersion": "0.0.1",
        "Timestamp": "<timestamp>",
        "TenantKey": "<tenant-key>",
        "TenantName": "<tenant-name>",
        "FolderName": "<folder-name>",
        "FullFolderPath": "<folder-path>",
        "FolderKey": "<folder-key>"
        },
    /*********************
            metadata
    **********************/
    "x-opt-sequence-number": <sequence-number>,
    "x-opt-offset": "<offset>",
    "x-opt-enqueued-time": <enqueued-time>,
    "Diagnostic-Id": "<diagnostic-id>"
}

常用字段

每个事件中都会显示公共字段。

名称类型描述
事件类型string事件的类型。
SchemaVersionstring架构的版本。 不同的版本可能支持不同的事件类型和字段。
时间戳timestamp事件的 UTC 时间戳。
TenantKeyGuid生成事件的租户的唯一标识符。
租户名称string生成事件的租户的名称。
文件夹名称string生成事件的 Orchestrator 文件夹的名称。
FullFolderPathstring如果文件夹是另一个文件夹的子文件夹,则此字段将显示完整路径。
FolderKeyGuid文件夹的唯一标识符。
{
    "EventType": "queueItem.transactionCompleted",
    "SchemaVersion": "0.0.1",
    "Timestamp": "<timestamp>",
    "TenantKey": "<tenant-key>",
    "TenantName": "<tenant-name>",
    "FolderName": "<folder-name>",
    "FullFolderPath": "<folder-path>",
    "FolderKey": "<folder-key>"
}
{
    "EventType": "queueItem.transactionCompleted",
    "SchemaVersion": "0.0.1",
    "Timestamp": "<timestamp>",
    "TenantKey": "<tenant-key>",
    "TenantName": "<tenant-name>",
    "FolderName": "<folder-name>",
    "FullFolderPath": "<folder-path>",
    "FolderKey": "<folder-key>"
}

作业事件

名称类型描述
密钥Guid作业的唯一标识符。
创建时间timestamp创建作业的时间戳。
开始时间timestamp开始作业的时间戳。
结束时间timestamp完成作业的时间戳。
状态string作业状态。 支持的值:
  • Pending
  • Running
  • Stopping
  • Terminating
  • Faulted
  • Successful
  • Stopped
  • Suspended
  • Resumed
流程名称string从中创建作业的包的名称。
显示名称string为 Orchestrator 中的流程提供的名称。
机器人名称string执行作业的机器人的名称。
主机名string正在执行作业的计算机。
{
    "body": {
        "Job": {
        "Key": "<job-key>",
        "CreationTime": "<creation-time>",
        "State": "Running",
        "StartTime": "<start-time>",
        "EndTime": null,
        "ProcessName": "<process-name>",
        "DisplayName": "<display-name>",
        "RobotName": "<robot-name>",
        "HostMachineName": "<host-machine-name>",
    },
    ... common fields ...
    "EventType": "job.started",
    ... more common fields ...
}
{
    "body": {
        "Job": {
        "Key": "<job-key>",
        "CreationTime": "<creation-time>",
        "State": "Running",
        "StartTime": "<start-time>",
        "EndTime": null,
        "ProcessName": "<process-name>",
        "DisplayName": "<display-name>",
        "RobotName": "<robot-name>",
        "HostMachineName": "<host-machine-name>",
    },
    ... common fields ...
    "EventType": "job.started",
    ... more common fields ...
}

队列项目事件

名称类型描述
队列项目JSON 对象
密钥Guid队列项目的唯一标识符。
队列定义 IDnumber队列项目所属队列的数字标识符。
状态string队列项目的状态。支持的值:
  • New
  • InProgress
  • Failed
  • Successful
  • Abandoned
  • Retried
  • Deleted
  • Unknown
审核状态string队列项目的审核状态。支持的值:
  • None
  • InReview
  • Verified
  • Retried
  • Unknown
截止日期datetime应处理项目的最晚日期和时间。
优先级string队列项目的优先级。支持的值:
  • High
  • Normal
  • Low
  • Unknown
创建时间datetime创建队列项目时的时间戳。
开始处理datetime队列项目开始处理时的时间戳。
结束处理datetime队列项目完成处理(成功与否)时的时间戳。
DefferDatedatetime输入项目可进行处理的最早日期和时间。如果为空,则可以尽快处理该项目。
之前尝试中的秒数number上次失败的处理尝试持续的秒数。
重试次数number此队列项目的处理次数。
进度stringString filed added by developers in UiPath Studio which is used to keep track on the business flow progress.
分析数据stringA collection of key-value pairs containing the data from the Analytics property added by developers in Studio via the Set Transaction Status activity.
输出stringA collection of key-value pairs containing the data from the Output property added by developers in Studio via the Set Transaction Status activity.
特定数据string键值对集合,其中包含开发者在 Studio 中通过“设置事务状态”活动添加的Specific Content属性中的数据。包含在UiPath Studio“添加队列项目”活动中配置的自定义数据的键值对集合。
创建者作业 IDnumber创建队列项目的作业的 ID。
执行者作业 IDnumber执行队列项目的作业的 ID。
ProcessExceptionReasonstring队列项目处理失败的原因摘要。
ProcessExceptionDetailsstring有关队列项目故障的其他详细信息。
ProcessExceptionTypestring对于完成时出现错误的队列项目,此字段描述错误(异常)的类型。 支持的值:
  • ApplicationException
  • BusinessException
  • None
队列JSON 对象
密钥Guid队列的唯一标识符。
名称string队列名称。
描述string有关队列的其他信息,以便更好地识别它。
MaxNumberOfRetriesnumber此队列中的项目在处理失败时可以重试的次数。
EnforceUniqueReferenceboolean说明每个队列项目的 Item Reference 字段是否应该是唯一的。
SlaInMinutesnumber表示队列 SLA 的整数值,以分钟为单位。
RiskSlaInMinutesnumber表示队列风险 SLA 的整数值(以分钟为单位)。
{
    "body": {
        "QueueItem": {
            "Key": "<queue-item-key>",
            "QueueDefinitionId": <queue-definition-id>,
          "Status": "New",
            "ReviewStatus": "None",
            "DueDate": "<due-date>",
            "Priority": "High",
            "CreationTime": "<creation-time>",
            "StartProcessing": "<start-processing-time>",
            "EndProcessing": null,
            "DefferDate": "<deffer-time>",
            "SecondsInPreviousAttempt": 0,
            "RetryNumber": 1,
            "Progress": "<progress>",
            "ProcessExceptionReason": null,
            "ProcessExceptionDetails": null,
            "ProcessExceptionType": null
        },
        "Queue": {
            "Key": "<queue-key>",
            "Name": "<queue-name>",
            "Description": "<queue-description>",
            "MaxNumberOfRetries": 1,
            "EnforceUniqueReference": false,
            "SlaInMinutes": 0,
            "RiskSlaInMinutes": 0
        },
    },
    ... common fields ...
}
{
    "body": {
        "QueueItem": {
            "Key": "<queue-item-key>",
            "QueueDefinitionId": <queue-definition-id>,
          "Status": "New",
            "ReviewStatus": "None",
            "DueDate": "<due-date>",
            "Priority": "High",
            "CreationTime": "<creation-time>",
            "StartProcessing": "<start-processing-time>",
            "EndProcessing": null,
            "DefferDate": "<deffer-time>",
            "SecondsInPreviousAttempt": 0,
            "RetryNumber": 1,
            "Progress": "<progress>",
            "ProcessExceptionReason": null,
            "ProcessExceptionDetails": null,
            "ProcessExceptionType": null
        },
        "Queue": {
            "Key": "<queue-key>",
            "Name": "<queue-name>",
            "Description": "<queue-description>",
            "MaxNumberOfRetries": 1,
            "EnforceUniqueReference": false,
            "SlaInMinutes": 0,
            "RiskSlaInMinutes": 0
        },
    },
    ... common fields ...
}

计算机会话事件

名称类型描述
计算机键值Guid计算机的唯一标识符。
计算机名称string计算机的自定义名称。
主机名string映射到 UiPath 计算机的主机的名称。
服务用户名string正在运行计算机上的机器人服务的用户的名称。
计算机状态string计算机的状态。 支持的值:
  • Available
  • Busy
  • Disconnected
  • Unknown
时间戳datetime计算机会话事件的时间戳。
IsUnresponsiveboolean检查计算机是否响应来自 Orchestrator 的连接。 支持的值:
  • true
  • false计算机可能仍可用,但无响应。一旦十分钟无响应,它就会变为断开连接或未知状态。
{
    "body": {
        "MachineSession": {
            "MachineKey": "<machine-key>",
            "MachineName": "<machine-name>",
            "MachineId": <machine-id>,
            "HostMachineName": "<host-machine-name>",
            "ServiceUsername": "<service-username>",
            "MachineStatus": "Disconnected",
            "ReportingTime": "<reporting-time>",
            "IsUnresponsive": false
        },
        ... common fields ...
        "EventType":"machineSession.status",
        ... more common fields ...
}
{
    "body": {
        "MachineSession": {
            "MachineKey": "<machine-key>",
            "MachineName": "<machine-name>",
            "MachineId": <machine-id>,
            "HostMachineName": "<host-machine-name>",
            "ServiceUsername": "<service-username>",
            "MachineStatus": "Disconnected",
            "ReportingTime": "<reporting-time>",
            "IsUnresponsive": false
        },
        ... common fields ...
        "EventType":"machineSession.status",
        ... more common fields ...
}

计算机事件

名称类型描述
AutomationCloudSlotsnumber要在运行时保留的Automation Cloud <b>TM</b>插槽数量。
HeadlessSlotsnumber要在运行时保留的无头插槽数。
计算机 IDnumber计算机整数 ID,每个 Orchestrator 实例唯一。
计算机键值Guid计算机的唯一标识符。
计算机名称string计算机的自定义名称。
NonProductionSlotsnumber要在运行时保留的 NonProduction 插槽数。
UnattendedSlotsnumber要在运行时保留的 Unattended 插槽数。
{
    "body": {
        "Machine": {
            "MachineName": "<machine-name>",
            "MachineKey": "<machine-key>",
            "NonProductionSlots": 1,
            "HeadlessSlots": 0,
            "AutomationCloudSlots": 0,
            "UnattendedSlots": 0
        },
        ... common fields ...
}
{
    "body": {
        "Machine": {
            "MachineName": "<machine-name>",
            "MachineKey": "<machine-key>",
            "NonProductionSlots": 1,
            "HeadlessSlots": 0,
            "AutomationCloudSlots": 0,
            "UnattendedSlots": 0
        },
        ... common fields ...
}

计算机分配事件

名称类型
计算机键值Guid计算机的唯一标识符。
计算机名称string计算机的自定义名称。
{
    "body": {
        "MachineAssign": {
            "MachineKey": "<machine-key>",
            "MachineName": "<machine-name>"
        },
        "EventType": "machine.unassigned",
        ... common fields ...
    }
}
{
    "body": {
        "MachineAssign": {
            "MachineKey": "<machine-key>",
            "MachineName": "<machine-name>"
        },
        "EventType": "machine.unassigned",
        ... common fields ...
    }
}

机器人日志

名称类型描述
文件名string正在执行的 .xaml 文件的名称。
初始化人员string执行的来源。 可能的值:
  • Assistant
  • Studio
  • StudioX
  • StudioPro
  • Orchestrator
  • CommandLine
  • RobotAPI
作业 IDstring/guidJobKey,作业的唯一标识符。
级别string日志的日志记录级别。 可能的值:
  • Trace
  • Info
  • Warn
  • Error
  • Fatal
日志类型string机器人日志的类型。 可能的值:
  • User
  • Default
  • Error
  • Business
  • ExecutionStep
  • BusinessIteration
  • Info
  • Security
  • Technical
计算机 IDnumber计算机整数 ID,每个 Orchestrator 实例唯一。
计算机名称string计算机的自定义名称。
消息string机器人日志消息。可能的值:
  • execution started
  • execution ended
  • 自定义消息
流程名称string机器人正在执行的流程名称。
流程版本string流程的版本。
机器人名称string机器人的名称。
Windows 标识string执行了所记录操作的用户的名称。
ProcessingExceptionReasonstring异常的原因。 仅存在于事务结束日志中。
处理异常的类型string异常的类型。 仅存在于事务结束日志中。 可能的值:
  • ApplicationException
  • BusinessException
队列项目优先级string队列项目的优先级。仅存在于事务结束日志中。可能的值:
  • High
  • Normal
  • Low
队列项目审核状态string队列项目的审核状态。仅存在于事务结束日志中。可能的值:
  • InReview
  • Verified
  • Reported
  • Retried
队列名称string机器人从中执行队列项目的队列名称。
事务执行时间number事务的执行时间(以秒为单位)。 仅在处理队列项目时具有值。
交易 IDstring/Guid事务的唯一键。 仅在处理队列项目时具有值。
交易说明string事务状态。 仅在处理队列项目时具有值。 可能的值:
  • Started
  • Ended
  • Postponed
交易状态string事务状态。仅在处理队列项目时具有值。可能的值:
  • ApplicationException
  • Start
  • SystemError
  • Failed
  • BusinessException
  • Success
  • InProgress
总执行时间(以秒为单位)number事务的执行时间,以秒为单位。 仅在处理队列项目时具有值。
活动信息JSON包含 DisplayNameStateFaultedClosedExecuting)、 ActivityArguments的活动信息 JSON。
时间戳datetime生成事件的时间。
计算机键值Guid执行作业的计算机的唯一标识符。
自定义字段JSONA JSON that contains the fields defined in the AddLogFields activity in Studio.
{
    "body": {
        "Level": "Info",
        "MachineKey": "<machine-key>",
        "RobotLog": {
            "Message": "Transaction Ended",
            "Level": "Information",
            "LogType": "Default",
            "CustomFields": {
                "Custom fields 1": "value1",
                "Custom fields 2": 2,
            },
        "TimeStamp": "<timestamp>",
        "Fingerprint": "<fingerprint>",
        "WindowsIdentity": "<windows-identity>",
        "MachineName": "<machine-name>",
        "FileName": "<filename>",
        "TransactionExecutionTime": 0.6733966,
        "QueueItemPriority": "Normal",
        "ProcessingExceptionReason": "",
        "TransactionStatus": "Successful",
        "QueueName": "<queue-name>",
        "TransactionState": "Ended",
        "ProcessingExceptionType": "",
        "TransactionId": "<transaction-id>",
        "QueueItemReviewStatus": "None",
        "ProcessName": "<process-name>",
        "ProcessVersion": "1.0.6",
        "JobId": "<job-id>",
        "RobotName": "<robot-name>",
        "MachineId": <machine-id>,
        "OrganizationUnitId": <organization-unit-id>
        },
        "EventType": "robotlog",
        ... common fields ...
    },
}
{
    "body": {
        "Level": "Info",
        "MachineKey": "<machine-key>",
        "RobotLog": {
            "Message": "Transaction Ended",
            "Level": "Information",
            "LogType": "Default",
            "CustomFields": {
                "Custom fields 1": "value1",
                "Custom fields 2": 2,
            },
        "TimeStamp": "<timestamp>",
        "Fingerprint": "<fingerprint>",
        "WindowsIdentity": "<windows-identity>",
        "MachineName": "<machine-name>",
        "FileName": "<filename>",
        "TransactionExecutionTime": 0.6733966,
        "QueueItemPriority": "Normal",
        "ProcessingExceptionReason": "",
        "TransactionStatus": "Successful",
        "QueueName": "<queue-name>",
        "TransactionState": "Ended",
        "ProcessingExceptionType": "",
        "TransactionId": "<transaction-id>",
        "QueueItemReviewStatus": "None",
        "ProcessName": "<process-name>",
        "ProcessVersion": "1.0.6",
        "JobId": "<job-id>",
        "RobotName": "<robot-name>",
        "MachineId": <machine-id>,
        "OrganizationUnitId": <organization-unit-id>
        },
        "EventType": "robotlog",
        ... common fields ...
    },
}

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新