twilio

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 6 Imported by: 0

README

= Twilio plugin
:toc: macro

The twilio plugin provides alerts that use the Twilio API.

== Alerts

=== twilio.sms

[source,goplum]
----
alert twilio.sms "example" {
  sid = "twilio sid"
  token = "twilio token"
  from = "+01 867 5309"
  to = "+01 867 5309"
}
----

Sends SMS alerts using the Twilio API. You must have a funded Twilio account, and configure the
SID, Token, and From/To phone numbers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

func (Plugin) Alert added in v0.2.0

func (p Plugin) Alert(kind string) goplum.Alert

func (Plugin) Check added in v0.2.0

func (p Plugin) Check(_ string) goplum.Check

type SmsAlert

type SmsAlert struct {
	To    string
	From  string
	Sid   string
	Token string
}

func (SmsAlert) Send

func (n SmsAlert) Send(details goplum.AlertDetails) error

func (SmsAlert) Validate added in v0.2.0

func (n SmsAlert) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL