diff --git a/mackerel/client.py b/mackerel/client.py index 4e59f66..da1e110 100644 --- a/mackerel/client.py +++ b/mackerel/client.py @@ -144,6 +144,12 @@ def get_hosts(self, **kwargs): if kwargs.get('name', None): params['name'] = kwargs.get('name') + if kwargs.get('status', None): + params['status'] = kwargs.get('status') + + if kwargs.get('customIdentifier', None): + params['customIdentifier'] = kwargs.get('customIdentifier') + hosts = self._request(uri, params=params) return [Host(**host) for host in hosts['hosts']]