<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a monitor that fails if a specific field contains null in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Create-a-monitor-that-fails-if-a-specific-field-contains-null/m-p/204176#M1700</link>
    <description>&lt;P&gt;Hi, this is probably a basic question but I am new to Dynatrace. I have an endpoint that is returning a 200 when 2 required fields are null. We are not yet sure where the bug in the code is but want to monitor the rare exception this happens. &amp;nbsp;The JSON response is similar to:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "requiredOne" : null,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "requiredTwo" : null&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will this be as simple as setting the two rules below?&lt;/P&gt;
&lt;P&gt;pass if 200&lt;/P&gt;
&lt;P&gt;fails if contains text "requiredOne" : null&lt;/P&gt;
&lt;P&gt;or should I use regex? Thank you for any suggestions.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 10:32:42 GMT</pubDate>
    <dc:creator>Kevin4</dc:creator>
    <dc:date>2023-02-07T10:32:42Z</dc:date>
    <item>
      <title>Create a monitor that fails if a specific field contains null</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Create-a-monitor-that-fails-if-a-specific-field-contains-null/m-p/204176#M1700</link>
      <description>&lt;P&gt;Hi, this is probably a basic question but I am new to Dynatrace. I have an endpoint that is returning a 200 when 2 required fields are null. We are not yet sure where the bug in the code is but want to monitor the rare exception this happens. &amp;nbsp;The JSON response is similar to:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "requiredOne" : null,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; "requiredTwo" : null&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will this be as simple as setting the two rules below?&lt;/P&gt;
&lt;P&gt;pass if 200&lt;/P&gt;
&lt;P&gt;fails if contains text "requiredOne" : null&lt;/P&gt;
&lt;P&gt;or should I use regex? Thank you for any suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 10:32:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Create-a-monitor-that-fails-if-a-specific-field-contains-null/m-p/204176#M1700</guid>
      <dc:creator>Kevin4</dc:creator>
      <dc:date>2023-02-07T10:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a monitor that fails if a specific field contains null.</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Create-a-monitor-that-fails-if-a-specific-field-contains-null/m-p/204180#M1701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/59361"&gt;@Kevin4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming that You are Client side of this communication. Then Yes You can create monitor tracking those fields - I would personally go regexp as You can do it all in one go and still should be relatively simple.&lt;BR /&gt;IF You have access to Server-Side of this communication then I would recommend creating RequestAttributes that captures those values before sending them - this way You would be able to use multidimensional analysis to narrow down cases where those double null happens. Making this capturing from real traffic at the same time will allow You to find all potential reasons behind them.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 05:12:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Create-a-monitor-that-fails-if-a-specific-field-contains-null/m-p/204180#M1701</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2023-02-07T05:12:48Z</dc:date>
    </item>
  </channel>
</rss>

