@@ -31,14 +31,14 @@ Feature: Monitors
31
31
@generated @skip
32
32
Scenario : Create a monitor returns "Bad Request" response
33
33
Given new "CreateMonitor" request
34
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null , "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
34
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100" , "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
35
35
When the request is sent
36
36
Then the response status is 400 Bad Request
37
37
38
38
@generated @skip
39
39
Scenario : Create a monitor returns "OK" response
40
40
Given new "CreateMonitor" request
41
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null , "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
41
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100" , "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
42
42
When the request is sent
43
43
Then the response status is 200 OK
44
44
@@ -67,23 +67,23 @@ Feature: Monitors
67
67
Scenario : Edit a monitor returns "Bad Request" response
68
68
Given new "UpdateMonitor" request
69
69
And request contains "monitor_id" parameter from "<PATH>"
70
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
70
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
71
71
When the request is sent
72
72
Then the response status is 400 Bad Request
73
73
74
74
@generated @skip
75
75
Scenario : Edit a monitor returns "Monitor Not Found error" response
76
76
Given new "UpdateMonitor" request
77
77
And request contains "monitor_id" parameter from "<PATH>"
78
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
78
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
79
79
When the request is sent
80
80
Then the response status is 404 Monitor Not Found error
81
81
82
82
@generated @skip
83
83
Scenario : Edit a monitor returns "OK" response
84
84
Given new "UpdateMonitor" request
85
85
And request contains "monitor_id" parameter from "<PATH>"
86
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
86
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null, "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
87
87
When the request is sent
88
88
Then the response status is 200 OK
89
89
@@ -122,13 +122,13 @@ Feature: Monitors
122
122
@generated @skip
123
123
Scenario : Validate a monitor returns "Invalid JSON" response
124
124
Given new "ValidateMonitor" request
125
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null , "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
125
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100" , "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
126
126
When the request is sent
127
127
Then the response status is 400 Invalid JSON
128
128
129
129
@generated @skip
130
130
Scenario : Validate a monitor returns "OK" response
131
131
Given new "ValidateMonitor" request
132
- And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : null , "restricted_roles" : [null], "tags" : [null], "type" : "composite " }
132
+ And body with value {"message" : null, "name" : null, "options" : {"enable_logs_sample" : null, "escalation_message" : "none" , "evaluation_delay" : null, "groupby_simple_monitor" : null, "include_tags" : true, "locked" : null, "min_failure_duration" : 0, "min_location_failed" : 1, "new_host_delay" : 300, "no_data_timeframe" : null, "notify_audit" : false, "notify_no_data" : false, "renotify_interval" : "none" , "require_full_window" : null, "silenced" : null, "synthetics_check_id" : null, "threshold_windows" : {"recovery_window" : null, "trigger_window" : null}, "thresholds" : {"critical" : null, "critical_recovery" : null, "ok" : null, "unknown" : null, "warning" : null, "warning_recovery" : null}, "timeout_h" : "none" }, "priority" : null, "query" : "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100" , "restricted_roles" : [null], "tags" : [null], "type" : "metric alert " }
133
133
When the request is sent
134
134
Then the response status is 200 OK
0 commit comments