def setup(servername: str, serverpassword: str, componentname: str,
    errorthreshold=60):
    """assign all required variables

    :param servername: str: name of the server (in stater)
    :param serverpassword: str: password of the server (in stater)
    :param componentname: str: name of the component (this server) in stater
    :param errorthreshold: amount of minutes in which multiple calls of error() will trigger stater to mark this server/component as failed(Default value = 60)
    """
    global server_name
    global server_password
    global component_name
    global error_threshold
    if type(servername) == str:
        server_name = servername
    else:
        raise TypeError('servername expected to be of type str.')
    if type(serverpassword) == str:
        server_password = serverpassword
    else:
        raise TypeError('serverpassword expected to be of type str.')
    if type(componentname) == str:
        component_name = componentname
    else:
        raise TypeError('componentname expected to be of type str.')
    if type(errorthreshold) == int:
        error_threshold = errorthreshold
    else:
        raise TypeError('errorthreshold expected to be of type str.')
