ContributionsMost RecentMost LikesSolutionsRe: Bulk add of monitored instance - Ping (Multi)- About 9 months too late (I stumbled across this post by mistake) But I wrote a Python script to do this if you want. Re: Get all of ping-multis on a collector Yes. All of them have the potential of paginating the results. OK thanks. Re: Get all of ping-multis on a collector Out of interest, am I going to hit the same issues with these calls? api_instance.get_dashboard_group_list() api_instance.get_widget_list_by_dashboard_id() Do I need to re-write those with pagination as well? Thanks Re: Get all of ping-multis on a collector That would be nice. If i were smart enough in python, i’d add it to my lm_wrapper. @BMAC could probably do it. That reminds me, I need to add my LM Logs SDK action logger functions (simple function to send logs from an sdk script to LM Logs) to the lm_wrapper. Sounds great, will keep an eye out. Thanks again Re: Get all of ping-multis on a collector Thanks, that’s done the trick. It would be good to just have an option in the sdk call of pagination = yes or something like that. Or just return full results by default? P.S I did have 1000 originally but I was trying all sorts to get a full response. Re: Get all of ping-multis on a collector Sorry, I thought I had this working. I can pull a list of ping-multi using the following SDK command: get_device_datasource_instance_list(device_id, device_data_source_id) The strange thing is it’s only returning 50 items but there are a lot more then 50 of them configured. Here is the code I am using: ping_multi_dict = {} end_found = False offset = 0 size = 10000 while not end_found: ping_multi_call = api_instance.get_device_datasource_instance_list(device_id, device_data_source_id) ping_multi_dict.update({record.id: record for record in ping_multi_call.items}) offset += size end_found = len(ping_multi_call.items) < size counter = 0 for k,v in ping_multi_dict.items(): print (k,v) counter += 1 print (counter) Any help appreciated here. Thanks Re: Get all of ping-multis on a collector Ignore this, I solved it. I don’t seem to be able to delete this post. Get all of ping-multis on a collector Hi there I’m using the LM SDK to pull data from LM. I’m looking to pull a list of ICMP Ping-Multis configured on the collector. Which sdk call should I be using here and does someone have an example for me of what the call will look like? Thank very much. api_instance.get_device_datasource_by_id( api_instance.get_device_datasource_by_id_with_http_info( api_instance.get_device_datasource_data_by_id( api_instance.get_device_datasource_data_by_id_with_http_info( api_instance.get_device_datasource_instance_alert_setting_by_id( api_instance.get_device_datasource_instance_alert_setting_by_id_with_http_info( api_instance.get_device_datasource_instance_alert_setting_list_of_device( api_instance.get_device_datasource_instance_alert_setting_list_of_device_with_http_info( api_instance.get_device_datasource_instance_alert_setting_list_of_dsi( api_instance.get_device_datasource_instance_alert_setting_list_of_dsi_with_http_info( api_instance.get_device_datasource_instance_by_id( api_instance.get_device_datasource_instance_by_id_with_http_info( api_instance.get_device_datasource_instance_data( api_instance.get_device_datasource_instance_data_with_http_info( api_instance.get_device_datasource_instance_graph_data( api_instance.get_device_datasource_instance_graph_data_with_http_info( api_instance.get_device_datasource_instance_group_by_id( api_instance.get_device_datasource_instance_group_by_id_with_http_info( api_instance.get_device_datasource_instance_group_list( api_instance.get_device_datasource_instance_group_list_with_http_info( api_instance.get_device_datasource_instance_group_overview_graph_data( api_instance.get_device_datasource_instance_group_overview_graph_data_with_http_info( api_instance.get_device_datasource_instance_list( api_instance.get_device_datasource_instance_list_with_http_info( api_instance.get_device_datasource_instance_sdt_history( api_instance.get_device_datasource_instance_sdt_history_with_http_info( api_instance.get_device_datasource_list( api_instance.get_device_datasource_list_with_http_info( SolvedRe: Python SDK 10 hours ago, Michael Baker said: This is prob a better doc to follow obv you need to change the auth path but any method in swagger doc should be on here with example code using the official SDK https://github.com/logicmonitor/lm-sdk-python/blob/master/LMApi.md Thanks for the link. I will have a look, at first glance it seems very similar/same to the original link I used. The issue I was having was python didn't know what Swagger client was. I figured out you need to take and generate a swagger python client installation. After that it worked. I don't see that documented anywhere in the documentation. Re: Python SDK I think I figured this out, more by luck. I stumbled across this site "https://editor.swagger.io/" and I found the json file on the LM Swagger site, I popped it in there and generated a python client config. It seems to import the body now.
Top ContributionsRe: Get all of ping-multis on a collectorRe: Get all of ping-multis on a collectorQuerying alerts via APISolvedRe: Bulk add of monitored instance - Ping (Multi)-Re: Get all of ping-multis on a collectorGet all of ping-multis on a collectorSolvedRe: Using API v2Re: Using API v2Re: Using API v2Re: Using API v2