@@ -32,6 +32,7 @@ module Agents |
||
| 32 | 32 |
"url": "...", |
| 33 | 33 |
"status": "...", |
| 34 | 34 |
"elapsed_time": "...", |
| 35 |
+ "website_title", |
|
| 35 | 36 |
"headers": {
|
| 36 | 37 |
"...": "..." |
| 37 | 38 |
} |
@@ -46,6 +47,7 @@ module Agents |
||
| 46 | 47 |
{
|
| 47 | 48 |
'url' => "http://google.com", |
| 48 | 49 |
'disable_redirect_follow' => "true", |
| 50 |
+ 'website_title' => "" |
|
| 49 | 51 |
} |
| 50 | 52 |
end |
| 51 | 53 |
|
@@ -80,7 +82,7 @@ module Agents |
||
| 80 | 82 |
current_status = measured_result ? measured_result.status.to_s : 0 |
| 81 | 83 |
return if options['changes_only'] == 'true' && current_status == memory['last_status'].to_s |
| 82 | 84 |
|
| 83 |
- payload = { 'url' => url, 'response_received' => false, 'elapsed_time' => total_time }
|
|
| 85 |
+ payload = { 'url' => url, 'response_received' => false, 'elapsed_time' => total_time, 'website_title' => options['website_title'] }
|
|
| 84 | 86 |
|
| 85 | 87 |
# Deal with failures |
| 86 | 88 |
if current_status != 0 |