Skip to content

Commit

Permalink
[ML] update mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Oct 6, 2021
1 parent c363b2c commit de0a7d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const byTypeSchema: MakeSchemaFrom<AlertsUsage>['count_by_type'] = {
// Built-in
'__index-threshold': { type: 'long' },
'__es-query': { type: 'long' },
transform_health: { type: 'long' },
// APM
apm__error_rate: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
apm__transaction_error_rate: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
Expand Down Expand Up @@ -45,8 +46,8 @@ const byTypeSchema: MakeSchemaFrom<AlertsUsage>['count_by_type'] = {
// Maps
'__geo-containment': { type: 'long' },
// ML
xpack_ml_anomaly_detection_alert: { type: 'long' },
xpack_ml_anomaly_detection_jobs_health: { type: 'long' },
xpack__ml__anomaly_detection_alert: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
xpack__ml__anomaly_detection_jobs_health: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
};

export function createAlertsUsageCollector(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@
"__geo-containment": {
"type": "long"
},
"xpack_ml_anomaly_detection_alert": {
"xpack__ml__anomaly_detection_alert": {
"type": "long"
},
"xpack_ml_anomaly_detection_jobs_health": {
"xpack__ml__anomaly_detection_jobs_health": {
"type": "long"
}
}
Expand Down Expand Up @@ -308,10 +308,10 @@
"__geo-containment": {
"type": "long"
},
"xpack_ml_anomaly_detection_alert": {
"xpack__ml__anomaly_detection_alert": {
"type": "long"
},
"xpack_ml_anomaly_detection_jobs_health": {
"xpack__ml__anomaly_detection_jobs_health": {
"type": "long"
}
}
Expand Down

0 comments on commit de0a7d9

Please sign in to comment.