From 84dbe9bccffbeaab8177d7f333014575e528e240 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:31:18 +0000 Subject: [PATCH 1/3] [CI] Auto-commit changed files from 'node scripts/lint_ts_projects --fix' --- x-pack/plugins/observability_solution/apm/tsconfig.json | 1 + x-pack/test/tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/apm/tsconfig.json b/x-pack/plugins/observability_solution/apm/tsconfig.json index b2fda13c3f76f..86572047689c4 100644 --- a/x-pack/plugins/observability_solution/apm/tsconfig.json +++ b/x-pack/plugins/observability_solution/apm/tsconfig.json @@ -129,6 +129,7 @@ "@kbn/alerting-comparators", "@kbn/saved-search-component", "@kbn/saved-search-plugin", + "@kbn/response-ops-rule-params", ], "exclude": ["target/**/*"] } diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index ce202abc9738a..3effda1dbee3e 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -190,6 +190,7 @@ "@kbn/sse-utils-server", "@kbn/gen-ai-functional-testing", "@kbn/integration-assistant-plugin", - "@kbn/core-elasticsearch-server" + "@kbn/core-elasticsearch-server", + "@kbn/response-ops-rule-params" ] } From 024689e3c7cff7675110d349fd9c9223e0a45ff5 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:34:36 +0000 Subject: [PATCH 2/3] [CI] Auto-commit changed files from 'node scripts/capture_oas_snapshot --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --include-path /api/dashboards --update' --- oas_docs/bundle.json | 1328 ++++++++++++++++++++++++++++--- oas_docs/bundle.serverless.json | 1328 ++++++++++++++++++++++++++++--- 2 files changed, 2460 insertions(+), 196 deletions(-) diff --git a/oas_docs/bundle.json b/oas_docs/bundle.json index 320730edc972e..6de0b254e5d50 100644 --- a/oas_docs/bundle.json +++ b/oas_docs/bundle.json @@ -1466,9 +1466,292 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] }, "revision": { "description": "The rule revision number.", @@ -2640,55 +2923,338 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" - }, - "revision": { - "description": "The rule revision number.", - "type": "number" - }, - "rule_type_id": { - "description": "The rule type identifier.", - "type": "string" - }, - "running": { - "description": "Indicates whether the rule is running.", - "nullable": true, - "type": "boolean" - }, - "schedule": { - "additionalProperties": false, - "properties": { - "interval": { - "description": "The interval is specified in seconds, minutes, hours, or days.", - "type": "string" - } - }, - "required": [ - "interval" - ], - "type": "object" - }, - "scheduled_task_id": { - "description": "Identifier of the scheduled task.", - "type": "string" - }, - "snooze_schedule": { - "items": { - "additionalProperties": false, - "properties": { - "duration": { - "description": "Duration of the rule snooze schedule.", - "type": "number" - }, - "id": { - "description": "Identifier of the rule snooze schedule.", - "type": "string" - }, - "rRule": { - "additionalProperties": false, - "properties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] + }, + "revision": { + "description": "The rule revision number.", + "type": "number" + }, + "rule_type_id": { + "description": "The rule type identifier.", + "type": "string" + }, + "running": { + "description": "Indicates whether the rule is running.", + "nullable": true, + "type": "boolean" + }, + "schedule": { + "additionalProperties": false, + "properties": { + "interval": { + "description": "The interval is specified in seconds, minutes, hours, or days.", + "type": "string" + } + }, + "required": [ + "interval" + ], + "type": "object" + }, + "scheduled_task_id": { + "description": "Identifier of the scheduled task.", + "type": "string" + }, + "snooze_schedule": { + "items": { + "additionalProperties": false, + "properties": { + "duration": { + "description": "Duration of the rule snooze schedule.", + "type": "number" + }, + "id": { + "description": "Identifier of the rule snooze schedule.", + "type": "string" + }, + "rRule": { + "additionalProperties": false, + "properties": { "byhour": { "items": { "description": "Indicates hours of the day to recur.", @@ -3754,52 +4320,335 @@ } }, "required": [ - "history", - "calculated_metrics", - "last_run" + "history", + "calculated_metrics", + "last_run" + ], + "type": "object" + } + }, + "required": [ + "run" + ], + "type": "object" + }, + "mute_all": { + "description": "Indicates whether all alerts are muted.", + "type": "boolean" + }, + "muted_alert_ids": { + "items": { + "description": "List of identifiers of muted alerts. ", + "type": "string" + }, + "type": "array" + }, + "name": { + "description": " The name of the rule.", + "type": "string" + }, + "next_run": { + "description": "Date and time of the next run of the rule.", + "nullable": true, + "type": "string" + }, + "notify_when": { + "description": "Indicates how often alerts generate actions. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. NOTE: You cannot specify `notify_when` at both the rule and action level. The recommended method is to set it for each action. If you set it at the rule level then update the rule in Kibana, it is automatically changed to use action-specific values.", + "enum": [ + "onActionGroupChange", + "onActiveAlert", + "onThrottleInterval" + ], + "nullable": true, + "type": "string" + }, + "params": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" ], "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" } - }, - "required": [ - "run" - ], - "type": "object" - }, - "mute_all": { - "description": "Indicates whether all alerts are muted.", - "type": "boolean" - }, - "muted_alert_ids": { - "items": { - "description": "List of identifiers of muted alerts. ", - "type": "string" - }, - "type": "array" - }, - "name": { - "description": " The name of the rule.", - "type": "string" - }, - "next_run": { - "description": "Date and time of the next run of the rule.", - "nullable": true, - "type": "string" - }, - "notify_when": { - "description": "Indicates how often alerts generate actions. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. NOTE: You cannot specify `notify_when` at both the rule and action level. The recommended method is to set it for each action. If you set it at the rule level then update the rule in Kibana, it is automatically changed to use action-specific values.", - "enum": [ - "onActionGroupChange", - "onActiveAlert", - "onThrottleInterval" - ], - "nullable": true, - "type": "string" - }, - "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + ] }, "revision": { "description": "The rule revision number.", @@ -5151,9 +6000,292 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] }, "revision": { "description": "The rule revision number.", diff --git a/oas_docs/bundle.serverless.json b/oas_docs/bundle.serverless.json index b188ae0999b0d..b4bd4c7d247a1 100644 --- a/oas_docs/bundle.serverless.json +++ b/oas_docs/bundle.serverless.json @@ -1466,9 +1466,292 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] }, "revision": { "description": "The rule revision number.", @@ -2640,55 +2923,338 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" - }, - "revision": { - "description": "The rule revision number.", - "type": "number" - }, - "rule_type_id": { - "description": "The rule type identifier.", - "type": "string" - }, - "running": { - "description": "Indicates whether the rule is running.", - "nullable": true, - "type": "boolean" - }, - "schedule": { - "additionalProperties": false, - "properties": { - "interval": { - "description": "The interval is specified in seconds, minutes, hours, or days.", - "type": "string" - } - }, - "required": [ - "interval" - ], - "type": "object" - }, - "scheduled_task_id": { - "description": "Identifier of the scheduled task.", - "type": "string" - }, - "snooze_schedule": { - "items": { - "additionalProperties": false, - "properties": { - "duration": { - "description": "Duration of the rule snooze schedule.", - "type": "number" - }, - "id": { - "description": "Identifier of the rule snooze schedule.", - "type": "string" - }, - "rRule": { - "additionalProperties": false, - "properties": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] + }, + "revision": { + "description": "The rule revision number.", + "type": "number" + }, + "rule_type_id": { + "description": "The rule type identifier.", + "type": "string" + }, + "running": { + "description": "Indicates whether the rule is running.", + "nullable": true, + "type": "boolean" + }, + "schedule": { + "additionalProperties": false, + "properties": { + "interval": { + "description": "The interval is specified in seconds, minutes, hours, or days.", + "type": "string" + } + }, + "required": [ + "interval" + ], + "type": "object" + }, + "scheduled_task_id": { + "description": "Identifier of the scheduled task.", + "type": "string" + }, + "snooze_schedule": { + "items": { + "additionalProperties": false, + "properties": { + "duration": { + "description": "Duration of the rule snooze schedule.", + "type": "number" + }, + "id": { + "description": "Identifier of the rule snooze schedule.", + "type": "string" + }, + "rRule": { + "additionalProperties": false, + "properties": { "byhour": { "items": { "description": "Indicates hours of the day to recur.", @@ -3754,52 +4320,335 @@ } }, "required": [ - "history", - "calculated_metrics", - "last_run" + "history", + "calculated_metrics", + "last_run" + ], + "type": "object" + } + }, + "required": [ + "run" + ], + "type": "object" + }, + "mute_all": { + "description": "Indicates whether all alerts are muted.", + "type": "boolean" + }, + "muted_alert_ids": { + "items": { + "description": "List of identifiers of muted alerts. ", + "type": "string" + }, + "type": "array" + }, + "name": { + "description": " The name of the rule.", + "type": "string" + }, + "next_run": { + "description": "Date and time of the next run of the rule.", + "nullable": true, + "type": "string" + }, + "notify_when": { + "description": "Indicates how often alerts generate actions. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. NOTE: You cannot specify `notify_when` at both the rule and action level. The recommended method is to set it for each action. If you set it at the rule level then update the rule in Kibana, it is automatically changed to use action-specific values.", + "enum": [ + "onActionGroupChange", + "onActiveAlert", + "onThrottleInterval" + ], + "nullable": true, + "type": "string" + }, + "params": { + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" ], "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" } - }, - "required": [ - "run" - ], - "type": "object" - }, - "mute_all": { - "description": "Indicates whether all alerts are muted.", - "type": "boolean" - }, - "muted_alert_ids": { - "items": { - "description": "List of identifiers of muted alerts. ", - "type": "string" - }, - "type": "array" - }, - "name": { - "description": " The name of the rule.", - "type": "string" - }, - "next_run": { - "description": "Date and time of the next run of the rule.", - "nullable": true, - "type": "string" - }, - "notify_when": { - "description": "Indicates how often alerts generate actions. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. NOTE: You cannot specify `notify_when` at both the rule and action level. The recommended method is to set it for each action. If you set it at the rule level then update the rule in Kibana, it is automatically changed to use action-specific values.", - "enum": [ - "onActionGroupChange", - "onActiveAlert", - "onThrottleInterval" - ], - "nullable": true, - "type": "string" - }, - "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + ] }, "revision": { "description": "The rule revision number.", @@ -5151,9 +6000,292 @@ "type": "string" }, "params": { - "additionalProperties": {}, - "description": "The parameters for the rule.", - "type": "object" + "anyOf": [ + { + "additionalProperties": false, + "properties": { + "aggregationType": { + "enum": [ + "avg", + "95th", + "99th" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "aggregationType", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "anomalyDetectorTypes": { + "items": { + "enum": [ + "txLatency", + "txThroughput", + "txFailureRate" + ], + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "anomalySeverityType": { + "enum": [ + "critical", + "major", + "minor", + "warning" + ], + "type": "string" + }, + "environment": { + "type": "string" + }, + "serviceName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "environment", + "anomalySeverityType" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "errorGroupingKey": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": false, + "properties": { + "environment": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "searchConfiguration": { + "additionalProperties": false, + "properties": { + "query": { + "additionalProperties": false, + "properties": { + "language": { + "type": "string" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "additionalProperties": {}, + "type": "object" + } + ] + } + }, + "required": [ + "query", + "language" + ], + "type": "object" + } + }, + "required": [ + "query" + ], + "type": "object" + }, + "serviceName": { + "type": "string" + }, + "threshold": { + "type": "number" + }, + "transactionName": { + "type": "string" + }, + "transactionType": { + "type": "string" + }, + "useKqlFilter": { + "type": "boolean" + }, + "windowSize": { + "type": "number" + }, + "windowUnit": { + "type": "string" + } + }, + "required": [ + "windowSize", + "windowUnit", + "threshold", + "environment" + ], + "type": "object" + }, + { + "additionalProperties": {}, + "description": "The parameters for the rule.", + "type": "object" + } + ] }, "revision": { "description": "The rule revision number.", From bcdccabe481296a00aa86874d8ce9f85fc1bd81e Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:41:42 +0000 Subject: [PATCH 3/3] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../rule_params/transaction_duration/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/response-ops/rule_params/transaction_duration/index.ts b/packages/response-ops/rule_params/transaction_duration/index.ts index b967fcafad105..1f319b38a60fa 100644 --- a/packages/response-ops/rule_params/transaction_duration/index.ts +++ b/packages/response-ops/rule_params/transaction_duration/index.ts @@ -1,3 +1,12 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + export { transactionDurationParamsSchema } from './latest'; export { transactionDurationParamsSchema as transactionDurationParamsSchemaV1 } from './v1';