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

replace characters in {ProblemDetailsText} for custom intergration in problem notification

EmreA
Newcomer

Hi,

We have a custom problem notification integration. When we send the payload as:

 

<xml>

  <ProblemDetailsText>{ProblemDetailsText}</ProblemDetailsText>

</xml> 

 

it is displayed as :

 

OPEN Problem P-211214211 in environment Production\nProblem detected at: 18:03 (TRT) 08.12.2021\n\n1 impacted service\n\nWeb request service\nSecure Span Gateway\n\nResponse time degradation\n23.4 requests\/min impacted\nThe current response time (7.57 s) within the slowest 10% exceeds the auto-detected baseline (61.2 ms) by 12,256 %\nService method: \/MyGroup\/grouprequestdetail\/create\/v1\n\nhttps:\/\/dtmonitor\/e\/4d4a1b99-123b-457f-ac83-57a07754aaeb\/#problems\/problemdetails;pid=-2425595876421843175_1638975480000V2

 

Is it possible to replace "\n" s?

Regards

1 REPLY 1

skrystosik
DynaMight Guru
DynaMight Guru

There is no such option to modify variable content. You can open product idea to add for example option to modify content with regex for example. In such example you can only create kind of middleware that will clear this content for you on the fly. The question is if your system will not accept html for example.

Regards, Sebastian

Featured Posts