add telemetry for fix action (#104832)

This commit is contained in:
Joe Reuter 2021-07-08 15:43:49 +02:00 committed by GitHub
parent 60a9eb9e84
commit 4dae93938c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View file

@ -479,6 +479,7 @@ export const VisualizationWrapper = ({
<EuiButton
data-test-subj="errorFixAction"
onClick={async () => {
trackUiEvent('error_fix_action');
const newState = await validationError.fixAction?.newState(framePublicAPI);
dispatchLens(
updateDatasourceState({

View file

@ -14,6 +14,13 @@ const eventsSchema: MakeSchemaFrom<LensUsage['events_30_days']> = {
type: 'long',
_meta: { description: 'Number of times the user opened one of the in-product help popovers.' },
},
error_fix_action: {
type: 'long',
_meta: {
description:
'Number of times the user used the fix action of an error displayed in the workspace.',
},
},
open_formula_popover: {
type: 'long',
_meta: { description: 'Number of times the user opened the in-product formula help popover.' },

View file

@ -2280,6 +2280,13 @@
"description": "Number of times the user opened one of the in-product help popovers."
}
},
"error_fix_action": {
"type": "long",
"_meta": {
"description":
"Number of times the user used the fix action of an error displayed in the workspace."
}
},
"open_formula_popover": {
"type": "long",
"_meta": {
@ -2521,6 +2528,13 @@
"description": "Number of times the user opened one of the in-product help popovers."
}
},
"error_fix_action": {
"type": "long",
"_meta": {
"description":
"Number of times the user used the fix action of an error displayed in the workspace."
}
},
"open_formula_popover": {
"type": "long",
"_meta": {