You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lorenzo Mangani edited this page Jan 1, 2018
·
2 revisions
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.
Available reporters
ConsoleReporter
The ConsoleReporter is just meant for demonstration purpose and simply logs a message to the console and has no configuration options.
MailReporter
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": "me@example.com,peng@example.com"// number of retry attempts if sending mail fails (defaults to 3)"maxRetries": 3}}
Custom reporters
You can create custom reporters by creating a new class that extends the Reporter class (see ConsoleReporter for an example).