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

How to create problem via v2 API?

guihoon_hwang
Frequent Guest

Hi,

Can I create a problem for the service using api with the name of the service?

thanks.

6 REPLIES 6

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @guihoon_hwang 

Would you mind elaborating on your requirements a little more?

Regards,

Babar

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

Hi @guihoon_hwang 

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

MarcoCritti
Contributor

Screenshot 2023-03-29 at 15.49.56.pngAs 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