(state)
Maps a mongod node state id to a human readable string.
Maps a mongod node state id to a human readable string.
Maps a mongod node state id to a human readable string .
def get_long_state_name(state):
    """Maps a mongod node state id to a human readable string."""
    if state in REPLSET_MEMBER_STATES:
        return REPLSET_MEMBER_STATES[state][1]
    else:
        return 'Replset state %d is unknown to the Datadog agent' % state
def get_long_state_name ( state ) : if state in REPLSET_MEMBER_STATES : return REPLSET_MEMBER_STATES [ state ] [ 1 ] else : return 'Replset state %d is unknown to the Datadog agent' % state