UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip or queue-roi

Syntax and options for `uip or queue-roi`, which manages the Business ROI configuration of an Orchestrator queue.

uip or queue-roi manages the Business ROI configuration of a queue: the manual time a human spends per item, the item volume, the employee cost, and the cost per item. Each queue has at most one ROI configuration. For the same configuration on a process, refer to uip or process-roi.

For the cross-resource conventions (auth, folder scoping, key types, output envelope), refer to the uip or overview.

备注:

Every verb needs the OR.BusinessValue scope on the login, the BusinessValue folder permission that matches the verb (View, Create, Edit, or Delete), and the Business ROI feature enabled on the tenant.

大纲​

uip or queue-roi get     <queue> [--folder-path <path> | --folder-key <key>]
uip or queue-roi create  <queue> --manual-time <number> [value options] [--disabled] [--folder-path <path> | --folder-key <key>]
uip or queue-roi update  <queue> [value options] [--no-volume] [--no-employee-cost] [--no-cost-per-item] [--enabled | --disabled] [--folder-path <path> | --folder-key <key>]
uip or queue-roi delete  <queue> --yes [--folder-path <path> | --folder-key <key>]
uip or queue-roi get     <queue> [--folder-path <path> | --folder-key <key>]
uip or queue-roi create  <queue> --manual-time <number> [value options] [--disabled] [--folder-path <path> | --folder-key <key>]
uip or queue-roi update  <queue> [value options] [--no-volume] [--no-employee-cost] [--no-cost-per-item] [--enabled | --disabled] [--folder-path <path> | --folder-key <key>]
uip or queue-roi delete  <queue> --yes [--folder-path <path> | --folder-key <key>]

动词​

动词用途
getGet the ROI configuration of a queue. Reports Configured: false when none exists.
createCreate the ROI configuration of a queue. Fails when one exists.
updateUpdate the ROI configuration of a queue. Values you do not pass keep their current setting.
deleteDelete the ROI configuration of a queue.

参数​

Every verb takes the same positional argument.

名称必填用途
<queue>是Queue name or key (GUID). A name needs --folder-path or --folder-key when it exists in more than one folder you can see. Find queues with uip or queues list.

文件夹选项​

Every verb accepts these options. They scope a name lookup and are not needed for a key.

短长值默认描述
—--folder-path路径—Folder path the queue name is looked up in (for example, Shared).
—--folder-keyGUID—Folder key the queue name is looked up in.

uip or queue-roi get​

Get the ROI configuration of a queue. When the queue has no ROI configuration, the command succeeds with Configured: false.

示例​

uip or queue-roi get InvoiceQueue --folder-path Shared
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010 \
    --output-filter 'Configured'
uip or queue-roi get InvoiceQueue --folder-path Shared
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010 \
    --output-filter 'Configured'

数据形状(--输出 json)​

{
  "Code": "QueueRoiGet",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Configured": true,
    "Key": "e5f6a7b8-0000-0000-0000-000000000001",
    "Enabled": true,
    "ManualTimePerItem": 12,
    "ManualTimeUnit": "Minutes",
    "ProcessVolume": 4000,
    "ProcessVolumePeriod": "Month",
    "EmployeeCost": 65000,
    "EmployeeCostPeriod": "Annual",
    "ManualCostPerItem": null,
    "Currency": "Usd"
  }
}
{
  "Code": "QueueRoiGet",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Configured": true,
    "Key": "e5f6a7b8-0000-0000-0000-000000000001",
    "Enabled": true,
    "ManualTimePerItem": 12,
    "ManualTimeUnit": "Minutes",
    "ProcessVolume": 4000,
    "ProcessVolumePeriod": "Month",
    "EmployeeCost": 65000,
    "EmployeeCostPeriod": "Annual",
    "ManualCostPerItem": null,
    "Currency": "Usd"
  }
}

A queue with no ROI configuration returns only QueueKey, QueueName, Folder, and Configured: false.

字段描述
KeyKey of the ROI configuration.
EnabledWhether ROI tracking is on for the queue.
ManualTimePerItem / ManualTimeUnitManual time a human spends per item, and its unit.
ProcessVolume / ProcessVolumePeriodItems processed per period. null when not set.
EmployeeCost / EmployeeCostPeriodFully loaded employee cost, in USD, over the period. null when not set.
ManualCostPerItemManual cost per item, in USD. null when not set, in which case the Orchestrator UI computes it from the other values.
CurrencyCurrency of the cost values.

uip or queue-roi create​

Create the ROI configuration of a queue. Requires --manual-time. Fails when the queue already has an ROI configuration; use update to change it.

选项​

短长值默认描述
—--manual-timewhole number, 0 or more必填Manual time a human spends per item, in --time-unit.
—--time-unitSeconds, Minutes, HoursMinutesUnit of --manual-time.
—--volumewhole number, 0 or more—Items processed per --volume-period.
—--volume-periodDay、Week、Month、YearMonth when --volume is setPeriod --volume is measured over. Requires --volume.
—--employee-costnumber, 0 or more, up to 4 decimals—Fully loaded cost of the employee doing the work, in USD, over --cost-period.
—--cost-periodAnnual, HourlyAnnual when --employee-cost is setPeriod --employee-cost is expressed over. Requires --employee-cost.
—--cost-per-itemnumber, 0 or more, up to 4 decimals—Manual cost per item, in USD. When omitted, the Orchestrator UI computes it from the other values.
—--disabled标记关闭Create the configuration with ROI tracking off (the UI's "not applicable").

Orchestrator applies upper limits configured on the tenant. By default, the limits are 10,000 for --manual-time, 10,000,000 for --volume and --employee-cost, and 100,000 for --cost-per-item.

示例​

uip or queue-roi create InvoiceQueue --folder-path Shared --manual-time 12

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 0 --disabled --output-filter 'Key'
uip or queue-roi create InvoiceQueue --folder-path Shared --manual-time 12

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 0 --disabled --output-filter 'Key'

数据形状(--输出 json)​

Code: "QueueRoiCreated", with the same Data fields as get.

uip or queue-roi update​

Update the ROI configuration of a queue. Values you do not pass keep their current setting. Pass at least one value option, --enabled, --disabled, or a --no-* option. Fails with ErrorCode: "not_found" when the queue has no ROI configuration; use create first.

选项​

update accepts the value options of create, all optional and without defaults. When you set --volume or --employee-cost without a period, the stored period is kept, or the create default is used when none is stored. It also accepts:

短长值默认描述
—--no-volume标记—Clear the stored volume and its period.
—--no-employee-cost标记—Clear the stored employee cost and its period.
—--no-cost-per-item标记—Clear the manual cost per item, so the Orchestrator UI computes it again.
—--enabled标记—Turn ROI tracking on. Mutually exclusive with --disabled.
—--disabled标记—Turn ROI tracking off. Mutually exclusive with --enabled.

示例​

uip or queue-roi update InvoiceQueue --folder-path Shared --volume 5000

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --disabled --output-filter 'Enabled'
uip or queue-roi update InvoiceQueue --folder-path Shared --volume 5000

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --disabled --output-filter 'Enabled'

数据形状(--输出 json)​

Code: "QueueRoiUpdated", with the same Data fields as get.

uip or queue-roi delete​

Delete the ROI configuration of a queue. Requires -y, --yes — the CLI never prompts for destructive operations.

选项​

短长值默认描述
-y--yes标记—Required. Confirms the deletion.

示例​

uip or queue-roi delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or queue-roi delete a1b2c3d4-0000-0000-0000-000000000010 --yes

数据形状(--输出 json)​

{
  "Code": "QueueRoiDeleted",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}
{
  "Code": "QueueRoiDeleted",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}

退出代码​

Refer to Exit codes for the shared contract. Verb-specific behavior:

  • update exits 3 (ValidationError) when no value option is passed.
  • create and update exit 3 when --volume-period is passed without --volume, when --cost-period is passed without --employee-cost, or when --enabled and --disabled are both passed.
  • update exits 1 with ErrorCode: "not_found" when the queue has no ROI configuration.
  • delete exits 1 if -y, --yes is omitted.

另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新