Skip to content

Commit

Permalink
[Lens] Telemetry: Add missing operations (#95040) (#95192)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
  • Loading branch information
kibanamachine and flash1293 authored Mar 23, 2021
1 parent 31676fd commit 82b6bcc
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 27 deletions.
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

0 comments on commit 82b6bcc

Please sign in to comment.