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

Send notification if a specific Synthetic Type is matched

DynaMight Champion
DynaMight Champion

I want to send out a notification only if the Synthetic monitor Type contains specific text or wording e.g., Type: 401 Unauthorized but not for e.g., Type: Wait timeout was too short for the page to load.


Example of additional context I get in the Slack message, in this case:

Synthetic monitor global outage
1 failure
Actions: click on "Log in"
Type: 401 Unauthorized


I've tried using the custom event filter but it doesn't seem to follow my logic 😂




Maybe a content validation to fail when some plain text is found: Validate content 

Dynatrace Champion
Dynatrace Champion

Anton's solution would be my first suggestion, to use the content validation available in the product. You can also add extra validation in a JavaScript event. 

If neither of those options work for your scenario, you can push an event from the Browser monitor by sending a fetch request in a JavaScript event. 

DynaMight Champion
DynaMight Champion

Thanks for the suggestions, @HannahM and @AntonPineiro - I'm already using content validation for plain text, to confirm if the user logged in successfully, but I don't want to be alerted on the Wait timeout types.
If the wait timeout occurs, it should not do anything in the form of alerting, other than run the check again on the next interval. I hope I'm making sense.

I'll look into the other suggestions later, hopefully, one of those will do the trick.