[context] Updated history & trigger API's key/value descriptions, w.r.t. the MCD...
authorSomin Kim <somin926.kim@samsung.com>
Fri, 8 May 2015 11:27:12 +0000 (20:27 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 12 May 2015 10:59:56 +0000 (19:59 +0900)
Change-Id: I7f74340ac5062323c782bba658d815ef8e8a3ea8
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
org.tizen.guides/html/native/context/history_n.htm
org.tizen.guides/html/native/context/trigger_n.htm

index a5ebb0c..6d01a14 100644 (file)
 
 <p>The Tizen platform collects data on the device usage. Based on this data, the applications can take advantage of the user&#39;s application usage patterns through statistical analysis.</p>
 
-<table class="note"> 
-<tbody> 
-    <tr> 
-     <th class="note">Note</th> 
-    </tr> 
-    <tr> 
-     <td class="note">This feature is supported in mobile applications only.</td> 
-    </tr> 
-   </tbody> 
+<table class="note">
+<tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">This feature is supported in mobile applications only.</td>
+    </tr>
+   </tbody>
   </table>
 
 <p>The Contextual History API provides history data about application usage, media playback, communications, and device settings. When an application reads each type of history data, the application must set filters (mandatory and optional) to specify the necessary statistics. The following example shows how to get information about the 5 most frequently used applications from the last 30 days.</p>
@@ -58,7 +58,7 @@ context_history_filter_set_int(filter, CONTEXT_HISTORY_FILTER_TIME_SPAN, 30);
 
 // Requesting the statistics
 context_history_list_h list;
-context_history_get_list(handle, CONTEXT_HISTORY_FREQUENTLY_USED_APP , filter, &amp;list);
+context_history_get_list(handle, CONTEXT_HISTORY_FREQUENTLY_USED_APP, filter, &amp;list);
 </pre>
 <p>
 Once the <span style="font-family: Courier New, Courier, monospace">context_history_list_h</span> data handle is retrieved through the <span style="font-family: Courier New, Courier, monospace">context_history_get_list()</span> function, the attributes of each data record of the handle can be retrieved. You can use the <span style="font-family: Courier New, Courier, monospace">context_history_list_get_current()</span> function to get the current record and the <span style="font-family: Courier New, Courier, monospace">context_history_record_get_string()</span> and <span style="font-family: Courier New, Courier, monospace">context_history_record_get_int()</span> functions to access its values.</p>
@@ -76,7 +76,6 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                </tr>
                <tr>
                        <td>Application usage history:
-                       
                                        <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_RECENTLY_USED_APP</span></p>
                                        <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FREQUENTLY_USED_APP</span></p>
                                        <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_RARELY_USED_APP</span></p>
@@ -88,7 +87,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <ul>
                                        <li>Most recently or frequently used applications, in a descending order of the application use counts.</li>
                                        <li>Most rarely used applications in removable applications, in an ascending order of the application use counts.</li>
-                                       <li>Peak time for applications, or the time period when the user most frequently uses an application during the day. 
+                                       <li>Peak time for applications, or the time period when the user most frequently uses an application during the day.
                                                <p>The result is a sorted list of hours of the day, in a descending order of the application use count in each one-hour time slot.</p></li>
                                        <li>Common settings for applications, or the most common setting values regarding an application or any applications.</li>
                                </ul>
@@ -150,6 +149,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                <tr>
                        <th>History type</th>
                        <th>Supported filter</th>
+                       <th>Type</th>
                        <th>Description</th>
                </tr>
                <tr>
@@ -157,6 +157,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                All types
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_TIME_SPAN</span></td>
+                       <td>Integer</td>
                        <td>
                                This filter specifies in days the time span of the data to be aggregated. For example, if the value is set to 10, the application gets the statistics from the data logged in the last 10 days.
                                <p>Only positive filter values are allowed. Because of the system resources available, the maximum time span can be limited implicitly. If the value is not set, the default value of 30 days is used.</p>
@@ -166,12 +167,14 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_START_TIME</span>
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_END_TIME</span></p>
                        </td>
+                       <td>Integer</td>
                        <td>
                                If an application requires more fine-grained controls than the time span filter, the start and end time of the period can be set as Unix epoch time in seconds using these filters. It is also possible to set the start time or the end time only.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_RESULT_SIZE</span></td>
+                       <td>Integer</td>
                        <td>
                                This filter limits the number of data records to be retrieved. It accepts positive integers as the filter values, but if not set, it is set to 10 by default. It is possible that the aggregated result contains a smaller number of records than the filter value.
                                <p>Note that this value may have no effect for some history types. For example, the common setting history types return one record for one request, thus the result size is ignored while aggregating the logs.</p>
@@ -183,6 +186,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FREQUENTLY_USED_APP</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_WIFI_BSSID</span></td>
+                       <td>String</td>
                        <td>
                                Applications can get the statistics of the data logged while a specific Wi-Fi is connected, by setting the BSSID string of the target Wi-Fi AP.
                                <p>The currently connected Wi-Fi AP&#39;s BSSID can be retrieved through the Wi-Fi Manager APIs. For more information, see the <a href="../network/wifi_n.htm">Wi-Fi</a> guide.</p>
@@ -190,6 +194,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_AUDIO_JACK</span></td>
+                       <td>Integer</td>
                        <td>
                                Applications can get the statistics of the data logged while the headphone is connected or disconnected. The audio jack status can be either <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_AUDIO_JACK_NOT_CONNECTED</span> or <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_AUDIO_JACK_CONNECTED</span>.
                        </td>
@@ -201,6 +206,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_PEAK_TIME_FOR_VIDEO</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_APP_ID</span></td>
+                       <td>String</td>
                        <td>
                                Use the <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_PEAK_TIME_FOR_APP</span> filter to compute the peak time for a specific application. Without this filter, the peak time is computed from the usage history of all applications.
                                <p>In case of the peak time for music or video playbacks, these filters can be used to restrict the application that is used to play the media contents. Without this filter, playback logs from all applications are used to get the statistics.</p>
@@ -209,6 +215,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_DAY_OF_WEEK</span></td>
+                       <td>Integer</td>
                        <td>
                                Use this filter to get application usage patterns on weekdays or weekends. The filter value can be either <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_DAY_OF_WEEK_WEEKDAYS</span>, <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_DAY_OF_WEEK_WEEKENDS</span>, or <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_DAY_OF_WEEK_ALL</span>. By default, data from both weekdays and weekends are used if this filter is not set.
                        </td>
@@ -219,6 +226,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_COMMON_SETTING_FOR_VIDEO</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_APP_ID</span></td>
+                       <td>String</td>
                        <td>
                                Use this filter to retrieve the most common setting values for a specific application.
                                <p>In case of music or video playback history, this filter can be used to get the common setting values when listening to music or watching videos using a specific application.</p>
@@ -229,6 +237,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                CONTEXT_HISTORY_FREQUENTLY_COMMUNICATED_ADDRESS
                        </span></td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_COMMUNICATION_TYPE</span></td>
+                       <td>Integer</td>
                        <td>
                                By default, communication frequency is computed from the call and message logs. Applications can narrow down the target data to one type of communication, call or messaging, using this filter.
                                <p>The filter value can be either <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_COMMUNICATION_TYPE_CALL</span>, <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_COMMUNICATION_TYPE_MESSAGE</span>, or <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_COMMUNICATION_TYPE_ALL</span>.</p>
@@ -245,6 +254,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                <tr>
                        <th>History type</th>
                        <th>Provided attribute</th>
+                       <th>Type</th>
                        <th>Description</th>
                </tr>
                <tr>
@@ -254,6 +264,7 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_RARELY_USED_APP</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_APP_ID</span></td>
+                       <td>String</td>
                        <td>
                                This attribute denotes the application ID.
                                <p>For more information on the application IDs, see the <a href="../app/app_guide_n.htm">Application Framework</a> guide.</p>
@@ -261,18 +272,21 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_TOTAL_COUNT</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes how many times the application is used in the foreground.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_TOTAL_DURATION</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the time the application is being displayed in the foreground in seconds. If the application is used multiple times, it denotes the accumulated time of use.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_LAST_TIME</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes when the application has been used (moved to the foreground) the last time, in Unix epoch in seconds.
                        </td>
@@ -284,12 +298,14 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_PEAK_TIME_FOR_VIDEO</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_HOUR_OF_DAY</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the hour of the day. Its value is an integer from 0 to 23.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_TOTAL_COUNT</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the aggregated count of the application uses or media playbacks within the hour of the day defined with <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_HOUR_OF_DAY</span>.
                        </td>
@@ -301,18 +317,21 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_COMMON_SETTING_FOR_VIDEO</span></p>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_AUDIO_JACK</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the most common audio jack status. The value is either <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_AUDIO_JACK_NOT_CONNECTED</span> or <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FILTER_AUDIO_JACK_CONNECTED</span>.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_SYSTEM_VOLUME</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the most common system volume level.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_MEDIA_VOLUME</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the most common media volume level.
                                <p>For more information on the system and media volume settings, see the <a href="../multimedia/sound_manager_n.htm">Sound Manager</a> guide.</p>
@@ -323,24 +342,28 @@ Once the <span style="font-family: Courier New, Courier, monospace">context_hist
                        <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_FREQUENTLY_COMMUNICATED_ADDRESS</span>
                        </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_ADDRESS</span></td>
+                       <td>String</td>
                        <td>
                                This attribute denotes the contact address or a phone number.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_TOTAL_COUNT</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the total number of communications with the address defined with <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_ADDRESS</span>.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_TOTAL_DURATION</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes the accumulated duration of calls in seconds with the address defined with <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_ADDRESS</span>.
                        </td>
                </tr>
                <tr>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_LAST_TIME</span></td>
+                       <td>Integer</td>
                        <td>
                                This attribute denotes when a call is connected or a message is received or sent last in Unix epoch in seconds, to or from the address defined with <span style="font-family: Courier New,Courier,monospace">CONTEXT_HISTORY_ADDRESS</span>.
                        </td>
index 485e28b..85762d2 100644 (file)
@@ -182,7 +182,7 @@ context_trigger_rule_entry_destroy(condition);
                        </span></td>
                </tr>
                <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_TIME_OF_MONTH</span></td>
+                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_DAY_OF_MONTH</span></td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_DAY_OF_MONTH</span></td>
                        <td>Integer</td>
                        <td>From 1 to 31</td>
@@ -330,33 +330,10 @@ context_trigger_rule_entry_destroy(condition);
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_IN, CONTEXT_TRIGGER_OUT</span></td>
                </tr>
                <tr>
-                       <td rowspan="4"><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY</span></td>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_APP_ID</span></td>
-                       <td>String</td>
-                       <td>Application ID</td>
-               </tr>
-               <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span></td>
-                       <td>Integer</td>
-                       <td>Positive integer</td>
-               </tr>
-               <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_TOTAL_COUNT</span></td>
-                       <td>Integer</td>
-                       <td>Non-negative integer</td>
-               </tr>
-               <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_AVERAGE_COUNT</span></td>
-                       <td>Integer</td>
-                       <td>Non-negative integer</td>
-               </tr>
-               <tr>
-                       <td rowspan="4"><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY</span></td>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_APP_ADDRESS</span></td>
-                       <td>String</td>
-                       <td>Phone number</td>
-               </tr>
-               <tr>
+                       <td rowspan="2">
+                               <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY</span>
+                               <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY</span></p>
+                       </td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span></td>
                        <td>Integer</td>
                        <td>Positive integer</td>
@@ -367,12 +344,7 @@ context_trigger_rule_entry_destroy(condition);
                        <td>Non-negative integer</td>
                </tr>
                <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_AVERAGE_COUNT</span></td>
-                       <td>Integer</td>
-                       <td>Non-negative integer</td>
-               </tr>
-               <tr>
-                       <td rowspan="2">
+                       <td>
                                <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_MUSIC_PLAYBACK_FREQUENCY</span>
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_VIDEO_PLAYBACK_FREQUENCY</span></p>
                        </td>
@@ -380,11 +352,6 @@ context_trigger_rule_entry_destroy(condition);
                        <td>Integer</td>
                        <td>Non-negative integer</td>
                </tr>
-               <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_AVERAGE_COUNT</span></td>
-                       <td>Integer</td>
-                       <td>Non-negative integer</td>
-               </tr>
        </tbody>
 </table>
 
@@ -467,28 +434,18 @@ context_trigger_rule_entry_add_comparison_int(condition, CONTEXT_TRIGGER_RANK, C
                        </td>
                </tr>
                <tr>
-                       <td rowspan="2"><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY</span></td>
+                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY</span></td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_APP_ID</span></td>
                        <td>String</td>
                        <td>Application ID</td>
                </tr>
                <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span></td>
-                       <td>Integer</td>
-                       <td>Positive integer</td>
-               </tr>
-               <tr>
-                       <td rowspan="2"><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY</span></td>
+                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY</span></td>
                        <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_ADDRESS</span></td>
                        <td>String</td>
                        <td>Phone number</td>
                </tr>
                <tr>
-                       <td><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span></td>
-                       <td>Integer</td>
-                       <td>Positive integer</td>
-               </tr>
-               <tr>
                        <td rowspan="2"><span style="font-family: Courier New,Courier,monospace">
                                CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY</span>
                                <p><span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY</span></p>
@@ -568,7 +525,7 @@ context_trigger_rule_set_action_notification(disjunction_rule, ...);
 <li>Combining attributes into an event or condition
 
 <p>Some event and condition items provide multiple attributes. The logical connection between attributes must be set properly to fulfill the requirement. For example, when you use <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_EVENT_ON_TIME</span> to define a rule &quot;at 4 PM every Monday&quot;, the comparisons regarding the 2 attributes, <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_TIME_OF_DAY</span> and <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_DAY_OF_WEEK</span> must be satisfied together.</p>
-<p>On the contrary, using <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_APP_USE_FREQUENCY</span>, if you want to check whether a specific application belongs to the 5 most frequently used applications, or the application was used at least 10 times per day on average, the both comparisons against <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span> and <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_AVERAGE_COUNT</span> need to be connected by logical disjunction. </p>
+<p>On the contrary, using <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_APP_USE_FREQUENCY</span>, if you want to check whether a specific application belongs to the 5 most frequently used applications, or the application was used at least 10 times, the both comparisons against <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_RANK</span> and <span style="font-family: Courier New,Courier,monospace">CONTEXT_TRIGGER_TOTAL_COUNT</span> need to be connected by logical disjunction. </p>
 <p>The following example illustrates the cases described above:</p>
 
 <pre class="prettyprint">
@@ -586,8 +543,8 @@ context_trigger_rule_condition_create(CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENC
 context_trigger_rule_entry_add_option_string(app_condition, CONTEXT_TRIGGER_APP_ID, /* Application ID */);
 context_trigger_rule_entry_add_key(app_condition, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_RANK);
 context_trigger_rule_entry_add_comparison_int(app_condition, CONTEXT_TRIGGER_RANK, CONTEXT_TRIGGER_LESS_THAN_OR_EQUAL_TO, 5);
-context_trigger_rule_entry_add_key(app_condition, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_AVERAGE_COUNT);
-context_trigger_rule_entry_add_comparison_int(app_condition, CONTEXT_TRIGGER_AVERAGE_COUNT, CONTEXT_TRIGGER_GREATER_THAN_OR_EQUAL_TO, 10);
+context_trigger_rule_entry_add_key(app_condition, CONTEXT_TRIGGER_LOGICAL_CONJUNCTION, CONTEXT_TRIGGER_TOTAL_COUNT);
+context_trigger_rule_entry_add_comparison_int(app_condition, CONTEXT_TRIGGER_TOTAL_COUNT, CONTEXT_TRIGGER_GREATER_THAN_OR_EQUAL_TO, 10);
 </pre></li>
 
 <li>Combining comparisons into an attribute