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:
139
139
description : Express warning threshold for the HTTP check in days
140
140
value :
141
141
type : integer
142
+ example : 14
142
143
- name : days_critical
143
144
description : Express critical threshold for the HTTP check in days
144
145
value :
145
146
type : integer
147
+ example : 7
146
148
- name : seconds_warning
147
149
description : |
148
150
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():
32
32
return True
33
33
34
34
35
+ def instance_days_critical ():
36
+ return 7
37
+
38
+
39
+ def instance_days_warning ():
40
+ return 14
41
+
42
+
35
43
def instance_disable_generic_tags ():
36
44
return False
37
45
Original file line number Diff line number Diff line change @@ -153,15 +153,15 @@ instances:
153
153
#
154
154
# tls_retrieve_non_validated_cert: false
155
155
156
- ## @param days_warning - integer - optional
156
+ ## @param days_warning - integer - optional - default: 14
157
157
## Express warning threshold for the HTTP check in days
158
158
#
159
- # days_warning: <DAYS_WARNING>
159
+ # days_warning: 14
160
160
161
- ## @param days_critical - integer - optional
161
+ ## @param days_critical - integer - optional - default: 7
162
162
## Express critical threshold for the HTTP check in days
163
163
#
164
- # days_critical: <DAYS_CRITICAL>
164
+ # days_critical: 7
165
165
166
166
## @param seconds_warning - integer - optional
167
167
## Alternatively to days_warning, seconds_warning expresses
You can’t perform that action at this time.
0 commit comments