So I am working on an extension that sends an alert based on the result of a powershell script. Now, if I wanted to create object/classes and then bind the alert to those, how would I go about doing that? For example, I run a powershell script that checks something on an sql server, is there a way to identify that sql server that isn’t through the entity selector?
Option 1: If you know the process id of the process and you add, for example, dt.process.pid=12345 to the metric line it will automatically be exchanged for dt.entity.process_group_instance=PROCESS_GROUP_INSTANCE-D337020E5CAE4F0F,dt.entity.process_group=PROCESS_GROUP-D337020E5CAE4F0D.
Option 2: If you know the tech rule of the process (Process group detection — Dynatrace Docs) and you add, for example, dt.techrule.id=zoomtech as a dimension, it will automatically be exchanged for the above entity dimensions.