Automation utils
Automation utilities.
npm install @dynatrace-sdk/automation-utils
Functions
actionExecution
execution
Execution utilities examples
To get execution detail
import { execution } from '@dynatrace-sdk/automation-utils';
const exe = await execution('9906b170-3aac-4059-8ffe-0988f4a27400');
To get event context from execution
import { execution } from '@dynatrace-sdk/automation-utils';
const exe = await execution('9906b170-3aac-4059-8ffe-0988f4a27400');
const eventContext = exe.event();
To get task execution result
import { execution } from '@dynatrace-sdk/automation-utils';
const exe = await execution('9906b170-3aac-4059-8ffe-0988f4a27400');
const result = await exe.result('run_javascript');
Action Execution utilities example
To get action execution detail
import { actionExecution } from '@dynatrace-sdk/automation-utils';
const actionExe = await actionExecution('9906b170-3aac-4059-8ffe-0988f4a27400');
To get loopItem from action execution
import { actionExecution } from '@dynatrace-sdk/automation-utils';
const actionExe = await actionExecution('9906b170-3aac-4059-8ffe-0988f4a27400');
const loopItem = actionExe.loopItem;
// or
const { loopItem } = actionExe;
Still have questions?
Find answers in the Dynatrace Community