User Tools

Site Tools


toolsandtechnologies:reporting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
toolsandtechnologies:reporting [2020/03/06 17:22] akavanaghtoolsandtechnologies:reporting [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Reporting Manager and Elastic Search ======
 +When querying data which was discovered by the new RDF framework, it needs to done differently than that of MySQL database look-ups done in the Reporting Manager. For example, you normally establish a database connection in your report script by calling a data-source connection manager.
 +
 +<code>
 +import com.osssoftware.reporting.database.*
 +
 +def snmpDb = SqlConnectionManager.instance.retrieveSql('snmp_manager')
 +</code>
 +
 +When you are looking to retrieve data which was gathered from using the new RDF, a similar call can be used to get a service called 'Remote Elastic Service'. This service can be used to run queries against the Elastic Search service.
 +
 +<code>
 +RemoteElasticService remoteElasticService = RemoteElasticService.instance
 +</code>