<?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 Re: &amp;quot;No Records&amp;quot; - update with string &amp;quot;pending execution&amp;quot; in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286665#M2620</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85826"&gt;@O11y_Noob&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If your DQL query returns a job name but the end time is null, you can use an if-else statement to add your string as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-09-23 at 5.16.49 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30209iF75EFC2D200F2987/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-09-23 at 5.16.49 PM.png" alt="Screenshot 2025-09-23 at 5.16.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 22:21:38 GMT</pubDate>
    <dc:creator>Akhil-Jayendran</dc:creator>
    <dc:date>2025-09-23T22:21:38Z</dc:date>
    <item>
      <title>"No Records" - update with string "pending execution"</title>
      <link>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286630#M2617</link>
      <description>&lt;P&gt;our DQL returns the metric which is end time of a job and updated only once a day, if the job is not completed - DQL is returning no records as result , is it possible to show static value like "pending execution" instead of no records.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:13:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286630#M2617</guid>
      <dc:creator>O11y_Noob</dc:creator>
      <dc:date>2025-09-23T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: "No Records" - update with string "pending execution"</title>
      <link>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286661#M2619</link>
      <description>&lt;P&gt;I couldn’t find a way to achieve this directly in DQL&lt;/P&gt;&lt;P&gt;But i think is possible workaround is to emit a daily status as a metric or business event. For example:&lt;/P&gt;&lt;P&gt;Emit a daily status&lt;/P&gt;&lt;P&gt;In the morning send an event/metric like job.status = pending.&lt;/P&gt;&lt;P&gt;When the job finishes send job.status = completed&lt;BR /&gt;This way the dashboard query always has at least one record, so you won’t see “No records”.&lt;BR /&gt;Example using metric ingestion v2 (0 = pending, 1 = completed):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X POST "$DT_URL/api/v2/metrics/ingest" \
-H "Authorization: Api-Token $DT_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "custom.job.status,job=myJob gauge,0"&lt;/LI-CODE&gt;&lt;P&gt;and after completion:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--data-binary "custom.job.status,job=myJob gauge,1"&lt;/LI-CODE&gt;&lt;P&gt;Then&lt;BR /&gt;Handle it at the dashboard/UI layer&lt;/P&gt;&lt;P&gt;If the visualization type supports it, configure the “No data” behavior to display a custom message (e.g. pending execution).&lt;/P&gt;&lt;P&gt;If that’s not available, you can place a Markdown tile with a static message next to it, or use thresholds/colors on a 0/1 metric to display pending vs. completed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:11:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286661#M2619</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-09-23T20:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: "No Records" - update with string "pending execution"</title>
      <link>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286665#M2620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85826"&gt;@O11y_Noob&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If your DQL query returns a job name but the end time is null, you can use an if-else statement to add your string as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-09-23 at 5.16.49 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30209iF75EFC2D200F2987/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-09-23 at 5.16.49 PM.png" alt="Screenshot 2025-09-23 at 5.16.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 22:21:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/quot-No-Records-quot-update-with-string-quot-pending-execution/m-p/286665#M2620</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-09-23T22:21:38Z</dc:date>
    </item>
  </channel>
</rss>

