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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -