`
Integrating Oracle Internet of Things Cloud Service with Oracle Service Cloud
Top of Topic

Define the filter

You must define a filter to remove unwanted messages. Our business use case requires that Oracle Internet of Things Cloud Service propagate messages to Oracle Service Cloud only when the temperature of the HVAC device is more than 25 °C.

Before you begin

About this task

You will also specify the range of time over which the filter will be applied and how often it will be applied. Typically, the two values are the same. The values you specify here will impact the frequency with which the data will be sent to Oracle Service Cloud. If you set a very high frequency, Oracle Service Cloud might receive too many messages; if you set the frequency very low, the latency of messages might be too high. It is recommended that you set the frequency to the highest value that is acceptable to your business. For the specific business case covered in this document, the frequency and range are both set to five minutes.

Procedure

  1. Under Explorations, select the exploration that you just created, and then click View.

    The Edit Exploration page displays.

  2. Under Filters, click Add a Condition.

  3. Use the drop-down menus to enter the following condition:

    data_outputtemp greater than 25

  4. Click the clock icon to the right of the Sources field.

  5. Set both the Range and Evaluation frequency to 5 minutes.

  6. Click the clock icon to close the window.

    After setting the filter and frequency, you should start to see data from the live output stream.

  7. Click Actions at the top right of the page, then click Publish.

    You must publish the exploration before you can create a format.

  8. Click the plus sign (+) above Create Format.

  9. In the window that appears, click Create.

    The format is created.