Add scripts to create myops-getqueryview:
[myops.git] / web / query / views / node-status / map.js
1 function(doc) {
2     var ts = (new Date()).getTime()/1000;
3     var pl = /.planetlab/;
4
5         if ( doc.type == "node-status-v3-single" ) { // doc.hostname && doc.rpm_versions ) { 
6                 // emit(doc.hostname, doc);
7                 emit([doc.ts, doc.hostname], doc);
8                 //if ( ts - 60*60*24 < doc.ts ) {
9                 //}
10         }
11
12 }