From 03b496e8cf8b17946312b088ad2aafd3ff90539c Mon Sep 17 00:00:00 2001 From: Pete Harverson Date: Wed, 13 Feb 2019 17:24:43 +0000 Subject: [PATCH] [ML] Fixes filter and icon for APM Data Recognizer module (#30820) --- .../modules/apm_transaction/manifest.json | 14 +++---------- .../ml/datafeed_high_mean_response_time.json | 20 +++++-------------- .../ml/high_mean_response_time.json | 3 +-- 3 files changed, 9 insertions(+), 28 deletions(-) diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/manifest.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/manifest.json index b505d54fdd41..5eac6d090d1b 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/manifest.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/manifest.json @@ -1,23 +1,15 @@ { "id": "apm_transaction", "title": "APM", - "description": "Detect anomalies in high mean of transaction duration", + "description": "Detect anomalies in high mean of transaction duration (ECS)", "type": "Transaction data", "logoFile": "logo.json", "defaultIndexPattern": "apm-*", "query": { "bool": { "filter": [ - { - "term": { - "processor.name": "transaction" - } - }, - { - "term": { - "processor.event": "transaction" - } - } + { "term": { "processor.event": "transaction" } }, + { "term": { "transaction.type": "request" } } ] } }, diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/datafeed_high_mean_response_time.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/datafeed_high_mean_response_time.json index cdc5ad507a0b..2f22f2c9be3c 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/datafeed_high_mean_response_time.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/datafeed_high_mean_response_time.json @@ -4,21 +4,11 @@ "INDEX_PATTERN_NAME" ], "query": { - "match": { - "processor.event": { - "query": "transaction", - "operator": "OR", - "prefix_length": 0, - "max_expansions": 50, - "fuzzy_transpositions": true, - "lenient": false, - "zero_terms_query": "NONE", - "auto_generate_synonyms_phrase_query": true, - "boost": 1 - } + "bool": { + "filter": [ + { "term": { "processor.event": "transaction" } }, + { "term": { "transaction.type": "request" } } + ] } - }, - "chunking_config": { - "mode": "auto" } } diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/high_mean_response_time.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/high_mean_response_time.json index dae472cd3fc9..9ae180c42068 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/high_mean_response_time.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/apm_transaction/ml/high_mean_response_time.json @@ -23,6 +23,5 @@ }, "model_plot_config": { "enabled": true - }, - "model_snapshot_retention_days": 1 + } }