http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..a0e2052
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="AverageLoadAverageEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="average_load_average_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.AverageLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..cbcab0a
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="AverageMemoryConsumptionEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="average_memory_consumption_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.AverageMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/FaultMessageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/FaultMessageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/FaultMessageEventFormatter.xml
new file mode 100644
index 0000000..96264ca
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/FaultMessageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="FaultMessageEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="fault_message" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberFaultEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","memberId":"{{member_id}}","partitionId":"{{partition_id}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientInFlightRequestsEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientInFlightRequestsEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientInFlightRequestsEventFormatter.xml
new file mode 100644
index 0000000..2b5045b
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientInFlightRequestsEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="GradientInFlightRequestsEventFormatter" 
statistics="disable"
+  trace="disable" xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="gradient_in_flight_requests" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..7fa3d7a
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="GradientLoadAverageEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="gradient_load_average_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..8c3b871
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="GradientMemoryConsumptionEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="gradient_memory_consumption_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..cab6df6
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberAverageLoadAverageEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_average_load_average_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..7f6e1f8
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberAverageMemoryConsumptionEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_average_memory_consumption_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..af73b46
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberGradientLoadAverageEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_gradient_load_average_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..702f149
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberGradientMemoryConsumptionEventFormatter"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_gradient_memory_consumption_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..5281652
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberSecondDerivativeLoadAverageEventFormatter"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_second_derivative_load_average_stats" 
version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..2e32be3
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="MemberSecondDerivativeMemoryConsumptionEventFormatter"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="member_second_derivative_memory_consumption_stats" 
version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml
new file mode 100644
index 0000000..61862d1
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="SecondDerivativeEventFormatter"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="second_derivative_in_flight_requests" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml
new file mode 100644
index 0000000..3dc4a74
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="SecondDerivativeLoadAverageEventFormatter"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="second_derivative_load_average_stats" version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_load_average}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml
new file mode 100644
index 0000000..bb0f70c
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<eventFormatter name="SecondDerivativeMemoryConsumptionEventFormatter"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventformatter";>
+  <from streamName="second_derivative_memory_consumption_stats" 
version="1.0.0"/>
+  <mapping customMapping="enable" type="json">
+    
<inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_memory_consumption}}"}}}</inline>
+  </mapping>
+  <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms">
+    <property 
name="transport.jms.Destination">summarized-health-stats</property>
+  </to>
+</eventFormatter>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageHeathRequest.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageHeathRequest.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageHeathRequest.xml
new file mode 100644
index 0000000..0a6881b
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageHeathRequest.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="AverageHeathRequest" statistics="disable"
+  trace="enable" xmlns="http://wso2.org/carbon/eventprocessor";>
+  <description>This will average health stats of an instance over a 
minute.</description>
+  <siddhiConfiguration>
+    <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+    <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+  </siddhiConfiguration>
+  <importedStreams>
+    <stream as="health_avg_processsor" name="cartridge_agent_health_stats" 
version="1.0.0"/>
+  </importedStreams>
+  <queryExpressions><![CDATA[
+       from health_avg_processsor [health_description == 'ports_not_open'] 
+               select cluster_id, cluster_instance_id, network_partition_id, 
member_id, partition_id insert into fault_message;
+       from health_avg_processsor
+               select cluster_id, cluster_instance_id, network_partition_id, 
member_id, partition_id, health_description, value,
+               stratos:concat(cluster_id, '-' , cluster_instance_id) as 
health_grad_cluster_network
+               insert into health_avg_concatinator;
+       define partition health_avg_cluster_partition by   
health_avg_concatinator.health_grad_cluster_network;
+       define partition member_health_avg_cluster_partition by  
health_avg_processsor.member_id;
+       from health_avg_concatinator [health_description == 'load_average'] 
+               #window.timeBatch(1 min) select cluster_id, 
cluster_instance_id, network_partition_id, avg(value) as average_load_average
+               insert into average_load_average_stats 
+               partition by health_avg_cluster_partition;
+       from health_avg_processsor [health_description == 'load_average'] 
+               #window.timeBatch(1 min) select member_id, cluster_id, 
cluster_instance_id, network_partition_id, avg(value) as 
member_average_load_average
+               insert into member_average_load_average_stats 
+               partition by member_health_avg_cluster_partition;
+       from health_avg_processsor [health_description == 'memory_consumption'] 
+               #window.timeBatch(1 min) select member_id, cluster_id, 
cluster_instance_id, network_partition_id, avg(value) as 
member_average_memory_consumption
+               insert into member_average_memory_consumption_stats 
+               partition by member_health_avg_cluster_partition;
+       from health_avg_concatinator [health_description == 
'memory_consumption'] 
+               #window.timeBatch(1 min) select cluster_id, 
cluster_instance_id, network_partition_id, avg(value) as 
average_memory_consumption
+               insert into average_memory_consumption_stats 
+               partition by health_avg_cluster_partition;
+  ]]></queryExpressions>
+  <exportedStreams>
+    <stream name="average_load_average_stats" passthroughFlow="disable"
+      valueOf="average_load_average_stats" version="1.0.0"/>
+    <stream name="member_average_load_average_stats" passthroughFlow="disable"
+      valueOf="member_average_load_average_stats" version="1.0.0"/>
+    <stream name="member_average_memory_consumption_stats" 
passthroughFlow="disable"
+      valueOf="member_average_memory_consumption_stats" version="1.0.0"/>
+    <stream name="average_memory_consumption_stats" passthroughFlow="disable"
+      valueOf="average_memory_consumption_stats" version="1.0.0"/>
+    <stream name="fault_message" passthroughFlow="disable"
+      valueOf="fault_message" version="1.0.0"/>
+  </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageInFlightRequestsFinder.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageInFlightRequestsFinder.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageInFlightRequestsFinder.xml
new file mode 100644
index 0000000..0c950c6
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/AverageInFlightRequestsFinder.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="AverageInFlightRequestsFinder" statistics="disable"
+               trace="enable" xmlns="http://wso2.org/carbon/eventprocessor";>
+    <description>This will average the number of requests in flight over a 
minute.</description>
+    <siddhiConfiguration>
+        <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+        <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+    </siddhiConfiguration>
+    <importedStreams>
+        <stream as="avg_rif_stat" name="in_flight_requests" version="1.0.0"/>
+    </importedStreams>
+    <queryExpressions><![CDATA[
+       from avg_rif_stat
+               select cluster_id, cluster_instance_id, network_partition_id, 
in_flight_request_count,
+               stratos:concat(cluster_id, '-' ,cluster_instance_id) as 
avg_rif_cluster_network
+               insert into avg_rif_concat;
+       define partition avg_rif_cluster_partition by 
avg_rif_concat.avg_rif_cluster_network;
+       from avg_rif_concat#window.timeBatch(1 min)
+               select cluster_id, cluster_instance_id, network_partition_id, 
avg(in_flight_request_count) as count
+               insert into average_in_flight_requests 
+               partition by avg_rif_cluster_partition;
+    ]]></queryExpressions>
+    <exportedStreams>
+        <stream name="average_in_flight_requests"
+                valueOf="average_in_flight_requests" version="1.0.0"/>
+    </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfHealthRequest.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfHealthRequest.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfHealthRequest.xml
new file mode 100644
index 0000000..05bb942
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfHealthRequest.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="GradientOfHealthRequest" statistics="disable"
+  trace="disable" xmlns="http://wso2.org/carbon/eventprocessor";>
+  <description>This will find the gradient of the heath request over a 
minute.</description>
+  <siddhiConfiguration>
+    <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+    <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+  </siddhiConfiguration>
+  <importedStreams>
+    <stream as="health_grad_processsor" name="cartridge_agent_health_stats" 
version="1.0.0"/>
+  </importedStreams>
+  <queryExpressions><![CDATA[
+       from health_grad_processsor 
+               #window.stratos:faultHandling(1min, member_id) select 
cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id
+               group by cluster_id, network_partition_id 
+               insert into fault_message;
+       from health_grad_processsor
+               select cluster_id, cluster_instance_id, network_partition_id, 
member_id, partition_id, health_description, value,
+               stratos:concat(cluster_id, '-' , cluster_instance_id) as 
health_grad_cluster_network
+               insert into health_grad_concatinator;
+       define partition health_grad_cluster_partition by  
health_grad_concatinator.health_grad_cluster_network;
+       define partition member_health_grad_cluster_partition by 
health_grad_processsor.member_id;
+       from health_grad_concatinator [health_description == 'load_average'] 
+               #window.stratos:gradient(1 min, value) select cluster_id, 
cluster_instance_id, network_partition_id, value as gradient_load_average
+               insert into gradient_load_average_stats 
+               partition by health_grad_cluster_partition;
+       from health_grad_processsor [health_description == 'load_average'] 
+               #window.stratos:gradient(1 min, value) select member_id, 
cluster_id, cluster_instance_id, network_partition_id, value as 
member_gradient_load_average
+               insert into member_gradient_load_average_stats 
+               partition by member_health_grad_cluster_partition;
+       from health_grad_processsor [health_description == 
'memory_consumption'] 
+               #window.stratos:gradient(1 min, value) select member_id, 
cluster_id, cluster_instance_id, network_partition_id, value as 
member_gradient_memory_consumption
+               insert into member_gradient_memory_consumption_stats  partition 
by member_health_grad_cluster_partition;
+       from health_grad_concatinator [health_description == 
'memory_consumption'] 
+               #window.stratos:gradient(1 min, value) select cluster_id, 
cluster_instance_id, network_partition_id, value as gradient_memory_consumption
+               insert into gradient_memory_consumption_stats 
+               partition by 
health_grad_cluster_partition;]]></queryExpressions>
+  <exportedStreams>
+    <stream name="gradient_load_average_stats"
+      valueOf="gradient_load_average_stats" version="1.0.0"/>
+    <stream name="gradient_memory_consumption_stats"
+      valueOf="gradient_memory_consumption_stats" version="1.0.0"/>
+    <stream name="member_gradient_load_average_stats"
+      valueOf="member_gradient_load_average_stats" version="1.0.0"/>
+    <stream name="member_gradient_memory_consumption_stats"
+      valueOf="member_gradient_memory_consumption_stats" version="1.0.0"/>
+    <stream name="fault_message" passthroughFlow="disable"
+      valueOf="fault_message" version="1.0.0"/>
+  </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfRequestsInFlightFinder.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfRequestsInFlightFinder.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfRequestsInFlightFinder.xml
new file mode 100644
index 0000000..41e6a89
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/GradientOfRequestsInFlightFinder.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="GradientOfRequestsInFlightFinder"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventprocessor";>
+  <description>This will find the gradient of the number of requests in flight 
over a minute.</description>
+  <siddhiConfiguration>
+    <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+    <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+  </siddhiConfiguration>
+  <importedStreams>
+    <stream as="gradient_rif_processor" name="in_flight_requests" 
version="1.0.0"/>
+  </importedStreams>
+  <queryExpressions><![CDATA[
+       from gradient_rif_processor 
+                select cluster_id, cluster_instance_id, network_partition_id, 
in_flight_request_count,
+                stratos:concat(cluster_id, '-' , network_partition_id) as 
request_grad_cluster_network 
+                insert into gradient_rif_concatinator;
+        define partition request_grad_cluster_partition  by 
gradient_rif_concatinator.request_grad_cluster_network;
+        from gradient_rif_concatinator
+                #window.stratos:gradient(1 min, in_flight_request_count)
+                select cluster_id, cluster_instance_id, 
network_partition_id,in_flight_request_count as count
+                insert into gradient_in_flight_requests 
+                partition by request_grad_cluster_partition;
+]]></queryExpressions>
+  <exportedStreams>
+    <stream name="gradient_in_flight_requests" 
valueOf="gradient_in_flight_requests" version="1.0.0"/>
+  </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfHealthRequest.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfHealthRequest.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfHealthRequest.xml
new file mode 100644
index 0000000..df06388
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfHealthRequest.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="SecondDerivativeOfHealthRequest"
+  statistics="disable" trace="disable" 
xmlns="http://wso2.org/carbon/eventprocessor";>
+  <description>This will find the second derivative of health stats over a 
minute.</description>
+  <siddhiConfiguration>
+    <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+    <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+  </siddhiConfiguration>
+  <importedStreams>
+    <stream as="health_second_der_request" name="cartridge_agent_health_stats" 
version="1.0.0"/>
+  </importedStreams>
+  <queryExpressions><![CDATA[ 
+        from health_second_der_request
+               select member_id, cluster_id, cluster_instance_id, 
network_partition_id, health_description, value,
+               stratos:concat(cluster_id, '-' ,cluster_instance_id) as 
health_second_der_cluster_network
+               insert into health_second_der_concat;
+       define partition health_second_der_cluster_partition  by 
health_second_der_concat.health_second_der_cluster_network;
+       from health_second_der_concat [health_description == 
'memory_consumption'] 
+               #window.stratos:secondDerivative(1 min, value) select 
cluster_id, cluster_instance_id, network_partition_id, value as 
second_derivative_memory_consumption
+               insert into second_derivative_memory_consumption_stats 
+               partition by health_second_der_cluster_partition;
+       from health_second_der_concat [health_description == 'load_average'] 
+               #window.stratos:secondDerivative(1 min, value) select 
cluster_id, cluster_instance_id, network_partition_id, value as 
second_derivative_load_average
+               insert into second_derivative_load_average_stats 
+               partition by health_second_der_cluster_partition;
+       define partition health_second_der_member_partition by 
health_second_der_request.member_id;
+       from health_second_der_request [health_description == 
'memory_consumption'] 
+               #window.stratos:secondDerivative(1 min, value) 
+               select member_id, cluster_id, cluster_instance_id, 
network_partition_id, value as member_second_derivative_memory_consumption
+               insert into member_second_derivative_memory_consumption_stats 
+               partition by health_second_der_member_partition;
+       from health_second_der_request [health_description == 'load_average'] 
+               #window.stratos:secondDerivative(1 min, value)
+               select member_id, cluster_id, cluster_instance_id, 
network_partition_id, value as member_second_derivative_load_average
+                insert into member_second_derivative_load_average_stats 
+               partition by 
health_second_der_member_partition;]]></queryExpressions>
+  <exportedStreams>
+    <stream name="second_derivative_memory_consumption_stats"
+      valueOf="second_derivative_memory_consumption_stats" version="1.0.0"/>
+    <stream name="second_derivative_load_average_stats"
+      valueOf="second_derivative_load_average_stats" version="1.0.0"/>
+    <stream name="member_second_derivative_memory_consumption_stats"
+      valueOf="member_second_derivative_memory_consumption_stats" 
version="1.0.0"/>
+    <stream name="member_second_derivative_load_average_stats"
+      valueOf="member_second_derivative_load_average_stats" version="1.0.0"/>
+  </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml
new file mode 100644
index 0000000..2a48c05
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2009 WSO2, Inc. (http://wso2.com)
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<executionPlan name="SecondDerivativeOfRequestsInFlightFinder"
+  statistics="disable" trace="enable" 
xmlns="http://wso2.org/carbon/eventprocessor";>
+  <description>This will find the second derivative of the number of requests 
in flight over a minute.</description>
+  <siddhiConfiguration>
+    <property 
name="siddhi.enable.distributed.processing">RedundantNode</property>
+    <property 
name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
+  </siddhiConfiguration>
+  <importedStreams>
+    <stream as="second_der_rif" name="in_flight_requests" version="1.0.0"/>
+  </importedStreams>
+  <queryExpressions><![CDATA[ 
+       from second_der_rif
+               select cluster_id, cluster_instance_id, network_partition_id, 
in_flight_request_count,
+               stratos:concat(cluster_id, '-' ,network_partition_id) as 
rif_second_der_cluster_network
+               insert into rif_second_der_concat;
+       define partition rif_second_der_cluster_partition by 
rif_second_der_concat.rif_second_der_cluster_network;
+       from rif_second_der_concat#window.stratos:secondDerivative(1 min, 
in_flight_request_count)
+               select cluster_id, cluster_instance_id, 
network_partition_id,in_flight_request_count as count
+               insert into second_derivative_in_flight_requests 
+               partition by rif_second_der_cluster_partition;
+  ]]></queryExpressions>
+  <exportedStreams>
+    <stream name="second_derivative_in_flight_requests"
+            valueOf="second_derivative_in_flight_requests" version="1.0.0"/>
+  </exportedStreams>
+</executionPlan>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml
new file mode 100644
index 0000000..77af463
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<inputEventAdaptor name="DefaultWSO2EventInputAdaptor"
+  statistics="disable" trace="enable" type="wso2event" 
xmlns="http://wso2.org/carbon/eventadaptormanager"/>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml
new file mode 100644
index 0000000..4438d2c
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<outputEventAdaptor name="DefaultWSO2EventOutputAdaptor"
+  statistics="disable" trace="disable" type="wso2event" 
xmlns="http://wso2.org/carbon/eventadaptormanager";>
+  <property name="username">admin</property>
+  <property name="receiverURL">tcp://localhost:7661</property>
+  <property name="password">admin</property>
+  <property name="authenticatorURL">ssl://localhost:7761</property>
+</outputEventAdaptor>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/JMSOutputAdaptor.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/JMSOutputAdaptor.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/JMSOutputAdaptor.xml
new file mode 100644
index 0000000..59c3653
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/outputeventadaptors/JMSOutputAdaptor.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<outputEventAdaptor name="JMSOutputAdaptor" statistics="disable"
+  trace="enable" type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager";>
+  <!--property 
name="java.naming.provider.url">CEP_HOME/repository/conf/jndi.properties</property-->
+  <property name="java.naming.provider.url">tcp://localhost:61616</property>
+  <property 
name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
+  <property 
name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property>
+  <property name="transport.jms.DestinationType">topic</property>
+</outputEventAdaptor>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/streamdefinitions/stream-manager-config.xml
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/artifacts/wso2cep-3.1.0/streamdefinitions/stream-manager-config.xml
 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/streamdefinitions/stream-manager-config.xml
new file mode 100644
index 0000000..4c4c7e0
--- /dev/null
+++ 
b/extensions/cep/modules/artifacts/wso2cep-3.1.0/streamdefinitions/stream-manager-config.xml
@@ -0,0 +1,309 @@
+<?xml version='1.0'?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<streamManagerConfiguration xmlns="http://wso2.org/carbon/streammanager";>
+    <!-- in-flight requests stream definitions start -->
+    <streamDefinition name="in_flight_requests" version="1.0.0">
+         <description>in-flight request count</description>
+         <nickName>in-flight requests</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="in_flight_request_count" type="double"/>
+         </payloadData>
+     </streamDefinition> 
+
+    <streamDefinition name="gradient_in_flight_requests" version="1.0.0">
+         <description>gradient of in flight request count</description>
+         <nickName>gradient in flight requests</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="count" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="average_in_flight_requests" version="1.0.0">
+         <description>average of in-flight request count</description>
+         <nickName>average in-flight requests</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="count" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="second_derivative_in_flight_requests" 
version="1.0.0">
+         <description>second derivative of in-flight request 
count</description>
+         <nickName>second derivative in-flight requests</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="count" type="double"/>
+         </payloadData>
+    </streamDefinition>
+    <!-- in-flight requests stream definitions end -->
+
+    <!-- cartridge agent health stats stream definitions start -->
+    <streamDefinition name="cartridge_agent_health_stats" version="1.0.0">
+         <description>agent health stats</description>
+         <nickName>agent health stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+                <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_id" type="String" />
+             <property name="partition_id" type="String" />
+             <property name="health_description" type="String"/>
+             <property name="value" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="average_load_average_stats" version="1.0.0">
+         <description>average load average stats</description>
+         <nickName>average load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+            <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="average_load_average" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="average_memory_consumption_stats" version="1.0.0">
+         <description>average memory consumption stats</description>
+         <nickName>average memory consumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="average_memory_consumption" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="gradient_load_average_stats" version="1.0.0">
+         <description>gradient load average stats</description>
+         <nickName>gradient load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+            <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="gradient_load_average" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="gradient_memory_consumption_stats" version="1.0.0">
+         <description>gradient memoryconsumption stats</description>
+         <nickName>gradient memoryconsumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+            <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="gradient_memory_consumption" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="second_derivative_memory_consumption_stats" 
version="1.0.0">
+         <description>second derivative memory consumption stats</description>
+         <nickName>second derivative memory consumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+            <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="second_derivative_memory_consumption" 
type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="second_derivative_load_average_stats" 
version="1.0.0">
+         <description>second derivative load average stats</description>
+         <nickName>second derivative load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+            <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="second_derivative_load_average" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="fault_message" version="1.0.0">
+         <description>fault message</description>
+         <nickName>fault message</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_id" type="String"/>
+             <property name="partition_id" type="String"/>
+         </payloadData>
+    </streamDefinition>
+    <!-- cartridge agent health stats stream definitions end -->
+
+    <!-- This is for member_id wise grouping-->
+    <streamDefinition name="member_average_load_average_stats" version="1.0.0">
+         <description>average load average stats</description>
+         <nickName>average load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String" />
+             <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_average_load_average" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="member_average_memory_consumption_stats" 
version="1.0.0">
+         <description>average memory consumption stats</description>
+         <nickName>average memory consumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String"/>
+             <property name="cluster_id" type="String"/>
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_average_memory_consumption" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="member_gradient_load_average_stats" 
version="1.0.0">
+         <description>gradient load average stats</description>
+         <nickName>gradient load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String" />
+             <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_gradient_load_average" type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="member_gradient_memory_consumption_stats" 
version="1.0.0">
+         <description>gradient memoryconsumption stats</description>
+         <nickName>gradient memoryconsumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String" />
+             <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_gradient_memory_consumption" 
type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="member_second_derivative_memory_consumption_stats" 
version="1.0.0">
+         <description>second derivative memory consumption stats</description>
+         <nickName>second derivative memory consumption stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String" />
+             <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_second_derivative_memory_consumption" 
type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+    <streamDefinition name="member_second_derivative_load_average_stats" 
version="1.0.0">
+         <description>second derivative load average stats</description>
+         <nickName>second derivative load average stats</nickName>
+         <metaData>
+         </metaData>
+         <correlationData>
+         </correlationData>
+         <payloadData>
+             <property name="member_id" type="String" />
+             <property name="cluster_id" type="String" />
+             <property name="cluster_instance_id" type="String"/>
+             <property name="network_partition_id" type="String"/>
+             <property name="member_second_derivative_load_average" 
type="double"/>
+         </payloadData>
+     </streamDefinition>
+
+</streamManagerConfiguration>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/stratos-cep-extension/pom.xml
----------------------------------------------------------------------
diff --git a/extensions/cep/modules/stratos-cep-extension/pom.xml 
b/extensions/cep/modules/stratos-cep-extension/pom.xml
deleted file mode 100644
index 01eb733..0000000
--- a/extensions/cep/modules/stratos-cep-extension/pom.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>cep-extensions</artifactId>
-        <version>4.1.3-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <artifactId>org.apache.stratos.cep.extension</artifactId>
-    <name>Apache Stratos - CEP Extensions</name>
-    <description>Apache Stratos CEP Extensions</description>
-
-    <repositories>
-        <repository>
-            <id>wso2-maven2-repository</id>
-            <name>WSO2 Maven2 Repository</name>
-            <url>http://dist.wso2.org/maven2</url>
-        </repository>
-    </repositories>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.wso2.siddhi</groupId>
-            <artifactId>siddhi-core</artifactId>
-            <version>2.0.0-wso2v5</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.messaging</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-            </plugin>
-        </plugins>
-    </build>
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/CEPTopologyEventReceiver.java
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/CEPTopologyEventReceiver.java
 
b/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/CEPTopologyEventReceiver.java
deleted file mode 100644
index 59c70c5..0000000
--- 
a/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/CEPTopologyEventReceiver.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.stratos.cep.extension;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.stratos.messaging.event.Event;
-import org.apache.stratos.messaging.event.topology.CompleteTopologyEvent;
-import org.apache.stratos.messaging.event.topology.MemberActivatedEvent;
-import org.apache.stratos.messaging.event.topology.MemberTerminatedEvent;
-import 
org.apache.stratos.messaging.listener.topology.CompleteTopologyEventListener;
-import 
org.apache.stratos.messaging.listener.topology.MemberActivatedEventListener;
-import 
org.apache.stratos.messaging.listener.topology.MemberTerminatedEventListener;
-import 
org.apache.stratos.messaging.message.receiver.topology.TopologyEventReceiver;
-import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
-
-/**
- * CEP Topology Receiver for Fault Handling Window Processor.
- */
-public class CEPTopologyEventReceiver extends TopologyEventReceiver {
-
-    private static final Log log = 
LogFactory.getLog(CEPTopologyEventReceiver.class);
-
-    private FaultHandlingWindowProcessor faultHandler;
-
-    public CEPTopologyEventReceiver(FaultHandlingWindowProcessor faultHandler) 
{
-        this.faultHandler = faultHandler;
-        addEventListeners();
-    }
-
-    @Override
-    public void execute() {
-        super.execute();
-        log.info("CEP topology event receiver thread started");
-    }
-
-    private void addEventListeners() {
-        // Load member time stamp map from the topology as a one time task
-        addEventListener(new CompleteTopologyEventListener() {
-            private boolean initialized;
-
-            @Override
-            protected void onEvent(Event event) {
-                if (!initialized) {
-                    try {
-                        TopologyManager.acquireReadLock();
-                        log.debug("Complete topology event received to fault 
handling window processor.");
-                        CompleteTopologyEvent completeTopologyEvent = 
(CompleteTopologyEvent) event;
-                        initialized = 
faultHandler.loadTimeStampMapFromTopology(completeTopologyEvent.getTopology());
-                    } catch (Exception e) {
-                        log.error("Error loading member time stamp map from 
complete topology event.", e);
-                    } finally {
-                        TopologyManager.releaseReadLock();
-                    }
-                }
-            }
-        });
-
-        // Remove member from the time stamp map when MemberTerminated event 
is received.
-        addEventListener(new MemberTerminatedEventListener() {
-            @Override
-            protected void onEvent(Event event) {
-                MemberTerminatedEvent memberTerminatedEvent = 
(MemberTerminatedEvent) event;
-                
faultHandler.getMemberTimeStampMap().remove(memberTerminatedEvent.getMemberId());
-                log.debug("Member was removed from the timestamp map: [member] 
" + memberTerminatedEvent.getMemberId());
-            }
-        });
-
-        // Add member to time stamp map whenever member is activated
-        addEventListener(new MemberActivatedEventListener() {
-            @Override
-            protected void onEvent(Event event) {
-                MemberActivatedEvent memberActivatedEvent = 
(MemberActivatedEvent) event;
-
-                // do not put this member if we have already received a health 
event
-                
faultHandler.getMemberTimeStampMap().putIfAbsent(memberActivatedEvent.getMemberId(),
-                        System.currentTimeMillis());
-                log.debug("Member was added to the timestamp map: [member] " + 
memberActivatedEvent.getMemberId());
-            }
-        });
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/ConcatWindowProcessor.java
----------------------------------------------------------------------
diff --git 
a/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/ConcatWindowProcessor.java
 
b/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/ConcatWindowProcessor.java
deleted file mode 100644
index 699f036..0000000
--- 
a/extensions/cep/modules/stratos-cep-extension/src/main/java/org/apache/stratos/cep/extension/ConcatWindowProcessor.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- *     Licensed to the Apache Software Foundation (ASF) under one
- *     or more contributor license agreements.  See the NOTICE file
- *     distributed with this work for additional information
- *     regarding copyright ownership.  The ASF licenses this file
- *     to you under the Apache License, Version 2.0 (the
- *     "License"); you may not use this file except in compliance
- *     with the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *     Unless required by applicable law or agreed to in writing,
- *     software distributed under the License is distributed on an
- *     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *     KIND, either express or implied.  See the License for the
- *     specific language governing permissions and limitations
- *     under the License.
- */
-package org.apache.stratos.cep.extension;
-import org.wso2.siddhi.core.config.SiddhiContext;
-import org.wso2.siddhi.core.executor.function.FunctionExecutor;
-import org.wso2.siddhi.query.api.definition.Attribute;
-import org.wso2.siddhi.query.api.extension.annotation.SiddhiExtension;
-
-@SiddhiExtension(namespace = "stratos", function = "concat")
-public class ConcatWindowProcessor extends FunctionExecutor {
-    Attribute.Type returnType = Attribute.Type.STRING;
-    @Override
-    public void init(Attribute.Type[] types, SiddhiContext siddhiContext) {
-    }
-
-    @Override
-    protected Object process(Object obj) {
-        if (obj instanceof Object[]) {
-            StringBuffer sb=new StringBuffer();
-            for (Object aObj : (Object[]) obj) {
-                sb.append(aObj);
-            }
-            return sb.toString();
-        } else {
-            return obj.toString();
-        }
-
-    }
-
-    @Override
-    public void destroy() {
-    }
-
-    @Override
-    public Attribute.Type getReturnType() {
-        return returnType;
-    }
-}

Reply via email to