• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Variables

Settings API - Variables schema table

Variables (builtin:rum.web.variables)

Create variables to later use them in naming rules or properties. View examples on variables.

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

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
sourceSourceSource-required
processingStepsProcessing stepslist-required
nameVariable nametext-required

Request body objects

The ProcessingStep object
PropertyLabelTypeDescriptionRequired
typeTypeenum-required
patternBeforeLeading delimiter (extract/replace starts here)text-required
searchPatternText to searchtext-required
patternBeforeSearchTypeOccurrenceenum-required
patternAfterTrailing delimiter (extract/replace ends here)text-required
patternAfterSearchTypeOccurrenceenum-required
regularExpressionRegular expressiontext-required
replacementReplace with – Optionaltext-optional
fallbackToSelectedSourceFall back to selected sourceboolean-required
The Source object
PropertyLabelTypeDescriptionRequired
typeTypeenum-required
cssSelectorCSS selectortext

Specify a CSS selector. This mechanism will capture the first match's innerText/textContent value. To retrieve a specific attribute value of the element, append the '@' symbol, followed by the attribute name. i.e. '#someDomElement@someAttribute'

required
jsVariableJavaScript variabletext

Specify a JavaScript variable. This variable must be available globally and the capture expression must use dot notation for property reference. i.e. 'someVar.version'. See documentation for details.

required
cookieValueCookie valuetext

Specify a cookie name to capture its value.

required
metaTagMeta tag nametext

Specify a meta tag name to capture its 'content' value.

required
queryStringQuery stringtext

Specify a query string parameter to capture its value.

required
requestAttributeRequest attribute nametext

Select an existing request attribute or create a new one.

required