Enable custom threshold and inventory rules in Serverless (#170351)

Closes #170327
Relates to https://github.com/elastic/kibana/issues/168034

## Summary

This PR enables the custom threshold and inventory rules in Serverless.

|Custom threshold rule|Inventory rule|
|---|---|

|![image](1d1a65e0-78f5-4550-a620-9342b28ec5a9)|

Related PR: [Add the query delay mechanism to the inventory rule type
and change consumer to
Observability](https://github.com/elastic/kibana/pull/170628)
This commit is contained in:
Maryam Saeidi 2023-11-10 17:47:35 +01:00 committed by GitHub
parent 2c90ba9725
commit 4df1cbe124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ export const config: PluginConfigDescriptor<InfraConfig> = {
}),
inventoryThresholdAlertRuleEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
}),
metricThresholdAlertRuleEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
@ -110,7 +110,7 @@ export const config: PluginConfigDescriptor<InfraConfig> = {
}),
alertsAndRulesDropdownEnabled: offeringBasedSchema({
traditional: schema.boolean({ defaultValue: true }),
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
}),
}),
}),

View file

@ -48,7 +48,7 @@ const configSchema = schema.object({
}),
thresholdRule: schema.object({
enabled: offeringBasedSchema({
serverless: schema.boolean({ defaultValue: false }),
serverless: schema.boolean({ defaultValue: true }),
traditional: schema.boolean({ defaultValue: true }),
}),
}),