• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Automatically applied tags

Settings API - Automatically applied tags schema table

Automatically applied tags (builtin:tags.auto-tagging)

Tags simplify searches for related services, process groups, and hosts. They also facilitate the collection of related metrics into meaningful groups for analysis.

In dynamic or large environments, manual tagging of such entities is often impractical. In such cases, it's recommended that you use automated rule-based tags.

Rule-based tags behave just like manually-applied tags, except they're applied automatically to new entities that match defined rules. Automated rule-based tags can't be removed manually from individual services, process groups, or hosts. Rule-based tags are removed automatically once an entity no longer matches a defined rule.

For value suggestions based on entity data and preview functionality, environment-wide "Access environment" permission is required.

Schema IDSchema groupsScope
builtin:tags.auto-tagging
  • group:tags
environment
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:tags.auto-tagging
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:tags.auto-tagging
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:tags.auto-tagging

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
nameTag nametext-required
descriptionDescriptiontext-optional
rulesRulesset-required

Request body objects

The AttributeCondition object
PropertyLabelTypeDescriptionRequired
keyPropertyenum-required
dynamicKeySourceKey sourcetext-required
dynamicKeyDynamic keytext-required
operatorOperatorenum-required
enumValueValuetext-required
stringValueValuetext-required
caseSensitiveCase sensitiveboolean-required
integerValueValueinteger-required
entityIdValuetext-required
tagTagtext

Format: [CONTEXT]tagKey:tagValue

required
The AutoTagAttributeRule object
PropertyLabelTypeDescriptionRequired
entityTypeRule applies toenum-required
conditionsConditionsset-required
serviceToHostPropagationApply to underlying hosts of matching servicesboolean-required
serviceToPGPropagationApply to underlying process groups of matching servicesboolean-required
pgToHostPropagationApply to underlying hosts of matching process groupsboolean-required
pgToServicePropagationApply to all services provided by the process groupsboolean-required
hostToPGPropagationApply to processes running on matching hostsboolean-required
azureToServicePropagationApply to services provided by matching Azure entitiesboolean-required
azureToPGPropagationApply to process groups connected to matching Azure entitiesboolean-required
The Rule object
PropertyLabelTypeDescriptionRequired
enabledEnabledboolean-required
valueFormatOptional tag valuetext

Type '{' for placeholder suggestions

optional
valueNormalizationValue Normalizationenum-required
typeRule typeenum-required
attributeRule-AutoTagAttributeRule-required
entitySelectorEntity selectortext

The documentation of the entity selector can be found here.

required