Dynatrace Dtrum Api Types
This package contains the Typescript type information for the Dtrum Api of the javascript agent.
Keep in mind that when the javascript agent is updated, this type package might not provide accurate types.
Version: 1.219.10
Installation
npm install --save-dev @dynatrace/dtrum-api-types
Usage examples
import "@dynatrace/dtrum-api-types";
if (window.dtrum) {
window.dtrum.identifyUser("exampleId");
} else {
// handle missing dtrum api
}
import "@dynatrace/dtrum-api-types";
import { ResourceSummaryTypes } from '@dynatrace/dtrum-api-types';
if (window.dtrum) {
window.dtrum.startThirdParty(ResourceSummaryTypes.IMAGES, "..../img.jpg");
} else {
// handle missing dtrum api
}