python - How to filter fields in embedded objects with Alignak backend client -
i trying limit fields embedded object in alignak, documentation alignak backend not go detail on how combine 2 functionalities. using alignak_backend_client (http://alignak-backend-client.readthedocs.io/en/latest/index.html).
right have:
params = { "projection": { "name": 1, "ls_last_check": 1, "host":1 }, "embedded": { "host": 1 } } backend = alignak_backend_client.client.backend(alignak_backend_url) backend.login(alignak_admin_userid, alignak_admin_password) backend.get_all("service", params=params)
this returns entire host object embedded returned dict, want few fields. looked mogodb serves db alignak , in theory uses dot notation limit returned fields, using:
params = { "projection": { "name": 1, "ls_last_check": 1, "host.name":1 }, "embedded": { "host": 1 } }
does not limit returned fields either, instead giving me nothing.
how limit embedded fields getting alignak?
Comments
Post a Comment