Esempio n. 1
0
 def __init__(self, url, host, name, build_number, start, duration, status, downstream,
              base_url, trigger):
     self.url = url
     self.host = host
     self.name = name
     self.build_number = build_number
     self.start = start
     self.duration = duration
     self.status = status
     self.downstream = downstream
     self.children = []
     self.base_url = base_url
     self.trigger = trigger
     self.start_t = time_to_datetime(start)
     self.duration_s = duration_to_second(duration)
     self.stop_t = self.start_t + timedelta(seconds=self.duration_s)
Esempio n. 2
0
 def __init__(self, url, host, name, build_number, start, duration, status, downstream,
              base_url, trigger, upstream):
     self.url = url
     self.host = host
     self.name = name
     self.build_number = build_number
     self.start = start
     self.duration = duration
     self.status = status
     self.children = []
     self.base_url = base_url
     self.trigger = trigger
     self.start_t = time_to_datetime(start)
     self.duration_s = duration_to_second(duration)
     if self.start_t and self.duration_s is not None:
         self.stop_t = self.start_t + timedelta(seconds=self.duration_s)
     else:
         self.stop_t = None
     self.downstream = ','.join(downstream)
     self.upstream = ','.join(upstream)