![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
fluent-plugin-twilio
Advanced tools
Fluentd Output plugin to make a call with twilio. Twilio free trial is available to signup at the official website. You can try call to your cellphone for free!
fluent-plugin-twilio | fluentd | ruby |
---|---|---|
>= 0.1.0 | >= v0.14.15 | >= 2.1 |
< 0.1.0 | >= v0.12.0 | >= 1.9 |
install with gem or td-agent-gem command as:
### for local fluentd
$ gem install fluent-plugin-twilio
### for td-agent2 (standard)
$ sudo td-agent-gem install fluent-plugin-twilio
fluent_logger.post('notify.call', {
:number => '+8109012345678', # Required if default_number is brank
:message => 'Hello World!' # Required if default_message is brank
})
<source>
@type http
port 8888
</source>
<match notify.call>
@type twilio
# Set account Sid and Token from twilio.com/user/account
account_sid TWILIO_ACCOUNT_SID # Required
auth_token TWILIO_AUTH_TOKEN # Required
# Set caller ID with country code
from_number +81312345678 # Required
# Set defaults of making outbound call.
# To call multiple phone at the same time, list them with comma like below.
default_number +819012345678,+818012345678 # Optional
default_message "call from fluentd." # Optional
# Set log level to prevent info error
@log_level warn
</match>
You can customize message using filter_record_transformer.
<source>
@type http
port 8888
@label @NOTIFY
</source>
<label @NOTIFY>
<filter>
@type record_transformer
<record>
message Hi. ${record["name"]} has made a order of ${record["item"]} just now.
</record>
</filter>
<match>
@type twilio
# snip ...
</match>
</label>
# test call to +819012345678 and say "Help! System ABC has down." with woman voice.
$ curl http://localhost:8888/notify.call -F 'json={"number":"+819012345678","voice":"woman","message":"Help! System ABC has down."}'
# check twilio activity log
$ tail -f /var/log/td-agent/td-agent.log
Pull requests are very welcome!!
Copyright © 2013- Kentaro Yoshida (@yoshi_ken)
Apache License, Version 2.0
FAQs
Unknown package
We found that fluent-plugin-twilio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.