The objective of this task is to enhance our chatbot application by providing an optional feature that allows it to connect with monitoring systems. This will enable the chatbot application to periodically report its operational status to the monitoring system by invoking a specific webhook.
Detailed Requirements:
Environment Variable Configuration:
Introduce two environment variables: MONITORING_URL and MONITORING_FREQUENCY_CALL.
The MONITORING_FREQUENCY_CALL variable should have a default value of 5 (the unit of time this refers to should be defined, e.g., minutes).
Operational Behavior:
Upon startup, if the MONITORING_URL variable is set, the chatbot application should begin making calls to the specified URL at intervals determined by the MONITORING_FREQUENCY_CALL.
These calls should commence immediately upon the application’s launch and continue at the specified frequency for as long as the application runs.
Logging:
Failed attempts to invoke the webhook should be logged, including the response code or type of error encountered. This will assist in troubleshooting and ensure transparency regarding the integration's functionality.
Successful calls need not be logged, to prevent cluttering the log files with routine operational entries.
Startup Notification:
At application startup, include a log entry that indicates the status of this monitoring feature. This should clearly state whether the feature is active (and if so, the configured values) or inactive. This initial log will serve as immediate feedback on the application’s configuration regarding its integration with external monitoring solutions.
Objective:
By accomplishing this task, we aim to improve the reliability and observability of our chatbot application. This feature will facilitate proactive maintenance and issue resolution by ensuring continuous communication between the chatbot and integrated monitoring systems.
Description:
The objective of this task is to enhance our chatbot application by providing an optional feature that allows it to connect with monitoring systems. This will enable the chatbot application to periodically report its operational status to the monitoring system by invoking a specific webhook.
Detailed Requirements:
Environment Variable Configuration:
Operational Behavior:
Logging:
Startup Notification:
Objective:
By accomplishing this task, we aim to improve the reliability and observability of our chatbot application. This feature will facilitate proactive maintenance and issue resolution by ensuring continuous communication between the chatbot and integrated monitoring systems.