Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OAS] Add alert_delay alerting rule option for Stack and Observability rules #176941

Merged
merged 5 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions x-pack/plugins/alerting/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -2592,6 +2592,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2642,6 +2645,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2692,6 +2698,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2740,6 +2749,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2788,6 +2800,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2836,6 +2851,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2884,6 +2902,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2932,6 +2953,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -2982,6 +3006,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -3030,6 +3057,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -3077,6 +3107,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -3127,6 +3160,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -3225,6 +3261,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4322,6 +4361,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4370,6 +4412,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4420,6 +4465,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4517,6 +4565,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4567,6 +4618,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4617,6 +4671,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"consumer": {
"$ref": "#/components/schemas/consumer"
},
Expand Down Expand Up @@ -4872,6 +4929,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"
Expand Down Expand Up @@ -6566,6 +6637,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.",
Expand Down Expand Up @@ -6857,6 +6931,9 @@
"actions": {
"$ref": "#/components/schemas/actions"
},
"alert_delay": {
"$ref": "#/components/schemas/alert_delay"
},
"name": {
"type": "string",
"description": "The name of the rule.",
Expand Down Expand Up @@ -7254,6 +7331,9 @@
}
}
],
"alert_delay": {
"active": 3
},
"consumer": "alerts",
"name": "my rule",
"params": {
Expand Down Expand Up @@ -7500,6 +7580,9 @@
}
}
],
"alert_delay": {
"active": 3
},
"api_key_created_by_user": false,
"api_key_owner": "elastic",
"consumer": "alerts",
Expand Down
Loading