Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Lens] Telemetry: Add missing operations (#95040) #95192

Merged
merged 1 commit into from
Mar 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 86 additions & 9 deletions x-pack/plugins/lens/server/usage/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,92 @@ const eventsSchema: MakeSchemaFrom<LensUsage['events_30_days']> = {
xy_change_layer_display: { type: 'long' },
xy_layer_removed: { type: 'long' },
xy_layer_added: { type: 'long' },
indexpattern_dimension_operation_terms: { type: 'long' },
indexpattern_dimension_operation_date_histogram: { type: 'long' },
indexpattern_dimension_operation_avg: { type: 'long' },
indexpattern_dimension_operation_min: { type: 'long' },
indexpattern_dimension_operation_max: { type: 'long' },
indexpattern_dimension_operation_sum: { type: 'long' },
indexpattern_dimension_operation_count: { type: 'long' },
indexpattern_dimension_operation_cardinality: { type: 'long' },
indexpattern_dimension_operation_filters: { type: 'long' },
indexpattern_dimension_operation_terms: {
type: 'long',
_meta: {
description: 'Number of times the top values function was selected',
},
},
indexpattern_dimension_operation_date_histogram: {
type: 'long',
_meta: {
description: 'Number of times the date histogram function was selected',
},
},
indexpattern_dimension_operation_avg: {
type: 'long',
_meta: {
description: 'Number of times the average function was selected',
},
},
indexpattern_dimension_operation_min: {
type: 'long',
_meta: {
description: 'Number of times the min function was selected',
},
},
indexpattern_dimension_operation_max: {
type: 'long',
_meta: {
description: 'Number of times the max function was selected',
},
},
indexpattern_dimension_operation_sum: {
type: 'long',
_meta: {
description: 'Number of times the sum function was selected',
},
},
indexpattern_dimension_operation_count: {
type: 'long',
_meta: {
description: 'Number of times the count function was selected',
},
},
indexpattern_dimension_operation_cardinality: {
type: 'long',
_meta: {
description: 'Number of times the cardinality function was selected',
},
},
indexpattern_dimension_operation_filters: {
type: 'long',
_meta: {
description: 'Number of times the filters function was selected',
},
},
indexpattern_dimension_operation_range: {
type: 'long',
_meta: { description: 'Number of times the range function was selected' },
},
indexpattern_dimension_operation_median: {
type: 'long',
_meta: { description: 'Number of times the median function was selected' },
},
indexpattern_dimension_operation_percentile: {
type: 'long',
_meta: { description: 'Number of times the percentile function was selected' },
},
indexpattern_dimension_operation_last_value: {
type: 'long',
_meta: { description: 'Number of times the last value function was selected' },
},
indexpattern_dimension_operation_cumulative_sum: {
type: 'long',
_meta: { description: 'Number of times the cumulative sum function was selected' },
},
indexpattern_dimension_operation_counter_rate: {
type: 'long',
_meta: { description: 'Number of times the counter rate function was selected' },
},
indexpattern_dimension_operation_derivative: {
type: 'long',
_meta: { description: 'Number of times the derivative function was selected' },
},
indexpattern_dimension_operation_moving_average: {
type: 'long',
_meta: { description: 'Number of times the moving average function was selected' },
},
};

const suggestionEventsSchema: MakeSchemaFrom<LensUsage['suggestion_events_30_days']> = {
Expand Down
154 changes: 136 additions & 18 deletions x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -1949,31 +1949,90 @@
"type": "long"
},
"indexpattern_dimension_operation_terms": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the top values function was selected"
}
},
"indexpattern_dimension_operation_date_histogram": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the date histogram function was selected"
}
},
"indexpattern_dimension_operation_avg": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the average function was selected"
}
},
"indexpattern_dimension_operation_min": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the min function was selected"
}
},
"indexpattern_dimension_operation_max": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the max function was selected"
}
},
"indexpattern_dimension_operation_sum": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the sum function was selected"
}
},
"indexpattern_dimension_operation_count": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the count function was selected"
}
},
"indexpattern_dimension_operation_cardinality": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the cardinality function was selected"
}
},
"indexpattern_dimension_operation_filters": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the filters function was selected"
}
},
"indexpattern_dimension_operation_range": {
"type": "long",
"_meta": { "description": "Number of times the range function was selected" }
},
"indexpattern_dimension_operation_median": {
"type": "long",
"_meta": { "description": "Number of times the median function was selected" }
},
"indexpattern_dimension_operation_percentile": {
"type": "long",
"_meta": { "description": "Number of times the percentile function was selected" }
},
"indexpattern_dimension_operation_last_value": {
"type": "long",
"_meta": { "description": "Number of times the last value function was selected" }
},
"indexpattern_dimension_operation_cumulative_sum": {
"type": "long",
"_meta": { "description": "Number of times the cumulative sum function was selected" }
},
"indexpattern_dimension_operation_counter_rate": {
"type": "long",
"_meta": { "description": "Number of times the counter rate function was selected" }
},
"indexpattern_dimension_operation_derivative": {
"type": "long",
"_meta": { "description": "Number of times the derivative function was selected" }
},
"indexpattern_dimension_operation_moving_average": {
"type": "long",
"_meta": { "description": "Number of times the moving average function was selected" }
}
}
},
Expand Down Expand Up @@ -2055,31 +2114,90 @@
"type": "long"
},
"indexpattern_dimension_operation_terms": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the top values function was selected"
}
},
"indexpattern_dimension_operation_date_histogram": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the date histogram function was selected"
}
},
"indexpattern_dimension_operation_avg": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the average function was selected"
}
},
"indexpattern_dimension_operation_min": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the min function was selected"
}
},
"indexpattern_dimension_operation_max": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the max function was selected"
}
},
"indexpattern_dimension_operation_sum": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the sum function was selected"
}
},
"indexpattern_dimension_operation_count": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the count function was selected"
}
},
"indexpattern_dimension_operation_cardinality": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the cardinality function was selected"
}
},
"indexpattern_dimension_operation_filters": {
"type": "long"
"type": "long",
"_meta": {
"description": "Number of times the filters function was selected"
}
},
"indexpattern_dimension_operation_range": {
"type": "long",
"_meta": { "description": "Number of times the range function was selected" }
},
"indexpattern_dimension_operation_median": {
"type": "long",
"_meta": { "description": "Number of times the median function was selected" }
},
"indexpattern_dimension_operation_percentile": {
"type": "long",
"_meta": { "description": "Number of times the percentile function was selected" }
},
"indexpattern_dimension_operation_last_value": {
"type": "long",
"_meta": { "description": "Number of times the last value function was selected" }
},
"indexpattern_dimension_operation_cumulative_sum": {
"type": "long",
"_meta": { "description": "Number of times the cumulative sum function was selected" }
},
"indexpattern_dimension_operation_counter_rate": {
"type": "long",
"_meta": { "description": "Number of times the counter rate function was selected" }
},
"indexpattern_dimension_operation_derivative": {
"type": "long",
"_meta": { "description": "Number of times the derivative function was selected" }
},
"indexpattern_dimension_operation_moving_average": {
"type": "long",
"_meta": { "description": "Number of times the moving average function was selected" }
}
}
},
Expand Down