def get_doc_counts(self, cache=True):
        if not cache or not ('doc_counts' in self.cache):
            response = self.get_attribute("profile", bucket='doc_counts')
            self.cache['doc_counts'] = response['artist']['doc_counts']
        return self.cache['doc_counts']
Deprecate events usage for service checks.
dataset/ETHPy150Open echonest/pyechonest/pyechonest/artist.py/Artist.get_doc_counts--crossover with--dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/integration/test_http_check.py/HTTPCheckTest.test_warnings