How to Replace a Rule in an EPL Processor

7-8 Oracle Complex Event Processing Visualizer Users Guide ■ start —Start stage name. ■ end —End stage name. ■ type —The type of metric; valid values are avg-latency, avg-throughput or max-latency . ■ application —Application name For example, if you want to filter the monitoring events by type and metric, you might change the EPL rules to the following: SELECT FROM DSMonitorEvent RETAIN 1 EVENT WHERE metric 300 AND type = avg-latency SELECT FROM DSMonitorEvent RETAIN 1 EVENT WHERE metric 300 AND type = avg-throughput SELECT FROM DSMonitorEvent RETAIN 1 EVENT WHERE metric 300 AND type = max-latency If you want to continuously view three events where the number of metrics is less than 300 and group the events by type, try this EPL rule: SELECT , COUNTmetric FROM DSMonitorEvent RETAIN BATCH OF 3 EVENTS PARTITION BY type WHERE metric 300 HAVING COUNTmetric = 3 OUTPUT LAST 1 EVERY 3 EVENTS If you want to continuously view three events where the average number of metrics is less than 300 and group the events by type, try this EPL rule: SELECT , AVGmetric FROM DSMonitorEvent RETAIN BATCH OF 3 EVENTS PARTITION BY type HAVING AVERAGEmetric 300 OUTPUT LAST 1 EVERY 3 EVENTS For more information, see Oracle Complex Event Processing EPL Language Reference.

7.4.1 How to Change the Dataservices Application Event Filter Rule Using EPL

You can change the dataservices application event filter EPL rule using the Oracle CEP Visualizer. To change the dataservices application event filter rule using EPL: 1. In the left pane, click Domain Server Applications com.bea.wlevs.dataservices Stages MonitorProcessor, where Domain is the name of your domain and Server is the name of your server.

2. In the right pane, click the Rules tab.

The Rules tab appears as Figure 7–11 shows. Managing EPL Rules 7-9 Figure 7–11 EPL Rules Tab

3. To create a new Rule, enter a the name of the rule in the Rule ID field, enter the

EPL query string in the Rule field, then click Create Rule. For more information, see Section 7.1, Creating a Rule in an EPL Processor .

4. To delete an existing rule, select a rule in the table and click Delete Rule.

For more information, see Section 7.2, Deleting a Rule From an EPL Processor .

5. To change the default rule, click its name in the Rules table, make the change in

the Rule field in the Working Area, and click Replace Rule. For more information, see Section 7.3, Replacing a Rule in an EPL Processor .