File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
datadog_checks/http_check Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,12 @@ files:
139139 description : Express warning threshold for the HTTP check in days
140140 value :
141141 type : integer
142+ example : 14
142143 - name : days_critical
143144 description : Express critical threshold for the HTTP check in days
144145 value :
145146 type : integer
147+ example : 7
146148 - name : seconds_warning
147149 description : |
148150 Alternatively to days_warning, seconds_warning expresses
Original file line number Diff line number Diff line change 1+ Add defaults for `days_critical` and `days_warning` config options
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ def instance_collect_response_time():
3232 return True
3333
3434
35+ def instance_days_critical ():
36+ return 7
37+
38+
39+ def instance_days_warning ():
40+ return 14
41+
42+
3543def instance_disable_generic_tags ():
3644 return False
3745
Original file line number Diff line number Diff line change @@ -153,15 +153,15 @@ instances:
153153 #
154154 # tls_retrieve_non_validated_cert: false
155155
156- ## @param days_warning - integer - optional
156+ ## @param days_warning - integer - optional - default: 14
157157 ## Express warning threshold for the HTTP check in days
158158 #
159- # days_warning: <DAYS_WARNING>
159+ # days_warning: 14
160160
161- ## @param days_critical - integer - optional
161+ ## @param days_critical - integer - optional - default: 7
162162 ## Express critical threshold for the HTTP check in days
163163 #
164- # days_critical: <DAYS_CRITICAL>
164+ # days_critical: 7
165165
166166 ## @param seconds_warning - integer - optional
167167 ## Alternatively to days_warning, seconds_warning expresses
You can’t perform that action at this time.
0 commit comments