6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/checks/fastly.rb', line 6
def generate_checks(url)
[
{
:type => "service",
:vendor =>"Fastly",
:product =>"Fastly",
:match_details =>"header",
:version => nil,
:match_type => :content_headers,
:match_content => /x-fastly-backend-reqs/i,
:paths => ["#{url}"]
},
{
:type => "service",
:vendor =>"Fastly",
:product =>"Fastly",
:match_details =>"error content in page",
:version => nil,
:hide => true,
:match_type => :content_body,
:match_content => /<title>Fastly error: unknown domain/i,
:examples => ["http://151.101.1.224:80"],
:verify => ["ZXRzeSNJbnRyaWd1ZTo6RW50aXR5OjpVcmkjaHR0cDovLzE1MS4xMDEuMS4yMjQ6ODA="],
:paths => ["#{url}"]
}
]
end
|