def METHOD_NAME(self, name):
    components = cachet.Components(endpoint=self.endpoint, api_token=self.api_token)
    data = json.loads(components.get())
    for c in data['data']:
        if c['name'] == name:
            return c['id']
    return None