Authored by 沈志敏

增加 cloud字段

... ... @@ -21,9 +21,10 @@ var tracer = new Trace({
});
class Collect {
constructor(host, projectname) {
constructor(host, projectname, cloud) {
this.host = host;
this.projectname = projectname;
this.cloud = cloud;
this.scriptRunning = false;
this.retry = {};
}
... ... @@ -39,6 +40,7 @@ class Collect {
}
let obj = {
'cloud': self.cloud,
'total': 0,
'status': {}
};
... ...
... ... @@ -28,7 +28,7 @@ export default {
hosts.forEach((host) => {
if (!servers[host]) {
servers[host] = new Collect(host, p.name);
servers[host] = new Collect(host, p.name, p.cloud);
}
servers[host].collect();
... ...