Skip to content

Commit 69f64f6

Browse files
authored
Merge pull request #12 from heavenshell/fix/get_hosts
Add status and customIdentifier to get_hosts
2 parents fecab18 + 2bcfe06 commit 69f64f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mackerel/client.py

+6
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ def get_hosts(self, **kwargs):
144144
if kwargs.get('name', None):
145145
params['name'] = kwargs.get('name')
146146

147+
if kwargs.get('status', None):
148+
params['status'] = kwargs.get('status')
149+
150+
if kwargs.get('customIdentifier', None):
151+
params['customIdentifier'] = kwargs.get('customIdentifier')
152+
147153
hosts = self._request(uri, params=params)
148154
return [Host(**host) for host in hosts['hosts']]
149155

0 commit comments

Comments
 (0)