line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Fastly::Healthcheck; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
13
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
94
|
|
4
|
4
|
|
|
4
|
|
11
|
use base qw(Net::Fastly::BelongsToServiceAndVersion); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
282
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Net::Fastly::Healthcheck->mk_accessors(qw(service_id name comment method path host http_version timeout window threshold)); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Net::Fastly::Healthcheck - Representation of a way of keeping track of any of your hosts which are down |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 ACCESSORS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head2 service_id |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
The id of the service this belongs to. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head2 version |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
The number of the version this belongs to. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 name |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
The name of this healthcheck |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 comment |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
A free form comment field |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 method |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Which HTTP method to use |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 host |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Which host to check |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 path |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Path to check |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 http_version |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1.0 or 1.1 (defaults to 1.1) |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 timeout |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Timeout in seconds |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 window |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
How large window to keep track for healthchecks |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 threshold |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
How many have to be ok for it work |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
1; |