def event_counts(self, summarize_by, **kwargs):
        return self._query('event-counts',
                           summarize_by=summarize_by,
                           **kwargs)
Get event counts from puppetdb.
dataset/ETHPy150Open voxpupuli/pypuppetdb/pypuppetdb/api/__init__.py/BaseAPI.event_counts