cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tagging rules with a List mapping

wiwinleung
Dynatrace Enthusiast
Dynatrace Enthusiast

The customer has over hundread of systems and SystemId to Available mapping:

SystemId, Available
AA, High
BB, Medium
CC, High
DD, Low
EE, Medium
: :

The SystemId tagging (i.e. systemid: AA) is extracted by auto tagging rule from the name of the Synthetic Monitoring (i.e. [AA] http://www.google.com)

Anyone have a better idea on auto tagging rule than creating the rule as the attached screenshot to add Condition one by one?

Many thanks!

/Wiwin

 

1 REPLY 1

JeanBlanc
Advisor

Hi @wiwinleung 

You can use the Settings API to automate this process:
👉 https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/settings...

Simply prepare your mapping (from a CSV or JSON file) and push it via a script (Python, PowerShell, etc.).

This way, you don’t need to click “Add condition” hundreds of times — the script can automatically generate all rules using the API.

Good luck!

Best regards,

Jean

Featured Posts