Example #1
0
 def create_probe_hosts(cls, num_hosts, predicted, safe, safe_in):
   hosts = defaultdict(list)
   for i in range(num_hosts):
     host_name = 'h%s' % i
     job = AuroraJobKey.from_path('west/role/env/job%s' % i)
     hosts[host_name].append(JobUpTimeDetails(job, predicted, safe, safe_in))
   return [hosts]
Example #2
0
 def create_probe_hosts(cls, hostname, predicted, safe, safe_in):
     hosts = defaultdict(list)
     job = AuroraJobKey.from_path('west/role/env/job-%s' % hostname)
     hosts[hostname].append(JobUpTimeDetails(job, predicted, safe, safe_in))
     return [hosts]