From 948cff7c30b5801540378242c907b9908b260264 Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 14 Feb 2024 11:59:25 -0800 Subject: [PATCH 1/4] [OAS] Add alert_delay alerting rule option --- .../examples/create_index_threshold_rule_request.yaml | 2 ++ .../examples/create_index_threshold_rule_response.yaml | 2 ++ .../docs/openapi/components/schemas/alert_delay.yaml | 9 +++++++++ .../components/schemas/create_es_query_rule_request.yaml | 2 ++ .../schemas/create_geo_containment_rule_request.yaml | 2 ++ .../schemas/create_index_threshold_rule_request.yaml | 2 ++ .../components/schemas/rule_response_properties.yaml | 2 ++ .../openapi/components/schemas/update_rule_request.yaml | 2 ++ 8 files changed, 23 insertions(+) create mode 100644 x-pack/plugins/alerting/docs/openapi/components/schemas/alert_delay.yaml diff --git a/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_request.yaml index 801d298c5f922..53859628f57a1 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_request.yaml @@ -9,6 +9,8 @@ value: params: level: info message: "Rule '{{rule.name}}' is active for group '{{context.group}}':\n\n- Value: {{context.value}}\n- Conditions Met: {{context.conditions}} over {{rule.params.timeWindowSize}}{{rule.params.timeWindowUnit}}\n- Timestamp: {{context.date}}" + alert_delay: + active: 3 consumer: alerts name: my rule params: diff --git a/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_response.yaml b/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_response.yaml index cf755e08d3bfd..da172f5df9ff7 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_response.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/examples/create_index_threshold_rule_response.yaml @@ -12,6 +12,8 @@ value: params: level: info message: "Rule {{rule.name}} is active for group {{context.group} :\n\n- Value: {{context.value}}\n- Conditions Met: {{context.conditions}} over {{rule.params.timeWindowSize}}{{rule.params.timeWindowUnit}}\n- Timestamp: {{context.date}}" + alert_delay: + active: 3 api_key_created_by_user: false api_key_owner: elastic consumer: alerts diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/alert_delay.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/alert_delay.yaml new file mode 100644 index 0000000000000..45fe6f6f0eb5b --- /dev/null +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/alert_delay.yaml @@ -0,0 +1,9 @@ +type: object +description: Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions. +required: + - active +properties: + active: + type: number + description: The number of consecutive runs that must meet the rule conditions. + example: 3 \ No newline at end of file diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_es_query_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_es_query_rule_request.yaml index d8ca95e1e482d..b3f86de78972b 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_es_query_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_es_query_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_geo_containment_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_geo_containment_rule_request.yaml index ed30fc5064f1b..bd875097a0653 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_geo_containment_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_geo_containment_rule_request.yaml @@ -12,6 +12,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_index_threshold_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_index_threshold_rule_request.yaml index d97f2c0f78e5c..b7fd292e5c4e8 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_index_threshold_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_index_threshold_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/rule_response_properties.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/rule_response_properties.yaml index 51310c87b6c5c..e48d316506ee0 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/rule_response_properties.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/rule_response_properties.yaml @@ -22,6 +22,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' api_key_created_by_user: type: boolean description: Indicates whether the API key that is associated with the rule was created by the user. diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/update_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/update_rule_request.yaml index 63293f76ca710..fb6bd33aa81da 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/update_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/update_rule_request.yaml @@ -9,6 +9,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' name: type: string description: The name of the rule. From 17fe3ded66639214f685929e15f27ed0c8179763 Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 14 Feb 2024 13:07:30 -0800 Subject: [PATCH 2/4] [OAS] Add alert_delay to ML and transform rules --- .../alerting/docs/openapi/bundled.json | 44 +++++++++++++++++++ .../alerting/docs/openapi/bundled.yaml | 30 +++++++++++++ ..._anomaly_detection_alert_rule_request.yaml | 2 + ...ly_detection_jobs_health_rule_request.yaml | 2 + .../create_transform_health_rule_request.yaml | 2 + 5 files changed, 80 insertions(+) diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.json b/x-pack/plugins/alerting/docs/openapi/bundled.json index 6092bfc5bf60c..e21132612d9a5 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.json +++ b/x-pack/plugins/alerting/docs/openapi/bundled.json @@ -2592,6 +2592,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2642,6 +2645,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2884,6 +2890,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2932,6 +2941,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2982,6 +2994,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4567,6 +4582,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4872,6 +4890,20 @@ } } }, + "alert_delay": { + "type": "object", + "description": "Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions.", + "required": [ + "active" + ], + "properties": { + "active": { + "type": "number", + "description": "The number of consecutive runs that must meet the rule conditions.", + "example": 3 + } + } + }, "consumer": { "type": "string", "description": "The name of the application or feature that owns the rule. For example: `alerts`, `apm`, `discover`, `infrastructure`, `logs`, `metrics`, `ml`, `monitoring`, `securitySolution`, `siem`, `stackAlerts`, or `uptime`.\n" @@ -6566,6 +6598,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "api_key_created_by_user": { "type": "boolean", "description": "Indicates whether the API key that is associated with the rule was created by the user.", @@ -6857,6 +6892,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "name": { "type": "string", "description": "The name of the rule.", @@ -7254,6 +7292,9 @@ } } ], + "alert_delay": { + "active": 3 + }, "consumer": "alerts", "name": "my rule", "params": { @@ -7500,6 +7541,9 @@ } } ], + "alert_delay": { + "active": 3 + }, "api_key_created_by_user": false, "api_key_owner": "elastic", "consumer": "alerts", diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.yaml b/x-pack/plugins/alerting/docs/openapi/bundled.yaml index f847686a2cced..7548712a83236 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.yaml +++ b/x-pack/plugins/alerting/docs/openapi/bundled.yaml @@ -1691,6 +1691,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1728,6 +1730,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1901,6 +1905,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1936,6 +1942,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1972,6 +1980,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -3121,6 +3131,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -3341,6 +3353,16 @@ components: description: A universally unique identifier (UUID) for the action. examples: - 1c7a1280-f28c-4e06-96b2-e4e5f05d1d61 + alert_delay: + type: object + description: Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions. + required: + - active + properties: + active: + type: number + description: The number of consecutive runs that must meet the rule conditions. + example: 3 consumer: type: string description: | @@ -4526,6 +4548,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' api_key_created_by_user: type: boolean description: Indicates whether the API key that is associated with the rule was created by the user. @@ -4729,6 +4753,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' name: type: string description: The name of the rule. @@ -5018,6 +5044,8 @@ components: - Value: {{context.value}} - Conditions Met: {{context.conditions}} over {{rule.params.timeWindowSize}}{{rule.params.timeWindowUnit}} - Timestamp: {{context.date}} + alert_delay: + active: 3 consumer: alerts name: my rule params: @@ -5223,6 +5251,8 @@ components: - Value: {{context.value}} - Conditions Met: {{context.conditions}} over {{rule.params.timeWindowSize}}{{rule.params.timeWindowUnit}} - Timestamp: {{context.date}} + alert_delay: + active: 3 api_key_created_by_user: false api_key_owner: elastic consumer: alerts diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_alert_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_alert_rule_request.yaml index d4bdb712f634d..27db1b6a72a53 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_alert_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_alert_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_jobs_health_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_jobs_health_rule_request.yaml index d9fd3b3a63ddb..01a6737bb7715 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_jobs_health_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_anomaly_detection_jobs_health_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_transform_health_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_transform_health_rule_request.yaml index ebe92de8c5cf2..a655db451ec84 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_transform_health_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_transform_health_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: From 4a4b6fc0682aeb6d908b75c31bedc3cd0daf46b8 Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 14 Feb 2024 13:15:01 -0800 Subject: [PATCH 3/4] [OAS] Add alert_delay to APM rules --- x-pack/plugins/alerting/docs/openapi/bundled.json | 12 ++++++++++++ x-pack/plugins/alerting/docs/openapi/bundled.yaml | 8 ++++++++ .../schemas/create_apm_anomaly_rule_request.yaml | 2 ++ .../schemas/create_apm_error_count_rule_request.yaml | 2 ++ ...create_apm_transaction_duration_rule_request.yaml | 2 ++ ...eate_apm_transaction_error_rate_rule_request.yaml | 2 ++ 6 files changed, 28 insertions(+) diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.json b/x-pack/plugins/alerting/docs/openapi/bundled.json index e21132612d9a5..64581c99a5388 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.json +++ b/x-pack/plugins/alerting/docs/openapi/bundled.json @@ -2698,6 +2698,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2746,6 +2749,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2794,6 +2800,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -2842,6 +2851,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.yaml b/x-pack/plugins/alerting/docs/openapi/bundled.yaml index 7548712a83236..dfc4eb3f00bae 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.yaml +++ b/x-pack/plugins/alerting/docs/openapi/bundled.yaml @@ -1768,6 +1768,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1802,6 +1804,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1836,6 +1840,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -1870,6 +1876,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_anomaly_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_anomaly_rule_request.yaml index 7b091dc1abfd2..60bb44cad45db 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_anomaly_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_anomaly_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_error_count_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_error_count_rule_request.yaml index 9bbe46301ceeb..482aa0e289e82 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_error_count_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_error_count_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_duration_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_duration_rule_request.yaml index eaff2c48ffbfc..f6757b188ee2c 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_duration_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_duration_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_error_rate_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_error_rate_rule_request.yaml index 505e5b69f57fd..239ded7c3cd85 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_error_rate_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_apm_transaction_error_rate_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: From 64a675c64fba3aabeefe4995d4f2606bafa74ac9 Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 14 Feb 2024 13:24:04 -0800 Subject: [PATCH 4/4] [OAS] Add alert_delay to Observability rules --- .../alerting/docs/openapi/bundled.json | 27 +++++++++++++++++++ .../alerting/docs/openapi/bundled.yaml | 18 +++++++++++++ .../create_infra_inventory_rule_request.yaml | 2 ++ ...ate_infra_metric_anomaly_rule_request.yaml | 2 ++ ...e_infra_metric_threshold_rule_request.yaml | 2 ++ .../create_log_threshold_rule_request.yaml | 2 ++ .../create_slo_burn_rate_rule_request.yaml | 2 ++ ...ynthetics_monitor_status_rule_request.yaml | 2 ++ ..._uptime_duration_anomaly_rule_request.yaml | 2 ++ ...s_uptime_tls_certificate_rule_request.yaml | 2 ++ ...te_uptime_monitor_status_rule_request.yaml | 2 ++ 11 files changed, 63 insertions(+) diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.json b/x-pack/plugins/alerting/docs/openapi/bundled.json index 64581c99a5388..71807860d383a 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.json +++ b/x-pack/plugins/alerting/docs/openapi/bundled.json @@ -3057,6 +3057,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -3104,6 +3107,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -3154,6 +3160,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -3252,6 +3261,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4349,6 +4361,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4397,6 +4412,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4447,6 +4465,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4544,6 +4565,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, @@ -4647,6 +4671,9 @@ "actions": { "$ref": "#/components/schemas/actions" }, + "alert_delay": { + "$ref": "#/components/schemas/alert_delay" + }, "consumer": { "$ref": "#/components/schemas/consumer" }, diff --git a/x-pack/plugins/alerting/docs/openapi/bundled.yaml b/x-pack/plugins/alerting/docs/openapi/bundled.yaml index dfc4eb3f00bae..e029e8550020f 100644 --- a/x-pack/plugins/alerting/docs/openapi/bundled.yaml +++ b/x-pack/plugins/alerting/docs/openapi/bundled.yaml @@ -2025,6 +2025,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -2058,6 +2060,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -2095,6 +2099,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -2165,6 +2171,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -2961,6 +2969,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -2995,6 +3005,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -3032,6 +3044,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -3102,6 +3116,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: @@ -3177,6 +3193,8 @@ components: properties: actions: $ref: '#/components/schemas/actions' + alert_delay: + $ref: '#/components/schemas/alert_delay' consumer: $ref: '#/components/schemas/consumer' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_inventory_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_inventory_rule_request.yaml index ddef0a3e4cdd1..f5b967c559f81 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_inventory_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_inventory_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_anomaly_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_anomaly_rule_request.yaml index 4c80967fbe26a..0beda5b40555e 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_anomaly_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_anomaly_rule_request.yaml @@ -9,6 +9,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_threshold_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_threshold_rule_request.yaml index 775015ca6006e..8d37ab9defc6e 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_threshold_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_infra_metric_threshold_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_log_threshold_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_log_threshold_rule_request.yaml index ce4baaf78ac68..35aa5805ad967 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_log_threshold_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_log_threshold_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_slo_burn_rate_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_slo_burn_rate_rule_request.yaml index dcb6e5932a60d..e3a7467109600 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_slo_burn_rate_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_slo_burn_rate_rule_request.yaml @@ -14,6 +14,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_monitor_status_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_monitor_status_rule_request.yaml index d392630259d19..4c79b44a3d869 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_monitor_status_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_monitor_status_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_duration_anomaly_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_duration_anomaly_rule_request.yaml index 76fb45e99bd9a..e9746f14f0ecf 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_duration_anomaly_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_duration_anomaly_rule_request.yaml @@ -12,6 +12,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_tls_certificate_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_tls_certificate_rule_request.yaml index 883342ce74619..8c71961b4961d 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_tls_certificate_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_synthetics_uptime_tls_certificate_rule_request.yaml @@ -11,6 +11,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: diff --git a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_uptime_monitor_status_rule_request.yaml b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_uptime_monitor_status_rule_request.yaml index 95d8efd6d1c17..70f3b5b8b05ad 100644 --- a/x-pack/plugins/alerting/docs/openapi/components/schemas/create_uptime_monitor_status_rule_request.yaml +++ b/x-pack/plugins/alerting/docs/openapi/components/schemas/create_uptime_monitor_status_rule_request.yaml @@ -10,6 +10,8 @@ required: properties: actions: $ref: 'actions.yaml' + alert_delay: + $ref: 'alert_delay.yaml' consumer: $ref: 'consumer.yaml' enabled: