-
Notifications
You must be signed in to change notification settings - Fork 3
Reporters
By default queryda does nothing more than executing its configured jobs, raising alarms if expectations aren't met. If you want to perform any action in such an alarm case, you have to define a reporter.
To put it simple - reporters are notified about alarms, which means a configured expectation isn't met for a given number of times. They can then do helpful things depending on their type like sending an email, creating a ticket in your ticket system, etc.
Reporters are defined inside a job's config, you can set either one or multiple of them. Most reporters need a specific configuration that is based on the reporter type.
The ConsoleReporter is just meant for demonstration purpose and simply logs a message to the console and has no configuration options.
The MailReporter sends an email to one (or multiple) given e-mail address(es). It offers the following configuration:
"reporters": {
"mail": {
// comma-separated list of target addresses for notification
"targetAddress": "[email protected],[email protected]"
// number of retry attempts if sending mail fails (defaults to 3)
"maxRetries": 3
}
}You can create custom reporters by creating a new class that extends the Reporter class (see ConsoleReporter for an example).