Language and indent tweaks

Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
This commit is contained in:
keithhc2 2022-03-16 13:02:07 -07:00
parent f8e12ce3b5
commit efe96c083b
1 changed files with 63 additions and 63 deletions

View File

@ -370,47 +370,47 @@ POST _plugins/_anomaly_detection/detectors/_validate/detector
"description": "Test detector", "description": "Test detector",
"time_field": "timestamp", "time_field": "timestamp",
"indices": [ "indices": [
"server_log*" "server_log*"
], ],
"feature_attributes": [ "feature_attributes": [
{ {
"feature_name": "test", "feature_name": "test",
"feature_enabled": true, "feature_enabled": true,
"aggregation_query": { "aggregation_query": {
"test": { "test": {
"sum": { "sum": {
"field": "value" "field": "value"
}
}
} }
} }
}
}
], ],
"filter_query": { "filter_query": {
"bool": { "bool": {
"filter": [ "filter": [
{ {
"range": { "range": {
"value": { "value": {
"gt": 1 "gt": 1
} }
} }
}
],
"adjust_pure_negative": true,
"boost": 1
} }
],
"adjust_pure_negative": true,
"boost": 1
}
}, },
"detection_interval": { "detection_interval": {
"period": { "period": {
"interval": 1, "interval": 1,
"unit": "Minutes" "unit": "Minutes"
} }
}, },
"window_delay": { "window_delay": {
"period": { "period": {
"interval": 1, "interval": 1,
"unit": "Minutes" "unit": "Minutes"
} }
} }
} }
``` ```
@ -449,56 +449,56 @@ POST _plugins/_anomaly_detection/detectors/_validate/model
"description": "Test detector", "description": "Test detector",
"time_field": "timestamp", "time_field": "timestamp",
"indices": [ "indices": [
"server_log*" "server_log*"
], ],
"feature_attributes": [ "feature_attributes": [
{ {
"feature_name": "test", "feature_name": "test",
"feature_enabled": true, "feature_enabled": true,
"aggregation_query": { "aggregation_query": {
"test": { "test": {
"sum": { "sum": {
"field": "value" "field": "value"
}
}
} }
} }
}
}
], ],
"filter_query": { "filter_query": {
"bool": { "bool": {
"filter": [ "filter": [
{ {
"range": { "range": {
"value": { "value": {
"gt": 1 "gt": 1
} }
} }
}
],
"adjust_pure_negative": true,
"boost": 1
} }
],
"adjust_pure_negative": true,
"boost": 1
}
}, },
"detection_interval": { "detection_interval": {
"period": { "period": {
"interval": 1, "interval": 1,
"unit": "Minutes" "unit": "Minutes"
} }
}, },
"window_delay": { "window_delay": {
"period": { "period": {
"interval": 1, "interval": 1,
"unit": "Minutes" "unit": "Minutes"
} }
} }
} }
``` ```
If the validate detector API finds areas of improvement with your configuration, it returns a response with suggestions about how you can change your configuration to improve model training chances. If the validate detector API finds areas of improvement with your configuration, it returns a response with suggestions about how you can change your configuration to improve model training.
#### Sample Responses #### Sample Responses
In this example, the validate detector API return a responses with indicating that changing the detector interval length to at least 4 minutes can increase the chances of successful model training. In this example, the validate detector API return a response indicating that changing the detector interval length to at least four minutes can increase the chances of successful model training.
```json ```json
{ {
@ -516,7 +516,7 @@ In this example, the validate detector API return a responses with indicating th
} }
``` ```
Another response might indicate that you can change `filter_query` (data filter) because the currently filtered data is too sparse for the model to train correctly, which can happen because there is data with a value less than 1 being ingested. Using another `filter_query` can make your data more dense. Another response might indicate that you can change `filter_query` (data filter) because the currently filtered data is too sparse for the model to train correctly, which can happen because the index is also ingesting data that falls outside the chosen filter. Using another `filter_query` can make your data more dense.
```json ```json
{ {