-
Notifications
You must be signed in to change notification settings - Fork 3
Integrating with Other Applications
Scenario generator allows you to run scenarios. A scenario does not have to be something like CPULoad in easyTravel's case, it can be something that can be enabled/disabled in a remote instance.
To integrate scenario generator with your own application, first, you will need to implement ScenarioService.java
interface in scenario generator agent. Then, you need to tell Spring framework to look for which scenario.application
config should be associated with your service.
An empty example is created for an application called "badges".
Here is how to tell the agent application to start with your scenario service:
@Bean
@ConditionalOnProperty(name = "scenario.application", havingValue = "badges")
ScenarioService badgesScenarioService() {
return new BadgesScenarioService();
}
You also need to update your application.properties
files accordingly. You can find necessary information in the configuration page.
OpsGenie Playground - https://opsgenie.com/playground