Anomaly detector custom query

Please help me i am making detector with custom filter

Choose a subset of your data source to focus your data stream and reduce noisy data.
Use the visual editor to create a simple filter, or use the Elasticsearch query DSL to create more advanced filters.

{
“query”: {
“bool”: {
“must”: ,
“filter”: [
{
“bool”: {
“should”: [
{
“range”: {
“time_backend_response”: {
“gt”: 5000
}
}
}
],
“minimum_should_match”: 1
}
}
],
“should”: ,
“must_not”:

but still this gives not-right syntax
which syntax should be used here it is KQL query that working right in Discover query
Please help how to do this