@dynatrace/dtrum-api-types
Advanced tools
Comparing version 1.259.4 to 1.261.2
{ | ||
"name": "@dynatrace/dtrum-api-types", | ||
"version": "1.259.4", | ||
"version": "1.261.2", | ||
"description": "Typescript types for Dynatrace jsagents dtrum api.", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -5,3 +5,3 @@ # Dynatrace Dtrum Api Types | ||
Keep in mind that when the javascript agent is updated, this type package might not provide accurate types. | ||
Version: 1.259.4 | ||
Version: 1.261.2 | ||
@@ -29,6 +29,15 @@ ## Installation | ||
``` | ||
import { ResourceSummaryTypes } from '@dynatrace/dtrum-api-types'; | ||
import { ActionNameResult } from '@dynatrace/dtrum-api-types'; | ||
if (window.dtrum) { | ||
window.dtrum.startThirdParty(ResourceSummaryTypes.IMAGES, "..../img.jpg"); | ||
const result = window.dtrum.actionName("exampleName"); | ||
switch(result) { | ||
case ActionNameResult.SUCCESS: | ||
// handle success... | ||
break; | ||
case ActionNameResult.ACTION_NOT_FOUND: | ||
// handle action not found... | ||
break; | ||
//etc... | ||
} | ||
} else { | ||
@@ -35,0 +44,0 @@ // handle missing dtrum api |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28048
45