You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2013/07/29 15:48:06 UTC
svn commit: r1508067 - in
/sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo:
ecma-jmx-and.json groovy-jmx-and.json
Author: bdelacretaz
Date: Mon Jul 29 13:48:06 2013
New Revision: 1508067
URL: http://svn.apache.org/r1508067
Log:
SLING-2983 - jmx binding for easy access to jmx attributes in scripted rules
Added:
sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json
Added: sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json?rev=1508067&view=auto
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json (added)
+++ sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/ecma-jmx-and.json Mon Jul 29 13:48:06 2013
@@ -0,0 +1,9 @@
+{
+ "sling:resourceType" : "sling/healthcheck/rules",
+ "namespace": "script",
+ "ruleName": "Example javascript expression that combines two JMX attributes",
+ "qualifier": "ecma",
+ "expression": 'jmx.attribute("java.lang:type=ClassLoading", "LoadedClassCount") > 100 && jmx.attribute("osgi.core:type=framework,version=1.5","FrameworkStartLevel") > 1',
+ "tags" : ["script","javascript", "jmx" ],
+ "jcr:primaryType": "nt:unstructured"
+}
\ No newline at end of file
Added: sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json?rev=1508067&view=auto
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json (added)
+++ sling/trunk/contrib/extensions/healthcheck/sling-demo/src/main/resources/SLING-CONTENT/apps/hc/demo/groovy-jmx-and.json Mon Jul 29 13:48:06 2013
@@ -0,0 +1,9 @@
+{
+ "sling:resourceType" : "sling/healthcheck/rules",
+ "namespace": "script",
+ "ruleName": "Example Groovy expression that combines two JMX attributes",
+ "qualifier": "groovy",
+ "expression": 'jmx.attribute("java.lang:type=ClassLoading", "LoadedClassCount") > 100 && jmx.attribute("osgi.core:type=framework,version=1.5","FrameworkStartLevel") > 1',
+ "tags" : ["script","groovy", "jmx" ],
+ "jcr:primaryType": "nt:unstructured"
+}
\ No newline at end of file