def search_component(key, CACHET_IDS):
    """ Searches the list of componets in cachet for the
    component returned from alertmanager. If found it returns the component,
    if not 9999 is returned.
    """
    return CACHET_IDS.get(key, 9999)