Add LINE Messaging API Alerter - #1724
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request adds LINE Messaging API integration to ElastAlert2, enabling alerts to be sent to LINE applications via the LINE bot push message API.
- Implements a new
LineMessageAPIAlerterclass following the existing alerter patterns - Adds comprehensive unit tests covering success cases, error handling, and required field validation
- Updates schema, documentation, and loader configuration to support the new alerter
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| elastalert/alerters/line.py | Implements the LINE Messaging API alerter with support for text message push notifications |
| tests/alerters/line_test.py | Provides unit tests for the LINE alerter including success cases, exception handling, field validation, and multiple match scenarios |
| elastalert/schema.yaml | Adds schema definitions for line_channel_access_token and line_to configuration options |
| elastalert/loaders.py | Registers the LINE alerter in the alerter registry and adds the module import |
| docs/source/alerts.rst | Documents the LINE Messaging API alerter configuration and usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Collaborator
Author
|
@copilot open a new pull request to apply changes based on the comments in this thread |
jertel
approved these changes
Nov 18, 2025
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Support for LINE Messaging API, an alternative service to Line Notify, has been added.
Checklist
make test-dockerwith my changes.Questions or Comments