[Maps] record hexagon clustering layer in telemetry (#128409)

* [Maps] record hexagon clustering layer in telemetry

* update comments

* telemtry_check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2022-03-28 09:19:42 -06:00 committed by GitHub
parent 072fe63c0b
commit 310c1baffe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 0 deletions

View file

@ -64,6 +64,15 @@ export function registerMapsUsageCollector(usageCollection?: UsageCollectionSetu
_meta: { description: 'total number of es grid layers in cluster' },
},
},
es_agg_hexagons: {
min: { type: 'long', _meta: { description: 'min number of es hexagon layers per map' } },
max: { type: 'long', _meta: { description: 'max number of es hexagon layers per map' } },
avg: { type: 'float', _meta: { description: 'avg number of es hexagon layers per map' } },
total: {
type: 'long',
_meta: { description: 'total number of es hexagon layers in cluster' },
},
},
es_agg_heatmap: {
min: { type: 'long', _meta: { description: 'min number of es heatmap layers per map' } },
max: { type: 'long', _meta: { description: 'max number of es heatmap layers per map' } },

View file

@ -334,6 +334,8 @@ function getLayerKey(layerDescriptor: LayerDescriptor): LAYER_KEYS | null {
return LAYER_KEYS.ES_AGG_CLUSTERS;
} else if (sourceDescriptor.requestType === RENDER_AS.GRID) {
return LAYER_KEYS.ES_AGG_GRIDS;
} else if (sourceDescriptor.requestType === RENDER_AS.HEX) {
return LAYER_KEYS.ES_AGG_HEXAGONS;
}
}

View file

@ -30,6 +30,7 @@ export enum LAYER_KEYS {
ES_POINT_TO_POINT = 'es_point_to_point',
ES_AGG_CLUSTERS = 'es_agg_clusters',
ES_AGG_GRIDS = 'es_agg_grids',
ES_AGG_HEXAGONS = 'es_agg_hexagons',
ES_AGG_HEATMAP = 'es_agg_heatmap',
EMS_REGION = 'ems_region',
EMS_BASEMAP = 'ems_basemap',

View file

@ -5060,6 +5060,34 @@
}
}
},
"es_agg_hexagons": {
"properties": {
"min": {
"type": "long",
"_meta": {
"description": "min number of es hexagon layers per map"
}
},
"max": {
"type": "long",
"_meta": {
"description": "max number of es hexagon layers per map"
}
},
"avg": {
"type": "float",
"_meta": {
"description": "avg number of es hexagon layers per map"
}
},
"total": {
"type": "long",
"_meta": {
"description": "total number of es hexagon layers in cluster"
}
}
}
},
"es_agg_heatmap": {
"properties": {
"min": {