Download Sample App
Clone or download the Logpresso app example from the GitHub repository as shown below.
git clone git@github.com:logpresso/logpresso-app-examples.git
This example introduces how to extend the query command to call the Logpresso Sonar REST API, and how to add the app's own screen to the Logpresso web console. You'll learn the following:
- Configure a Maven project: Describe how a Logpresso app is built.
- Develop iPOJO components: Describes how to develop OSGi service components declaratively.
- Extending Logpresso functionality
- Connect profiles: Describes how to manage the API keys and URL settings required to call the REST API.
- Query commands: Describes how to parse user-defined query commands and how they process data.
- REST API plugin: Describes how to implement the REST API that serves data to the app screen.
- XDR UI: Describes how to add the app's own screens to the Logpresso Sonar web console.
The query commands and the app screen use the same connect profile, so registering an endpoint and an API key once serves both.