Add scripts to create myops-getqueryview:
[myops.git] / web / query / views / node-status / map.js
diff --git a/web/query/views/node-status/map.js b/web/query/views/node-status/map.js
new file mode 100644 (file)
index 0000000..4c967a6
--- /dev/null
@@ -0,0 +1,12 @@
+function(doc) {
+    var ts = (new Date()).getTime()/1000;
+    var pl = /.planetlab/;
+
+       if ( doc.type == "node-status-v3-single" ) { // doc.hostname && doc.rpm_versions ) { 
+               // emit(doc.hostname, doc);
+               emit([doc.ts, doc.hostname], doc);
+               //if ( ts - 60*60*24 < doc.ts ) {
+               //}
+       }
+
+}