<?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: Wrong start/end time in response using client health intent API with DNA Center in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/wrong-start-end-time-in-response-using-client-health-intent-api/m-p/4300945#M9191</link>
    <description>&lt;P&gt;I will start investigating from the second question. Looks like there is a "&lt;SPAN&gt;SyntaxError: Invalid JSON:", valid the JSON format first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding the epoch time is off. If I remember correctly, DNAC takes a snapshot every X min and save to DB. When the API make a query, it's not taking the "real time" snapshot as you requested, but taking from the DB with the time close to your requested time.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 19:24:00 GMT</pubDate>
    <dc:creator>yawming</dc:creator>
    <dc:date>2021-03-03T19:24:00Z</dc:date>
    <item>
      <title>Wrong start/end time in response using client health intent API with DNA Center</title>
      <link>https://community.cisco.com/t5/network-platform-api/wrong-start-end-time-in-response-using-client-health-intent-api/m-p/3906982#M9190</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would like to know the Health of my Clients, and so I do send to the sandbox DNAC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;https://&lt;SPAN class="resolvedVariable"&gt;{{dnac}}&lt;/SPAN&gt;:&lt;SPAN class="resolvedVariable"&gt;{{port}}&lt;/SPAN&gt;/dna/intent/api/v1/client-health?startTime=&lt;STRONG&gt;1565449472000&lt;/STRONG&gt;&amp;amp;endTime=&lt;STRONG&gt;1565622272000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reply gives me the&amp;nbsp;ecutionId : "7f858cfa-a93e-405e-b83c-66bb34a5308e",&lt;/P&gt;&lt;P&gt;With the get&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://sandboxdnac.cisco.com/api/dnacaap/v1/dnacaap/management/execution-status/7f858cfa-a93e-405e-b83c-66bb34a5308e" target="_blank" rel="noopener"&gt;https://sandboxdnac.cisco.com/api/dnacaap/v1/dnacaap/management/execution-status/7f858cfa-a93e-405e-b83c-66bb34a5308e&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get following Reply:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"bapiKey" : "149a-a93b-4ddb-80dd",&lt;BR /&gt;"bapiName" : "Get Overall Client Health",&lt;BR /&gt;"bapiExecutionId" : "7f858cfa-a93e-405e-b83c-66bb34a5308e",&lt;BR /&gt;"startTime" : "Mon Aug 12 15:13:54 UTC 2019",&lt;BR /&gt;"startTimeEpoch" : &lt;STRONG&gt;1565622834974&lt;/STRONG&gt;,&lt;BR /&gt;"endTime" : "Mon Aug 12 15:14:01 UTC 2019",&lt;BR /&gt;"endTimeEpoch" : &lt;STRONG&gt;1565622841670&lt;/STRONG&gt;,&lt;BR /&gt;"timeDuration" : 6696,&lt;BR /&gt;"status" : "FAILURE",&lt;BR /&gt;"bapiError" : "{\n \"bapiErrorResponse\" : {\n \"bapiKey\" : \"149a-a93b-4ddb-80dd\",\n \"bapiName\" : \"Get Overall Client Health\",\n \"bapiErrorCode\" : \"\",\n \"bapiErrorMessage\" : \"\"\n },\n \"componentErrorResponse\" : [ {\n \"compId\" : \"uuidf8ee428c\",\n \"compName\" : \"Combine Output\",\n \"compErrorCode\" : \"500\",\n \"compErrorMessage\" : \"7f858cfa-a93e-405e-b83c-66bb34a5308e | 0521cce9-f925-4905-9675-dd1d527b3cba | 149a-a93b-4ddb-80dd : JavascriptTransformProcessor Failed with error: SyntaxError: Invalid JSON: &amp;lt;json&amp;gt;:1:0 Expected json literal but found H\\nHttp Error Code:500\\n^ in &amp;lt;eval&amp;gt; at line number 3063\",\n \"componentType\" : \"JAVASCRIPT_TRANSFORM\"\n } ]\n}"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Why has the response other start/end time as in the request??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Why I receive an error??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wim&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 17:27:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/wrong-start-end-time-in-response-using-client-health-intent-api/m-p/3906982#M9190</guid>
      <dc:creator>wwvan</dc:creator>
      <dc:date>2019-08-12T17:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong start/end time in response using client health intent API with DNA Center</title>
      <link>https://community.cisco.com/t5/network-platform-api/wrong-start-end-time-in-response-using-client-health-intent-api/m-p/4300945#M9191</link>
      <description>&lt;P&gt;I will start investigating from the second question. Looks like there is a "&lt;SPAN&gt;SyntaxError: Invalid JSON:", valid the JSON format first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding the epoch time is off. If I remember correctly, DNAC takes a snapshot every X min and save to DB. When the API make a query, it's not taking the "real time" snapshot as you requested, but taking from the DB with the time close to your requested time.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:24:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/wrong-start-end-time-in-response-using-client-health-intent-api/m-p/4300945#M9191</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2021-03-03T19:24:00Z</dc:date>
    </item>
  </channel>
</rss>

