How to create problem via v2 API?

Hi,

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

thanks.

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:Events API v2 - POST an event — Dynatrace Docs

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


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 Michal

Thank you for the good information.

guihoon

hi Marco

Thank you for the good information.

guihoon