question

Winkle K. avatar image
Winkle K. asked ·

Unable to consume Appmon REST API for alert suppression

Hi Team,

I am taking reference from " https://www.dynatrace.com/support/doc/appmon/appmo... " URI and trying to suppress the incidents during business hours.

1. Created business hours definition where System profile was Test1 an Business hour name was test

{ "inclusions": [ { "timespan": { "start": "07:00", "end": "16:00" }, "weekdays": [ "MON","TUE","WED","THU","FRI" ] } ] }

02. validated the business hour creation after consuming Get /profiles/{profileid}/businesshours API, I was able to validated that out

Response Body:

{ "businesshours": [ { "id": "7_to_16", "href": "https://dtrace-2:8021/api/v2/profiles/Test1/businesshours/7_to_16" }, { "id": "test", "href": "https://dtrace-2:8021/api/v2/profiles/Test1/businesshours/test" } ] }

03. Create alert suppression -> is throwing 404 error in the response body

{ "systemprofiles": [ { "systemprofile": "Test1" } ], "businesshours": "test" }

Response Body:

{ "code": 404, "message": "Business hours reference 'test' could not be found." }

Please find the attached screenshots for the same, Need your immediate help on this.

Thanks in advance

Regards,

Winkle khurana

business-hour-validation.png

alert-suppression-response.png

alertingrest apirest
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Winkle K. avatar image
Winkle K. answered ·

Hi Ari,

I have raised this concern with the Support team, they are also facing the same issue and will report this to R&D team to check however they have suggested to use the below workaroung to configure Appmon downtime using below URL

https://www.dynatrace.com/support/doc/appmon/application-monitoring/incidents-and-alerting/incidents-downtimes/

Thing is no such attribute found in order to suppress the downtime based on business hours, Any Idea.


business-hours.png (49.5 KiB)
2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Thanks for the update. Any chance you can link the support case here too?

0 Likes 0 · ·

No, However will share the feedback from the support.

0 Likes 0 · ·
Winkle K. avatar image
Winkle K. answered ·

Ari,

7_to_16_suppress is the incident downtime name for the test1 System Profile, based on the test business hours (Tried using 7_to_16 business hour still the same response)

2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

I actually tried replicating the whole scenario and am facing the same issue. So I'm not really sure what the issue here is. Do you have the ability to open up a support ticket? I would recommend doing that if you can't more help here.

0 Likes 0 · ·

Thanks Ari,

Waiting for someone to answer that. Still if the issue exists will open support case.

Thanks a lot for your time and support

0 Likes 0 · ·
Ari P. avatar image
Ari P. answered ·

In your screenshot, the businesshours in your body says 'test' but the endpoint says '7_to_16_suppress'

Make both of them consistent and see what happens. Additionally, why are you adding "_suppress" at the end? You don't have that in the validation response of the business hours.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Winkle K. avatar image
Winkle K. answered ·

Hi Ari,

I have tried the same, still the same issue.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Ari P. avatar image
Ari P. answered ·

Hello Winkle,

Trying using "businesshours" : "7_to_16" (instead of "businesshours" : "test") and see if that makes a difference.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.