|
17 | 17 | # alerts only if the check fails x times within the last y attempts |
18 | 18 | # where x is the threshold and y is the window. |
19 | 19 | # |
| 20 | +# content_match |
| 21 | +# The (optional) content_match parameter will allow the check |
| 22 | +# to look for a particular string within the response. The check |
| 23 | +# will report as DOWN if the string is not found. |
| 24 | +# content_match uses Python regular expressions which means that |
| 25 | +# you will have to escape the following "special" characters with |
| 26 | +# a backslash (\) if you're trying to match them in your content: |
| 27 | +# . ^ $ * + ? { } [ ] \ | ( ) |
| 28 | +# |
20 | 29 | # include_content |
21 | 30 | # The (optional) collect_response_time parameter will instruct the |
22 | 31 | # check to create a metric 'network.http.response_time', tagged with |
|
69 | 78 | # timeout => 5, |
70 | 79 | # threshold => 1, |
71 | 80 | # window => 1, |
| 81 | +# content_match => '^(Bread|Apples) float(s)? in water' |
72 | 82 | # include_content => true, |
73 | 83 | # collect_response_time => true, |
74 | 84 | # contact => 'pagerduty', |
|
84 | 94 | $timeout = 1, |
85 | 95 | $threshold = undef, |
86 | 96 | $window = undef, |
| 97 | + $content_match = undef, |
87 | 98 | $include_content = false, |
88 | 99 | $collect_response_time = true, |
89 | 100 | $disable_ssl_validation = false, |
|
103 | 114 | 'timeout' => $timeout, |
104 | 115 | 'threshold' => $threshold, |
105 | 116 | 'window' => $window, |
| 117 | + 'content_match' => $content_match, |
106 | 118 | 'include_content' => $include_content, |
107 | 119 | 'collect_response_time' => $collect_response_time, |
108 | 120 | 'disable_ssl_validation' => $disable_ssl_validation, |
|
0 commit comments