@uipath/insights-tool 1.205.0-preview.284 → 1.206.0-preview.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @uipath/insights-tool
2
+
3
+ Adds `uip insights` to the `uip` CLI: read UiPath Insights data. Job, queue and machine monitoring metrics; the folders, processes, queues and machines with recent activity; alert definitions and their trigger history; Insights users, roles and groups; Maestro process monitoring dashboards; Looker dashboards; and export configurations.
4
+
5
+ The tool calls the Insights services through `@uipath/insights-sdk`. See also [docs/tools/insights.md](../../docs/tools/insights.md).
6
+
7
+ ## Commands
8
+
9
+ | Group | Commands | Purpose |
10
+ | --- | --- | --- |
11
+ | `jobs` | `summary`, `completed-timeline`, `uncompleted-timeline`, `top-failures`, `failures-by-reason`, `process-details`, `failure-details` | Job monitoring metrics. |
12
+ | `queues` | `summary`, `sla`, `operational-metrics`, `completed-timeline`, `uncompleted-timeline`, `top-failures`, `failures-by-reason`, `failure-details`, `details`, `retry-outcomes` | Queue monitoring metrics. |
13
+ | `machines` | `runtime-mix`, `details`, `availability-timeline`, `top-failures`, `utilization` | Machine monitoring metrics. |
14
+ | `filter-folders`, `filter-processes`, `filter-queues`, `filter-machines` | `list` | What had activity in the last 30 days — values to pass to the other filters. |
15
+ | `alerts` | `list`, `get`, `check-entitlement` | Alert definitions. |
16
+ | `alert-history` | `list`, `get-metrics` | When alerts fired. |
17
+ | `alert-deliveries` | `get` | One alert delivery. |
18
+ | `users`, `roles`, `groups` | `list`, `get` | Insights access (RBAC). |
19
+ | `dashboards` | `get`, `create`, `update`, `delete`, `copy` | A Maestro process's monitoring dashboard. |
20
+ | `dashboard-filters` | `list` | Global filters stored with a dashboard. |
21
+ | `looker-dashboards` | `list`, `get-embed-url` | Looker dashboards and signed embed URLs. |
22
+ | `export-configurations` | `list`, `verify` | The organization's data export destinations. |
23
+
24
+ ## Examples
25
+
26
+ ```bash
27
+ uip insights jobs summary --time-range 1440 --output json
28
+ uip insights jobs top-failures --time-range 43200 --folder-key <folder-key>
29
+ uip insights queues summary --time-range 1440 --queue-name <queue-name>
30
+ uip insights machines utilization --time-range 1440 --limit 20
31
+ uip insights filter-processes list --output json
32
+ uip insights alert-history list --time-range 1440 --severity ERROR
33
+ uip insights dashboards get --process-key <process-key> --output-file ./dashboard.json
34
+ uip insights dashboards update --process-key <process-key> --file ./dashboard.json --expected-version <n>
35
+ ```
36
+
37
+ ## Notes
38
+
39
+ - Monitoring windows are capped at 30 days by the server. `--time-range` is in minutes. `--started-after` / `--started-before` are epoch milliseconds, but `alert-history --since` / `--until` are epoch seconds.
40
+ - `dashboards delete` also deletes every alert linked to the dashboard; the server keeps no copy. Pass `--backup-file`.
41
+ - On Automation Suite, most monitoring routes are not served; the CLI reports a `ConfigError` with HTTP status 404.
42
+
43
+ ## Authentication
44
+
45
+ Run `uip login` first. Results are limited to what your user can see in Insights.
@@ -1,37 +1,36 @@
1
1
  import {
2
- FROM_PROCESS_KEY_FLAG,
3
- TO_PROCESS_KEY_FLAG
4
- } from "./tool-fqh66108.js";
2
+ getFileSystem,
3
+ catchError,
4
+ describePermissionError,
5
+ RESULTS,
6
+ OutputFormatter,
7
+ InsightsHttpError,
8
+ MAESTRO_DASHBOARD_SOURCE_TYPE,
9
+ resolveInsightsConfig,
10
+ writeInsightsFailure
11
+ } from "./tool-6yszsjpv.js";
5
12
  import {
6
- RENDER_CAVEAT,
7
- caseFlag,
8
- defaultedFilterValuesSentence,
9
13
  findUnknownTables,
14
+ serializeJsonFile,
10
15
  isSavedDashboardId,
11
- modelFieldIds,
12
- modelTableIds,
16
+ RENDER_CAVEAT,
17
+ caseFlag,
18
+ slotReadCommand,
19
+ writeDashboardGetError,
20
+ readAoDashboard,
21
+ writeSlotOccupied,
13
22
  nothingWritten,
14
- postDashboardCreate,
15
23
  prepareDefinition,
24
+ modelTableIds,
25
+ modelFieldIds,
26
+ defaultedFilterValuesSentence,
16
27
  projectWriteOutcome,
17
- readAoDashboard,
18
- serializeJsonFile,
19
- slotReadCommand,
20
- writeDashboardGetError,
21
- writeSlotOccupied
22
- } from "./tool-vgq73hmr.js";
28
+ postDashboardCreate
29
+ } from "./tool-gq2hae5f.js";
23
30
  import {
24
- InsightsHttpError,
25
- MAESTRO_DASHBOARD_SOURCE_TYPE,
26
- OutputFormatter,
27
- RESULTS,
28
- catchError,
29
- describePermissionError,
30
- getFileSystem,
31
- resolveInsightsConfig,
32
- writeInsightsFailure
33
- } from "./tool-y3zg4aa4.js";
34
- import"./tool-1de529jm.js";
31
+ FROM_PROCESS_KEY_FLAG,
32
+ TO_PROCESS_KEY_FLAG
33
+ } from "./tool-tmssew70.js";
35
34
 
36
35
  // src/utils/dashboard-copy.ts
37
36
  var COPY_VERB = "copy";
@@ -328,4 +327,4 @@ export {
328
327
  executeDashboardCopy
329
328
  };
330
329
 
331
- //# debugId=59EDCED18B854BE264756E2164756E21
330
+ //# debugId=A637A5121EB014C064756E2164756E21
@@ -1,50 +1,49 @@
1
1
  import {
2
- ALERTS_FAMILY,
3
- AlertContractError,
4
- projectAlertDefinition
5
- } from "./tool-27jy65c7.js";
6
- import {
7
- DASHBOARDS_FAMILY,
8
- caseFlag,
9
- classifyDashboardWrite400Branch,
10
- dashboardWrite400Failure,
11
- isSavedDashboardId,
12
- readAoDashboard,
13
- readBackFailure,
14
- readSlot,
15
- shellQuote,
16
- slotReadCommand,
17
- sourceTypeFlag,
18
- writeDashboardGetError,
19
- writeJsonFile,
20
- writeReadBackFailed,
21
- writeUnknownWriteOutcome
22
- } from "./tool-vgq73hmr.js";
23
- import {
2
+ catchError,
3
+ describeConnectivityError,
4
+ RESULTS,
5
+ OutputFormatter,
6
+ requireConfirmation,
7
+ MODEL_NOT_FOUND_LABEL,
24
8
  DASHBOARD_NOT_FOUND_LABEL,
25
- DASHBOARD_SLOT_DELIMITER,
26
- DashboardRequestError,
27
9
  InsightsHttpError,
28
10
  InsightsNetworkError,
29
11
  InsightsProtocolError,
12
+ listAlertDefinitions,
13
+ DASHBOARD_SLOT_DELIMITER,
30
14
  MAESTRO_DASHBOARD_SOURCE_TYPE,
31
- MODEL_NOT_FOUND_LABEL,
32
- OutputFormatter,
33
- RESULTS,
34
- asRecord,
35
- catchError,
15
+ DashboardRequestError,
36
16
  deleteDashboard,
37
- describeConnectivityError,
38
17
  failValidation,
39
- listAlertDefinitions,
40
- pickScalar,
41
- requireConfirmation,
18
+ writeNetworkFailure,
42
19
  resolveInsightsConfig,
43
- writeInsightsError,
44
20
  writeInsightsFailure,
45
- writeNetworkFailure
46
- } from "./tool-y3zg4aa4.js";
47
- import"./tool-1de529jm.js";
21
+ writeInsightsError,
22
+ asRecord,
23
+ pickScalar
24
+ } from "./tool-6yszsjpv.js";
25
+ import {
26
+ AlertContractError,
27
+ ALERTS_FAMILY,
28
+ projectAlertDefinition
29
+ } from "./tool-qpzyx1x8.js";
30
+ import {
31
+ writeJsonFile,
32
+ DASHBOARDS_FAMILY,
33
+ isSavedDashboardId,
34
+ shellQuote,
35
+ sourceTypeFlag,
36
+ classifyDashboardWrite400Branch,
37
+ dashboardWrite400Failure,
38
+ writeUnknownWriteOutcome,
39
+ caseFlag,
40
+ slotReadCommand,
41
+ writeDashboardGetError,
42
+ readAoDashboard,
43
+ readSlot,
44
+ readBackFailure,
45
+ writeReadBackFailed
46
+ } from "./tool-gq2hae5f.js";
48
47
 
49
48
  // src/utils/dashboard-delete.ts
50
49
  function confirmationOperation(target) {
@@ -438,4 +437,4 @@ export {
438
437
  executeDashboardDelete
439
438
  };
440
439
 
441
- //# debugId=1DA6CE6573D7740664756E2164756E21
440
+ //# debugId=A42FB3A68AC54B1464756E2164756E21
@@ -1,45 +1,44 @@
1
1
  import {
2
- DASHBOARDS_FAMILY,
3
- DEFINITION_FILE_RECOVERY,
4
- RENDER_CAVEAT,
5
- caseFlag,
6
- classifyDashboardWrite400Branch,
7
- countCharts,
8
- dashboardWrite400Failure,
9
- findBodyTenantMismatch,
10
- findDashboardInputFault,
11
- findRendererFault,
12
- isSavedDashboardId,
13
- readAoDashboard,
14
- readJsonFile,
15
- readSlot,
16
- sanitizeDashboardDefinition,
17
- slotReadCommand,
18
- sourceTypeFlag,
19
- writeDashboardGetError,
20
- writeJsonFile,
21
- writeReadBackFailed,
22
- writeUnknownWriteOutcome
23
- } from "./tool-vgq73hmr.js";
24
- import {
25
- DashboardRequestError,
2
+ catchError,
3
+ describeConnectivityError,
4
+ RESULTS,
5
+ OutputFormatter,
6
+ UPDATE_BACKEND_FAILURE_LABEL,
26
7
  InsightsHttpError,
27
8
  InsightsNetworkError,
28
9
  InsightsProtocolError,
29
10
  MAESTRO_DASHBOARD_SOURCE_TYPE,
30
- OutputFormatter,
31
- RESULTS,
32
- UPDATE_BACKEND_FAILURE_LABEL,
33
- catchError,
34
- describeConnectivityError,
11
+ DashboardRequestError,
12
+ updateDashboard,
35
13
  failValidation,
14
+ writeNetworkFailure,
36
15
  resolveInsightsConfig,
37
- updateDashboard,
38
- writeInsightsError,
39
16
  writeInsightsFailure,
40
- writeNetworkFailure
41
- } from "./tool-y3zg4aa4.js";
42
- import"./tool-1de529jm.js";
17
+ writeInsightsError
18
+ } from "./tool-6yszsjpv.js";
19
+ import {
20
+ findBodyTenantMismatch,
21
+ DEFINITION_FILE_RECOVERY,
22
+ sanitizeDashboardDefinition,
23
+ findRendererFault,
24
+ findDashboardInputFault,
25
+ readJsonFile,
26
+ writeJsonFile,
27
+ DASHBOARDS_FAMILY,
28
+ isSavedDashboardId,
29
+ sourceTypeFlag,
30
+ RENDER_CAVEAT,
31
+ classifyDashboardWrite400Branch,
32
+ dashboardWrite400Failure,
33
+ writeUnknownWriteOutcome,
34
+ countCharts,
35
+ caseFlag,
36
+ slotReadCommand,
37
+ writeDashboardGetError,
38
+ readAoDashboard,
39
+ readSlot,
40
+ writeReadBackFailed
41
+ } from "./tool-gq2hae5f.js";
43
42
 
44
43
  // src/utils/dashboard-update.ts
45
44
  var VERSION_CAVEAT = "The --expected-version check is a best-effort client-side compare, not server concurrency control: this route accepts no If-Match or version precondition, so a write landing between the preflight read and the PUT is not detected and the last writer wins.";
@@ -455,4 +454,4 @@ export {
455
454
  executeDashboardUpdate
456
455
  };
457
456
 
458
- //# debugId=1D75E5BD0B26C2BA64756E2164756E21
457
+ //# debugId=845851A32A19BFC764756E2164756E21
@@ -1,28 +1,27 @@
1
1
  import {
2
- unwrapPortalEnvelope
3
- } from "./tool-rcsacsyz.js";
4
- import {
5
- OutputFormatter,
6
- RESULTS,
7
- asRecord,
8
2
  catchError,
9
- claimGatedSurface404,
10
- claimHttpError,
11
- createContractGuards,
12
- executeInsightsGet,
13
- executeInsightsList,
3
+ RESULTS,
4
+ OutputFormatter,
14
5
  isGuid,
15
6
  listExportConfigurations,
16
- overPagedNote,
17
- pagingCostNote,
18
- resolveInsightsConfig,
19
- truncatedNote,
20
7
  verifyAllExportDestinations,
21
8
  verifyExportDestination,
9
+ resolveInsightsConfig,
10
+ writeInsightsFailure,
11
+ claimGatedSurface404,
22
12
  writeInsightsError,
23
- writeInsightsFailure
24
- } from "./tool-y3zg4aa4.js";
25
- import"./tool-1de529jm.js";
13
+ truncatedNote,
14
+ pagingCostNote,
15
+ overPagedNote,
16
+ claimHttpError,
17
+ executeInsightsList,
18
+ executeInsightsGet,
19
+ asRecord,
20
+ createContractGuards
21
+ } from "./tool-6yszsjpv.js";
22
+ import {
23
+ unwrapPortalEnvelope
24
+ } from "./tool-90qd53x4.js";
26
25
 
27
26
  // src/utils/export-configurations.ts
28
27
  class ExportContractError extends Error {
@@ -530,19 +529,9 @@ function emitVerifyOne(configurationId, row, result) {
530
529
  });
531
530
  }
532
531
  export {
533
- EXPORT_FAMILY,
534
- EXPORT_SURFACE_GATE,
535
- ExportContractError,
536
- ORG_ADMIN_NOTE,
537
- REDACTED_HEADER_VALUE,
538
- STORED_TYPE_MISMATCH_MESSAGE,
539
- buildVerifyBody,
540
532
  executeExportConfigurationsList,
541
533
  executeExportVerifyAll,
542
- executeExportVerifyOne,
543
- parseExportConfigurations,
544
- projectConfigurationRow,
545
- projectVerifyAllRows
534
+ executeExportVerifyOne
546
535
  };
547
536
 
548
- //# debugId=E6FD1CD55A8C843564756E2164756E21
537
+ //# debugId=99F53AD504D3773A64756E2164756E21
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../node_modules/open/index.js
4
2
  import process7 from "node:process";
5
3
  import path from "node:path";
@@ -548,22 +546,6 @@ var open = (target, options) => {
548
546
  target
549
547
  });
550
548
  };
551
- var openApp = (name, options) => {
552
- if (typeof name !== "string" && !Array.isArray(name)) {
553
- throw new TypeError("Expected a valid `name`");
554
- }
555
- const { arguments: appArguments = [] } = options ?? {};
556
- if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
557
- throw new TypeError("Expected `appArguments` as Array type");
558
- }
559
- return baseOpen({
560
- ...options,
561
- app: {
562
- name,
563
- arguments: appArguments
564
- }
565
- });
566
- };
567
549
  function detectArchBinary(binary) {
568
550
  if (typeof binary === "string" || Array.isArray(binary)) {
569
551
  return binary;
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
626
608
  }));
627
609
  var open_default = open;
628
610
  export {
629
- apps,
630
- open_default as default,
631
- openApp
611
+ open_default as default
632
612
  };
633
613
 
634
- //# debugId=42C9AEC59ECC644E64756E2164756E21
614
+ //# debugId=6F288C058A3A412164756E2164756E21
package/dist/index.js CHANGED
@@ -1,21 +1,19 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- metadata,
4
- registerCommands
5
- } from "./tool-vwjyaqpd.js";
6
- import"./tool-27jy65c7.js";
7
- import"./tool-fqh66108.js";
8
- import"./tool-rcsacsyz.js";
9
- import"./tool-vgq73hmr.js";
10
2
  import {
11
3
  Command
12
- } from "./tool-y3zg4aa4.js";
13
- import"./tool-1de529jm.js";
4
+ } from "./tool-6yszsjpv.js";
5
+ import"./tool-qpzyx1x8.js";
6
+ import"./tool-gq2hae5f.js";
7
+ import {
8
+ metadata2,
9
+ registerCommands2
10
+ } from "./tool-dn5p36gh.js";
11
+ import"./tool-90qd53x4.js";
14
12
 
15
13
  // src/index.ts
16
14
  var program = new Command;
17
- program.name(metadata.commandPrefix).description(metadata.description).version(metadata.version);
18
- await registerCommands(program);
15
+ program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
16
+ await registerCommands2(program);
19
17
  program.parse(process.argv);
20
18
 
21
- //# debugId=3B04AE65E357D23364756E2164756E21
19
+ //# debugId=1DCAA9F7A77FE08A64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./tool-1de529jm.js";
3
+ } from "./tool-epsr41wx.js";
4
4
 
5
5
  // ../../node_modules/jmespath/jmespath.js
6
6
  var require_jmespath = __commonJS(function(exports) {
@@ -1,5 +1,3 @@
1
- import"./tool-1de529jm.js";
2
-
3
1
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
4
2
  function getDefaultExportFromCjs(x) {
5
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -3150,4 +3148,4 @@ export {
3150
3148
  types
3151
3149
  };
3152
3150
 
3153
- //# debugId=9FA8E718B2F80BEA64756E2164756E21
3151
+ //# debugId=41DC6971B94BC54964756E2164756E21