Loading...
Loading...
Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.
npx skill4agent add dynatrace/dynatrace-for-ai dt-js-runtimeexport default async function () {
// ...
return result;
}| File | When to load |
|---|---|
| references/limits-and-restrictions.md | Timeout / memory / I/O quotas; what's forbidden ( |
| references/apis-and-modules.md | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) |
| references/fetch.md | Calling internal |
| references/sdk.md | Any |
dtctl exec function# Run inline code
dtctl exec function --code 'export default async function() { return "hello" }'
# Run from file
dtctl exec function -f script.js
# Pass JSON input — accessed as event.payload inside the function
dtctl exec function -f script.js --payload '{"key":"value"}'eventexport default async function(event) {
const { payload } = event; // from --payload
// event.environmentId also available
return payload;
}dynatrace-controlexec function