[Alerts][Actions] Added missing telemetry mapping for a new alert and action types: geo-containment, es-query, teams (#95464)
* [Alerts][Actions] Added missing telemtry mapping for a new alert and action types: geo-containment, es-query, teams * fixed mappings * fixed ML alert type telemetry mappings Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
533a7bb56f
commit
80fdcde813
|
@ -23,6 +23,7 @@ const byTypeSchema: MakeSchemaFrom<ActionsUsage>['count_by_type'] = {
|
|||
__servicenow: { type: 'long' },
|
||||
__jira: { type: 'long' },
|
||||
__resilient: { type: 'long' },
|
||||
__teams: { type: 'long' },
|
||||
};
|
||||
|
||||
export function createActionsUsageCollector(
|
||||
|
|
|
@ -16,6 +16,7 @@ const byTypeSchema: MakeSchemaFrom<AlertsUsage>['count_by_type'] = {
|
|||
// Known alerts (searching the use of the alerts API `registerType`:
|
||||
// Built-in
|
||||
'__index-threshold': { type: 'long' },
|
||||
'__es-query': { 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
|
||||
|
@ -41,6 +42,10 @@ const byTypeSchema: MakeSchemaFrom<AlertsUsage>['count_by_type'] = {
|
|||
xpack__uptime__alerts__monitorStatus: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
|
||||
xpack__uptime__alerts__tls: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
|
||||
xpack__uptime__alerts__durationAnomaly: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention
|
||||
// Maps
|
||||
'__geo-containment': { type: 'long' },
|
||||
// ML
|
||||
xpack_ml_anomaly_detection_alert: { type: 'long' },
|
||||
};
|
||||
|
||||
export function createAlertsUsageCollector(
|
||||
|
|
|
@ -39,6 +39,9 @@
|
|||
},
|
||||
"__resilient": {
|
||||
"type": "long"
|
||||
},
|
||||
"__teams": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -73,6 +76,9 @@
|
|||
},
|
||||
"__resilient": {
|
||||
"type": "long"
|
||||
},
|
||||
"__teams": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -136,6 +142,9 @@
|
|||
"__index-threshold": {
|
||||
"type": "long"
|
||||
},
|
||||
"__es-query": {
|
||||
"type": "long"
|
||||
},
|
||||
"apm__error_rate": {
|
||||
"type": "long"
|
||||
},
|
||||
|
@ -195,6 +204,12 @@
|
|||
},
|
||||
"xpack__uptime__alerts__durationAnomaly": {
|
||||
"type": "long"
|
||||
},
|
||||
"__geo-containment": {
|
||||
"type": "long"
|
||||
},
|
||||
"xpack_ml_anomaly_detection_alert": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -206,6 +221,9 @@
|
|||
"__index-threshold": {
|
||||
"type": "long"
|
||||
},
|
||||
"__es-query": {
|
||||
"type": "long"
|
||||
},
|
||||
"apm__error_rate": {
|
||||
"type": "long"
|
||||
},
|
||||
|
@ -265,6 +283,12 @@
|
|||
},
|
||||
"xpack__uptime__alerts__durationAnomaly": {
|
||||
"type": "long"
|
||||
},
|
||||
"__geo-containment": {
|
||||
"type": "long"
|
||||
},
|
||||
"xpack_ml_anomaly_detection_alert": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue