![presentations on sciencelogic em7 presentations on sciencelogic em7](https://image.slidesharecdn.com/manypathstocompliance-sciencelogic-161026152447/95/customer-case-study-sciencelogic-many-paths-to-compliance-13-638.jpg)
Before each snippet is executed, SL1 populates result_handler with information about all the collection objects in the current snippet.
#PRESENTATIONS ON SCIENCELOGIC EM7 CODE#
The snippet code must populate the result_handler dictionary. ScienceLogic recommends using result_handler for all Dynamic Applications. NOTE: The legacy self.oids dictionary is no longer supported but will continue to work for older Dynamic Applications. To pass collected values back to SL1, snippet code must populate the result_handler dictionary.
#PRESENTATIONS ON SCIENCELOGIC EM7 HOW TO#
![presentations on sciencelogic em7 presentations on sciencelogic em7](https://docs.sciencelogic.com/latest/Content/Resources/Images/Snippet_Dyn_App_Development/collections_page.png)
Because a Snippet Dynamic Application can contain multiple snippets, each collection object in a Snippet Dynamic Application must be associated with a specific snippet that is responsible for collecting that collection object. For example, if the snippet code is using the SNMP protocol to collect data from the device, the Snippet Arguments might define the OID to walk for each collection object. The Snippet Arguments field is used to provide additional parameters to indicate to the snippet code how to perform collection for that collection object. When a snippet is executed by SL1, the snippet is passed information about each collection object defined in the Dynamic Application, including the name and class type for the collection object. Collection objects for Snippet Dynamic Applications have characteristics common to collection objects for other Dynamic Application types, such as naming, data typing, and grouping.Ĭollection objects for Snippet Dynamic Applications have the following unique elements: Similar to other Dynamic Application types, Snippet Dynamic Applications contain collection objects.