Skip to content

Commit

Permalink
Merge pull request #363 from ferozsalam/tidy-twilio-docs
Browse files Browse the repository at this point in the history
Tidy Twilio documentation
  • Loading branch information
jertel authored Jul 24, 2021
2 parents c7b9ad4 + 8b43b8e commit 23d1c75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [Tests] Add test code. Changed ubuntu version of Dockerfile-test from latest to 21.10. - [#354](https://github.com/jertel/elastalert2/pull/354) - @nsano-rururu
- Remove Python 2.x compatibility code - [#354](https://github.com/jertel/elastalert2/pull/354) - @nsano-rururu
- [Docs] Added Chatwork proxy settings to documentation - [#360](https://github.com/jertel/elastalert2/pull/360) - @nsano-rururu
- [Docs] Tidy Twilio alerter documentation - [#363](https://github.com/jertel/elastalert2/pull/363) - @ferozsalam
- Add settings to schema.yaml(Chatwork proxy, Dingtalk proxy) - [#361](https://github.com/jertel/elastalert2/pull/361) - @nsano-rururu

# 2.1.2
Expand Down
26 changes: 15 additions & 11 deletions docs/source/ruletypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2859,28 +2859,32 @@ Example usage::
Twilio
~~~~~~

Twilio alerter will trigger an incident to a mobile phone as an sms from your twilio phone number. The sms will contain the alert name. You may use either twilio SMS or twilio copilot
to send the message, controlled by the ``twilio_use_copilot`` option.
The Twilio alerter will send an alert to a mobile phone as an SMS from your Twilio
phone number. The SMS will contain the alert name. You may use either Twilio SMS
or Twilio Copilot to send the message, controlled by the ``twilio_use_copilot``
option.

Note that when twilio copilot *is* used the ``twilio_message_service_sid`` option is required. Likewise, when *not* using twilio copilot, the ``twilio_from_number`` option is required.
Note that when Twilio Copilot *is* used the ``twilio_message_service_sid``
option is required. Likewise, when *not* using Twilio Copilot, the
``twilio_from_number`` option is required.

The alerter requires the following options:

``twilio_account_sid``: This is sid of your twilio account.
``twilio_account_sid``: The SID of your Twilio account.

``twilio_auth_token``: Auth token assosiated with your twilio account.
``twilio_auth_token``: Auth token associated with your Twilio account.

``twilio_to_number``: The phone number where you would like send the notification.
``twilio_to_number``: The phone number where you would like to send the alert.

Either one of
* ``twilio_from_number``: Your twilio phone number from which message will be sent.
* ``twilio_message_service_sid``: The SID of your twilio message service.
* ``twilio_from_number``: The Twilio phone number from which the alert will be sent.
* ``twilio_message_service_sid``: The SID of your Twilio message service.

Optional:

``twilio_use_copilot``: Whether or not to use twilio copilot, False by default.
``twilio_use_copilot``: Whether or not to use Twilio Copilot, False by default.

Example With Copilot usage::
Example with Copilot usage::

alert:
- "twilio"
Expand All @@ -2890,7 +2894,7 @@ Example With Copilot usage::
twilio_account_sid: "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567"
twilio_message_service_sid: "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567"

Example With SMS usage::
Example with SMS usage::

alert:
- "twilio"
Expand Down

0 comments on commit 23d1c75

Please sign in to comment.