Lines Matching full:row
169 for the next level dictionary will be the field of a given row of the
219 for row in rows:
220 # Process each row of mtr output.
222 row_list = row.split(" ")
223 # Create dictionary for the row.
224 row = DotDict()
225 row["row_num"] = row_list[0].rstrip(".")
226 row["host"] = row_list[1]
227 row["loss"] = row_list[2].rstrip("%")
228 row["snt"] = row_list[3]
229 row["last"] = row_list[4]
230 row["avg"] = row_list[5]
231 row["best"] = row_list[6]
232 row["wrst"] = row_list[7]
233 row["stdev"] = row_list[8]
234 report[row["host"]] = row
242 Run an mtr report and get a specified row and return it as a dictionary.
246 row:
247 row[row_num]: 2
248 row[host]: bmc-dummy-dnsname.com
249 row[loss]: 0.0
250 row[snt]: 10
251 row[last]: 0.5
252 row[avg]: 0.5
253 row[best]: 0.4
254 row[wrst]: 0.7
255 row[stdev]: 0.1
259 well as the indicating which row of the report to return.
265 row = [value for key, value in report.items() if host[0:28] in key][0]
267 return row