<?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: Interval and time explanation for creating a new SchemaEvent in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1911860#M16542</link>
    <description>&lt;P&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;just a big thank for the explanations. It helped me a lot to build by monitoring app.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 12:48:49 GMT</pubDate>
    <dc:creator>simonaubert</dc:creator>
    <dc:date>2022-03-30T12:48:49Z</dc:date>
    <item>
      <title>Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1784832#M13885</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to automate the creation and management of schema event tasks to reload external programs and apps on a schedule, but I can't find a definition of the interval fields to handle this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tl;dr, how does one set&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;schemaFilterDescription&lt;/STRONG&gt; and &lt;STRONG&gt;incrementDescription &lt;/STRONG&gt;to define repetitive events?&amp;nbsp; They're not described in the API reference documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know that:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;"incrementOption" is an enum as follows:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0: once&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;1: hourly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;2: daily&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;3: weekly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;4: monthly&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;And I think, between &lt;STRONG&gt;schemaFilterDescription&lt;/STRONG&gt;, &lt;STRONG&gt;incrementDescription&lt;/STRONG&gt;, and &lt;STRONG&gt;incrementOption&lt;/STRONG&gt;, it controls the specifics, but these aren't defined anywhere I can see. schemaFilterDescription (default "['* * - * * * * *']" ) &lt;EM&gt;looks&lt;/EM&gt; similar to a cron entry, but a cron line doesn't have a dash and only has 6 elements... and when I tried to guess at it led to some crazy next reload times.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example, I created a schema event with the following fields, intending it to execute at 8pm daily:&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Post to /&lt;STRONG&gt;qrs/schemaevent&lt;/STRONG&gt; with data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    ...
    'incrementOption': 2,  # daily
    'incrementDescription': '0 0 1 0', # ??
    'schemaFilterDescription': ['* * - * 20 * * *'], # 8pm? Doesn't appear so.
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it set the next execution time for for July. I see a few posts in which people ask a question and someone responds with the correct a line to get the desired results, but what do the fields mean and how do we set them to do what we want in general?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1784832#M13885</guid>
      <dc:creator>kcrouse</dc:creator>
      <dc:date>2024-11-16T17:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1784892#M13886</link>
      <description>&lt;P&gt;Here's a writeup that I've found useful before:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;SchemaFilterDescription&lt;BR /&gt;Default: "* * - * * * *"&lt;BR /&gt;This is a list of SchemaFilterDescriptions used to filter when a SchemaEvent is allowed to trigger. An important thing to remember is that what is set as SchemaFilterDescriptions are when it is allowed to trigger and not the opposite.&lt;/P&gt;&lt;P&gt;For Minute, Hour, WeekDay (using numeric values), DayOfMonth and Month you can use syntax with hyphen to state "from - to". For the others you must state each character to be used in the SchemaFilterDescription, this can of course also be used by Minute, Hour, WeekDay, DayOfMonth and Month as well. Example: You only want to allow the first 15 minutes each hour you can either put ‘1-15’ or ‘1,2,3,4,5,6,7,8,9,10,11,12,13,14,15’ in the first position. There should be no spaces in the SchemaFilterDescription other than between each position, the space character is used as a delimiter between the positions so inserting one would cause the SchemaFilterDescription to, at best, not work as intended or most likely to cause an error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Starting from left to right (first position is 0) each position is explained below.&lt;/P&gt;&lt;P&gt;Position 0 - Minute&lt;BR /&gt;Legend: 1-60. '*' = all&lt;/P&gt;&lt;P&gt;Which minute of an hour (0 - 60) when the SchemaEvent is allowed to trigger.&lt;/P&gt;&lt;P&gt;Position 1 - Hour&lt;BR /&gt;Legend: 1-24. '*' = all&lt;/P&gt;&lt;P&gt;Which hour of a day (1-24) when the SchemaEvent is allowed to trigger.&lt;/P&gt;&lt;P&gt;Position 2 - WeekDayPrefix&lt;BR /&gt;Legend: 1-4. '¤' = last. '-' = none&lt;/P&gt;&lt;P&gt;WeekDayPrefix works together with WeekDay by adding a prefix. By means of this you can state that only the last (¤) friday in a given month or 1st (1) saturday in a given month is allowed.&lt;/P&gt;&lt;P&gt;Position 3 - WeekDay&lt;BR /&gt;Legend: 0-6 (where sunday is 0)&lt;/P&gt;&lt;P&gt;Which weekday the SchemaEvent is allowed to trigger. See also WeekDayPrefix for further information.&lt;/P&gt;&lt;P&gt;Position 4 - WeeklyInterval&lt;BR /&gt;Legend: An integer. '*' = all&lt;/P&gt;&lt;P&gt;The SchemaEvent is allowed to trigger every n:th week, where n is the number set in this position.&lt;/P&gt;&lt;P&gt;Position 5 - DayOfMonth&lt;BR /&gt;Legend: 1-31. '*' = all. '¤' = last&lt;/P&gt;&lt;P&gt;Which day within a month when the SchemaEvent is allowed to trigger. Using last (¤) the Scheduler will only allow the SchemaEvent to trigger on the last day in a month which is checked dynamically depending on month (and leap year).&lt;/P&gt;&lt;P&gt;Position 6 - Month&lt;BR /&gt;Legend: 1-12. '*' = all&lt;/P&gt;&lt;P&gt;Which month of the year when the SchemaEvent is allowed to trigger.&lt;/P&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Practically I've not built out full work-flows across all the options, but here's an example in PowerShell (&lt;A href="https://gist.github.com/levi-turner/f4a431b306c399c7c5caf0406a0a8be9#file-qs-qrs-telemetry_task_fix-ps1-L284" target="_blank"&gt;https://gist.github.com/levi-turner/f4a431b306c399c7c5caf0406a0a8be9#file-qs-qrs-telemetry_task_fix-ps1-L284&lt;/A&gt;) which does weekly or daily for reference.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 18:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1784892#M13886</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2021-02-22T18:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1786698#M13929</link>
      <description>&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;Thanks for this information. It's helpful and seems to mostly work.&amp;nbsp; You only defined 7 positions (0-6) but the string has 8 positions.&amp;nbsp; I did some further brute force testing, and it looks like Position 7 is MonthlyInterval (n number of months).&lt;/P&gt;&lt;P&gt;So, to summarize SchemaFilterDescription by position:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Minute (1-60)&lt;/LI&gt;&lt;LI&gt;Hour (1-24)&lt;/LI&gt;&lt;LI&gt;WeekdayPrefix/Week-of-Month, '-' means no prefix, i.e. no restriction, which is interesting&lt;/LI&gt;&lt;LI&gt;Weekday (0-6)&lt;/LI&gt;&lt;LI&gt;Weekly Interval, i.e. Every N weeks&lt;/LI&gt;&lt;LI&gt;DayofMonth(1-31)&lt;/LI&gt;&lt;LI&gt;Month (1-12)&lt;/LI&gt;&lt;LI&gt;Monthly Interval, i.e. Every N Weeks&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;IncrementOption&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am not sure if IncrementOption does anything. I can set it to 0, 1, 2, 3 and it doesn't seem to interfere with scheduling.&amp;nbsp; Any thoughts on that?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IncrementDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In contrast, IncrementDescription seems to be important, mysterious, and prone to unexpected outcomes. It *appears* that incrementDescription operates like a bitmask and needs to be in sync with the Schema Filter Description, whereas the first value is linked to minutes and the second value is linked to hours. Presumably, the third is linked to days and the fourth either weeks or months.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If IncrementDescription is zeroed out '0 0 0 0'&lt;/STRONG&gt;, the event will not be scheduled, regardless what your schema filter Description is.&lt;/P&gt;&lt;P&gt;If the minutes are set, &lt;STRONG&gt;IncrementDescription&lt;/STRONG&gt; must have the first parameter set to 1, or no events will be scheduled:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# This is correct:
{
    "incrementDescription": "1 0 0 0",
    "schemaFilterDescription": ["15 14 - * * * * *"],
}

# This combination will not be scheduled.
{
    "incrementDescription": "0 1 0 0",
    "schemaFilterDescription": ["15 14 - * * * * *"],
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If minutes is '*' and hours are set, the required formats are different:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# This works fine:
{
    "incrementDescription": "0 1 0 0",
    "schemaFilterDescription": ["* 14 - * * * * *"],
}

# This does not:
{
    "incrementDescription": "0 0 1 0",
    "schemaFilterDescription": ["* 14 - * * * * *"],
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 19:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1786698#M13929</guid>
      <dc:creator>kcrouse</dc:creator>
      <dc:date>2021-02-26T19:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1786897#M13933</link>
      <description>&lt;P&gt;RE&amp;nbsp;&lt;STRONG&gt;IncrementOption&lt;/STRONG&gt;, it doesn't impact things. Nominally it has enum values but ultimately it's the &lt;STRONG&gt;schemaFilterDescription&lt;/STRONG&gt; which fuels the actual schedule (as well as&amp;nbsp;&lt;STRONG&gt;IncrementDescription&amp;nbsp;&lt;/STRONG&gt;based on your testing)&lt;/P&gt;&lt;P&gt;RE&amp;nbsp;&lt;STRONG&gt;IncrementDescription&lt;/STRONG&gt;, I honestly have not delved into things to this degree to exhaustively diff test different configurations.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 20:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1786897#M13933</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2021-02-28T20:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1911860#M16542</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;just a big thank for the explanations. It helped me a lot to build by monitoring app.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 12:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/1911860#M16542</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2022-03-30T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interval and time explanation for creating a new SchemaEvent</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/2093105#M18840</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp; I think I need ur help,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create some tasks based on a specific frequency ( Daily in a specific hour, weekly on a specific day and monthly in a specific DayOfMonth .. But this is not working (The task is created fine but it doesnt have a trigger event .. ), any ideas what's the issue ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance ..&amp;nbsp;&lt;/P&gt;
&lt;PRE class="code highlight" lang="shell"&gt;&lt;SPAN class="line"&gt;        &lt;SPAN class="k"&gt;if&lt;/SPAN&gt; &lt;SPAN class="o"&gt;[&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$TaskFrequence&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"Daily"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;]&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt; &lt;SPAN class="k"&gt;then&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;schemaFilterDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"* &lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$TaskHour&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; - * * * * *"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"0 1 0 0"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementOption&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"1"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="k"&gt;elif&lt;/SPAN&gt;  &lt;SPAN class="o"&gt;[&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$TaskFrequence&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"Weekly"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;]&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt; &lt;SPAN class="k"&gt;then&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;schemaFilterDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"* * - &lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$WeekDay&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; 1 * * *"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"0 0 1 0"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementOption&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"1"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="k"&gt;elif&lt;/SPAN&gt;  &lt;SPAN class="o"&gt;[&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$TaskFrequence&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"Monthly"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;]&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt; &lt;SPAN class="k"&gt;then&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;schemaFilterDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"* * - * * &lt;/SPAN&gt;&lt;SPAN class="nv"&gt;$DayOfMonth&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; * *"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementDescription&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"0 0 1 0"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;            &lt;SPAN class="nv"&gt;incrementOption&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;"4"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Interval-and-time-explanation-for-creating-a-new-SchemaEvent/m-p/2093105#M18840</guid>
      <dc:creator>k21</dc:creator>
      <dc:date>2023-07-12T12:55:21Z</dc:date>
    </item>
  </channel>
</rss>

