29 Mar 2023 09:31 AM - last edited on 20 Aug 2024 03:03 PM by Michal_Gebacki
Hi,
Can I create a problem for the service using api with the name of the service?
thanks.
Solved! Go to Solution.
29 Mar 2023 09:53 AM
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
29 Mar 2023 02:26 PM - edited 29 Mar 2023 02:28 PM
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
30 Mar 2023 01:34 AM
hi Michal
Thank you for the good information.
guihoon
29 Mar 2023 02:53 PM
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
30 Mar 2023 01:34 AM
hi Marco
Thank you for the good information.
guihoon