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.", 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" ] }