|
37 | 37 | # check to create a metric 'network.http.response_time', tagged with |
38 | 38 | # the url, reporting the response time in seconds. |
39 | 39 | # |
| 40 | +# http_response_status_code |
| 41 | +# The (optional) http_response_status_code parameter will instruct the check |
| 42 | +# to look for a particular HTTP response status code or a Regex identifying |
| 43 | +# a set of possible status codes. |
| 44 | +# The check will report as DOWN if status code returned differs. |
| 45 | +# This defaults to 1xx, 2xx and 3xx HTTP status code: (1|2|3)\d\d. |
| 46 | +# |
40 | 47 | # collect_response_time |
41 | 48 | # The (optional) collect_response_time parameter will instruct the |
42 | 49 | # check to create a metric 'network.http.response_time', tagged with |
|
144 | 151 | $window = undef, |
145 | 152 | $content_match = undef, |
146 | 153 | $include_content = false, |
| 154 | + $http_response_status_code = undef, |
147 | 155 | $collect_response_time = true, |
148 | 156 | $disable_ssl_validation = false, |
149 | 157 | $skip_event = true, |
|
169 | 177 | 'window' => $window, |
170 | 178 | 'content_match' => $content_match, |
171 | 179 | 'include_content' => $include_content, |
| 180 | + 'http_response_status_code' => $http_response_status_code, |
172 | 181 | 'collect_response_time' => $collect_response_time, |
173 | 182 | 'disable_ssl_validation' => $disable_ssl_validation, |
174 | 183 | 'skip_event' => $skip_event, |
|
0 commit comments