$for server in range(len(output)):
$code:
errors = 0
color = "green"
$for _,v in output[server]['result'].items():
$for check in v.keys():
$ isError = v.get(check)
$if isError != 0:
$code:
errors=errors+1
$if errors > 0:
$code:
color = "red"
$output[server]['name']
|
$for env, services in output[server]['result'].items():
$ errors = 0
$for check in services.keys():
$ isError = services.get(check)
$if isError != 0:
$ errors=errors+1
$if errors > 0:
$ color = "red"
$env
|
$for check in services.keys():
$ isError = services.get(check)
$if isError != 0:
$:row_error(check)
$else:
$:row_ok(check)
$else:
$ color = "green"
$env
|
$for check in services.keys():
$ isError = services.get(check)
$if isError != 0:
$:row_error(check)
$else:
$:row_ok(check)
$else:
$code:
color = "green"
$output[server]['name']
|
$for env, services in output[server]['result'].items():
$env
|
$for check in services.keys():
$ isError = services.get(check)
$if isError != 0:
$:row_error(check)
$else:
$:row_ok(check)