• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Define custom injection rules

Settings 2.0 - Define custom injection rules schema

Define custom injection rules (builtin:rum.web.custom-injection-rules)

Define custom injection rules to control when and where RUM is automatically injected into your application's pages.

Schema IDSchema groupsScope
builtin:rum.web.custom-injection-rules
  • group:rum-injection
APPLICATION - Web application
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:rum.web.custom-injection-rules

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
enabledEnable ruleboolean-required
operatorOperatorenum

Example:

For the URL:
http://www.example.com:8080/lorem/ipsum.jsp?mode=desktop

A rule can be specified on the URL pattern:
/lorem/ipsum.jsp

Using the operator:
URL ends with

Result:
If URL ends with .jsp do not inject the JavaScript library

required
urlPatternURL patterntext-required
ruleRuleenum-required
htmlPattern-text-required