| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Monitor::V1; | ||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use parent 'Twilio::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 4 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 4 | my ($class, $domain) = @_; | |||||||||
| 13 | 4 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 4 | $self->{version} = 'v1'; | |||||||||
| 15 | 4 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 2 | ▶ | sub alerts { | ||||||||
|
Subroutine
alerts: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 2 | my ($self, $sid) = @_; | |||||||||
| 21 | 2 | require Twilio::Rest::Monitor::V1::Alert; | |||||||||
| 22 | 2 | my $list = Twilio::Rest::Monitor::V1::AlertList->new($self); | |||||||||
| 23 | 2 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 2 | ▶ | sub events { | ||||||||
|
Subroutine
events: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 27 | 2 | my ($self, $sid) = @_; | |||||||||
| 28 | 2 | require Twilio::Rest::Monitor::V1::Event; | |||||||||
| 29 | 2 | my $list = Twilio::Rest::Monitor::V1::EventList->new($self); | |||||||||
| 30 | 2 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 2 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||