elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.63k stars 8.23k forks source link

[ResponseOps][MW] Cannot create MW when setting a custom schedule for every month or year #198774

Open cnasikas opened 1 week ago

cnasikas commented 1 week ago

If I try to create an MW with a repeating schedule and set the "Every" to monthly or yearly I get the following errors:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Failed to update maintenance window by id: fcb84159-cda3-462b-98b7-25640e32135b, Error: Error: [attributes.rRule.bymonthday]: expected value of type [number] but got [Array]: Bad Request: [attributes.rRule.bymonthday]: expected value of type [number] but got [Array]: Bad Request"
}
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Failed to create maintenance window, Error: Error: [attributes.rRule.bymonth]: expected value of type [number] but got [Array]: Bad Request: [attributes.rRule.bymonth]: expected value of type [number] but got [Array]: Bad Request"
}

https://github.com/user-attachments/assets/899a19a4-6d45-4856-81ac-fb0d36ec134d

elasticmachine commented 1 week ago

Pinging @elastic/response-ops (Team:ResponseOps)