install/ss-ci-pipeline/ss-tester.py
def _failing_monitored_connectors(ss_servers):
    "ss_servers - list of SS server names as defined in monitoring app."

    status = _get_monitoring_status()

    ss_exec_checks_err = {}
    for s in ss_servers:
        for chn, ch in status.get("services", {}).get(s, {}).items():
            if chn.startswith('ss-exec_') and _enabled_and_error(ch):
                if ss_exec_checks_err.has_key(chn):
                    _ch = ss_exec_checks_err.get(chn)
                    if int(_ch.get('last_check', 0)) < int(ch.get('last_check', 0)):
                        ss_exec_checks_err[chn] = ch
                else:
                    ss_exec_checks_err[chn] = ch
    return map(lambda x: x.replace('ss-exec_', ''), ss_exec_checks_err.keys())
ss_servers - list of SS server names as defined in monitoring app.
list of SS server names as defined in monitoring app.
list of SS server names as defined in monitoring app .
def _failing_monitored_connectors(ss_servers):
    status = _get_monitoring_status()
    ss_exec_checks_err = {}
    for s in ss_servers:
        for chn, ch in status.get("services", {}).get(s, {}).items():
            if chn.startswith('ss-exec_') and _enabled_and_error(ch):
                if ss_exec_checks_err.has_key(chn):
                    _ch = ss_exec_checks_err.get(chn)
                    if int(_ch.get('last_check', 0)) < int(ch.get('last_check', 0)):
                        ss_exec_checks_err[chn] = ch
                else:
                    ss_exec_checks_err[chn] = ch
    return map(lambda x: x.replace('ss-exec_', ''), ss_exec_checks_err.keys())
def _failing_monitored_connectors ( ss_servers ) : status = _get_monitoring_status ( ) ss_exec_checks_err = { } for s in ss_servers : for chn , ch in status . get ( "services" , { } ) . get ( s , { } ) . items ( ) : if chn . startswith ( 'ss-exec_' ) and _enabled_and_error ( ch ) : if ss_exec_checks_err . has_key ( chn ) : _ch = ss_exec_checks_err . get ( chn ) if int ( _ch . get ( 'last_check' , 0 ) ) < int ( ch . get ( 'last_check' , 0 ) ) : ss_exec_checks_err [ chn ] = ch else : ss_exec_checks_err [ chn ] = ch return map ( lambda x : x . replace ( 'ss-exec_' , '' ) , ss_exec_checks_err . keys ( ) )
ss_servers - list of SS server names as defined in monitoring app.
ss_servers - list of SS server names as defined in monitoring app .
"ss_servers - list of SS server names as defined in monitoring app."
ss_servers