Skip to main content

Automation utils

Automation utilities.

npm install @dynatrace-sdk/automation-utils

Functions

actionExecution

actionExecution(id): Promise<ActionExecution>

Parameters

NameType
id*requiredstring

execution

execution(id): Promise<IExecution>

Parameters

NameType
id*requiredstring

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