Healthcheck
Healthcheck is a module to check if a service is up and running.
This module can be enabled on the configuration file. When a service status changes, a notifications can be sent to a channel. Currently, the only supported channel to send notifications is Slack.
Enable/Disable
On gAPI.json configuration, there is the following section:
"Healthcheck": {
"Active": true,
"Frequency": 30,
"Notification": false
}
Info:
- Active - boolean to activate/deactivate healthcheck
- Frequency - healthcheck frequency in seconds
- Notification - boolean to activate/deactivate status change notifications
Notifications
Notifications can also be enabled and disabled. In order to enable notifications, healthcheck must be enabled too. To enable notifications, there is a section on gAPI.json configuration file:
"Notifications": {
"Type": "Slack",
"Slack": {
"WebhookUrl": "https://hooks.slack.com/services/asld/lak/la"
}
}
Info:
- Type - type of notifications to be sent (available: Slack)
- Slack - for notification type Slack
- WebhookUrl - slack notifications are sent by calling an webhook. Here we can configure the webhook url.