def apply_config(self, config):
self.host = config.get("<STR_LIT:host>", "<STR_LIT:127.0.0.1>")<EOL>self.configured_ports = config.get("<STR_LIT>", [config.get("<STR_LIT:port>")])<EOL>self.discovery = config["<STR_LIT>"]<EOL>self.metadata = config.get("<STR_LIT>", {})<EOL>self.update_ports()<EOL>self.check_interval = config["<STR_LIT>"]["<STR_LIT>"]<EOL>self.update_checks(config["<STR_LIT>"])<EOL>
Takes a given validated config dictionary and sets an instance
attribute for each one.

For check definitions, a Check instance is is created and a `checks`
attribute set to a dictionary keyed off of the checks' names.  If
the Check instance has some sort of error while being created an error
is logged and the check skipped.