<?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 Specify Duration Time Literals When Parsing JSON with DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Specify-Duration-Time-Literals-When-Parsing-JSON-with-DQL/m-p/251224#M1078</link>
    <description>&lt;P&gt;Hello, I am attempting to parse the following json:&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"ResultCode": "Ok",
"DurationMs": "450.1132",
"PerformanceBucket": "250ms-500ms"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the following DQL in my notebook:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs
| parse content, "JSON{STRING:ResultCode, STRING:PerformanceBucket, DURATION:DurationMs}:parsedContent"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I specify that the Duration is in milliseconds instead of nanoseconds (which is the default)? It looks like the DURATION datatype doesn't allow to pass a duration time literals argument...&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/data-types#duration" target="_blank" rel="noopener"&gt;DQL data types - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2025 14:09:38 GMT</pubDate>
    <dc:creator>strudeau</dc:creator>
    <dc:date>2025-12-18T14:09:38Z</dc:date>
    <item>
      <title>Specify Duration Time Literals When Parsing JSON with DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Specify-Duration-Time-Literals-When-Parsing-JSON-with-DQL/m-p/251224#M1078</link>
      <description>&lt;P&gt;Hello, I am attempting to parse the following json:&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"ResultCode": "Ok",
"DurationMs": "450.1132",
"PerformanceBucket": "250ms-500ms"}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the following DQL in my notebook:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs
| parse content, "JSON{STRING:ResultCode, STRING:PerformanceBucket, DURATION:DurationMs}:parsedContent"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I specify that the Duration is in milliseconds instead of nanoseconds (which is the default)? It looks like the DURATION datatype doesn't allow to pass a duration time literals argument...&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/data-types#duration" target="_blank" rel="noopener"&gt;DQL data types - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 14:09:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Specify-Duration-Time-Literals-When-Parsing-JSON-with-DQL/m-p/251224#M1078</guid>
      <dc:creator>strudeau</dc:creator>
      <dc:date>2025-12-18T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a duration time literals when parsing JSON using DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/Specify-Duration-Time-Literals-When-Parsing-JSON-with-DQL/m-p/287000#M2630</link>
      <description>&lt;P&gt;can you add in mathematical operators to take your nano and multiply it by 1,000,000?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;nanoseconds = (5 ms × 1,000,000) = 5,000,000 ns&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 15:23:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Specify-Duration-Time-Literals-When-Parsing-JSON-with-DQL/m-p/287000#M2630</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2025-09-29T15:23:29Z</dc:date>
    </item>
  </channel>
</rss>

