29 Mar 2023
01:31 AM
- last edited on
30 Mar 2023
02:08 AM
by
MaciejNeumann
Hi,
Can I create a problem for the service using api with the name of the service?
thanks.
Solved! Go to Solution.
hi Babar
I want to create a problem using dyatrace api
I wonder if I can use the name of the service that I want to create a problem with the key value of API.
thanks,
guihoon
I'm guessing You would like to create EVENT via APIv2 that is one of the Opening Problem types (Error_Event, Custom_Alert or such). Details in link:https://www.dynatrace.com/support/help/dynatrace-api/environment-api/events-v2/post-event#parameters
This way Dynatrace will open a Problem on related objects and will start analyzing surrounding components and impact.
As Event target can be chosen using EntitySelector, You can simply target them with name, id or even tags.
Still it's worthy to check if You can't do it without fetching/pushing external data.
Ex: Custom error detection, tuning AnomalyDetection or creating CustomEvents for Alerting using some internal metrics or data from RequestAttributes
Bests
Michal
hi Michal
Thank you for the good information.
guihoon
As I understand it, you want to use the API and create a custom event that will then show up in your Dynatrace Problem overview.
Cheers
Marco
hi Marco
Thank you for the good information.
guihoon
Featured Posts