-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maps] [Telemetry] Count indices with geo-fields (#51221)
- Loading branch information
1 parent
7f9f164
commit 0ad9dd9
Showing
5 changed files
with
205 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...plugins/maps/server/maps_telemetry/test_resources/sample_index_pattern_saved_objects.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"attributes": { | ||
"fields": "[{\"name\":\"geometry\",\"type\":\"geo_shape\",\"esTypes\":[\"geo_shape\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false}]", | ||
"timeFieldName": "ORIG_DATE", | ||
"title": "indexpattern-with-geoshape" | ||
}, | ||
"id": "4a7f6010-0aed-11ea-9dd2-95afd7ad44d4", | ||
"migrationVersion": { | ||
"index-pattern": "7.6.0" | ||
}, | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2019-11-19T16:54:46.405Z", | ||
"version": "Wzg0LDFd" | ||
}, | ||
{ | ||
"attributes": { | ||
"fields": "[{\"name\":\"geometry\",\"type\":\"geo_point\",\"esTypes\":[\"geo_point\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]", | ||
"title": "indexpattern-with-geopoint" | ||
}, | ||
"id": "55d572f0-0b07-11ea-9dd2-95afd7ad44d4", | ||
"migrationVersion": { | ||
"index-pattern": "7.6.0" | ||
}, | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2019-11-19T20:05:37.607Z", | ||
"version": "WzExMSwxXQ==" | ||
}, | ||
{ | ||
"attributes": { | ||
"fields": "[{\"name\":\"assessment_date\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"date_exterior_condition\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"recording_date\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"sale_date\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]", | ||
"title": "indexpattern-without-geo" | ||
}, | ||
"id": "55d572f0-0b07-11ea-9dd2-95afd7ad44d4", | ||
"migrationVersion": { | ||
"index-pattern": "7.6.0" | ||
}, | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2019-11-19T20:05:37.607Z", | ||
"version": "WzExMSwxXQ==" | ||
} | ||
] |
128 changes: 128 additions & 0 deletions
128
...ck/legacy/plugins/maps/server/maps_telemetry/test_resources/sample_map_saved_objects.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
[ | ||
{ | ||
"type": "gis-map", | ||
"id": "37b08d60-25b0-11e9-9858-0f3a1e60d007", | ||
"attributes": { | ||
"title": "Italy Map", | ||
"description": "", | ||
"mapStateJSON": "{\"zoom\":4.82,\"center\":{\"lon\":11.41545,\"lat\":42.0865},\"timeFilters\":{\"from\":\"now-15w\",\"to\":\"now\"},\"refreshConfig\":{\"isPaused\":false,\"interval\":0},\"query\":{\"language\":\"lucene\",\"query\":\"\"}}", | ||
"layerListJSON": "[{\"sourceDescriptor\":{\"type\":\"EMS_TMS\",\"id\":\"road_map\"},\"id\":\"csq5v\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.65,\"visible\":true,\"style\":{\"type\":\"TILE\",\"properties\":{}},\"type\":\"TILE\"},{\"sourceDescriptor\":{\"type\":\"EMS_FILE\",\"id\":\"italy_provinces\"},\"id\":\"0oye8\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.75,\"visible\":true,\"style\":{\"type\":\"VECTOR\",\"properties\":{\"fillColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#0c1f70\"}},\"lineColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#FFFFFF\"}},\"lineWidth\":{\"type\":\"STATIC\",\"options\":{\"size\":1}},\"iconSize\":{\"type\":\"STATIC\",\"options\":{\"size\":10}}}},\"type\":\"VECTOR\"},{\"sourceDescriptor\":{\"type\":\"ES_GEO_GRID\",\"id\":\"053fe296-f5ae-4cb0-9e73-a5752cb9ba74\",\"indexPatternId\":\"d3d7af60-4c81-11e8-b3d7-01146121b73d\",\"geoField\":\"DestLocation\",\"requestType\":\"point\",\"resolution\":\"COARSE\"},\"id\":\"1gx22\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.75,\"visible\":true,\"style\":{\"type\":\"VECTOR\",\"properties\":{\"fillColor\":{\"type\":\"DYNAMIC\",\"options\":{\"field\":{\"label\":\"Count\",\"name\":\"doc_count\",\"origin\":\"source\"},\"color\":\"Greens\"}},\"lineColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#FFFFFF\"}},\"lineWidth\":{\"type\":\"STATIC\",\"options\":{\"size\":1}},\"iconSize\":{\"type\":\"DYNAMIC\",\"options\":{\"field\":{\"label\":\"Count\",\"name\":\"doc_count\",\"origin\":\"source\"},\"minSize\":4,\"maxSize\":32}}}},\"type\":\"VECTOR\"}]", | ||
"uiStateJSON": "{}", | ||
"bounds": { | ||
"type": "polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-5.29778, | ||
51.54155 | ||
], | ||
[ | ||
-5.29778, | ||
30.98066 | ||
], | ||
[ | ||
28.12868, | ||
30.98066 | ||
], | ||
[ | ||
28.12868, | ||
51.54155 | ||
], | ||
[ | ||
-5.29778, | ||
51.54155 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
"references": [ | ||
], | ||
"updated_at": "2019-01-31T23:30:39.030Z", | ||
"version": 1 | ||
}, | ||
{ | ||
"type": "gis-map", | ||
"id": "5c061dc0-25af-11e9-9858-0f3a1e60d007", | ||
"attributes": { | ||
"title": "France Map", | ||
"description": "", | ||
"mapStateJSON": "{\"zoom\":3.43,\"center\":{\"lon\":-16.30411,\"lat\":42.88411},\"timeFilters\":{\"from\":\"now-15w\",\"to\":\"now\"},\"refreshConfig\":{\"isPaused\":false,\"interval\":0},\"query\":{\"query\":\"\",\"language\":\"lucene\"}}", | ||
"layerListJSON": "[{\"sourceDescriptor\":{\"type\":\"EMS_TMS\",\"id\":\"road_map\"},\"id\":\"csq5v\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.65,\"visible\":true,\"style\":{\"type\":\"TILE\",\"properties\":{}},\"type\":\"TILE\"},{\"sourceDescriptor\":{\"type\":\"EMS_FILE\",\"id\":\"france_departments\"},\"id\":\"65xbw\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.25,\"visible\":true,\"style\":{\"type\":\"VECTOR\",\"properties\":{\"fillColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#19c1e6\"}},\"lineColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#FFFFFF\"}},\"lineWidth\":{\"type\":\"STATIC\",\"options\":{\"size\":1}},\"iconSize\":{\"type\":\"STATIC\",\"options\":{\"size\":10}}}},\"type\":\"VECTOR\"},{\"sourceDescriptor\":{\"id\":\"240125db-e612-4001-b853-50107e55d984\",\"type\":\"ES_SEARCH\",\"indexPatternId\":\"ff959d40-b880-11e8-a6d9-e546fe2bba5f\",\"geoField\":\"geoip.location\",\"limit\":2048,\"filterByMapBounds\":true,\"tooltipProperties\":[]},\"id\":\"mdae9\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.75,\"visible\":true,\"style\":{\"type\":\"VECTOR\",\"properties\":{\"fillColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#1ce619\"}},\"lineColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#FFFFFF\"}},\"lineWidth\":{\"type\":\"STATIC\",\"options\":{\"size\":1}},\"iconSize\":{\"type\":\"STATIC\",\"options\":{\"size\":10}}}},\"type\":\"VECTOR\"}]", | ||
"uiStateJSON": "{}", | ||
"bounds": { | ||
"type": "polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-59.97005, | ||
63.9123 | ||
], | ||
[ | ||
-59.97005, | ||
11.25616 | ||
], | ||
[ | ||
27.36184, | ||
11.25616 | ||
], | ||
[ | ||
27.36184, | ||
63.9123 | ||
], | ||
[ | ||
-59.97005, | ||
63.9123 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
"references": [ | ||
], | ||
"updated_at": "2019-01-31T23:24:30.492Z", | ||
"version": 1 | ||
}, | ||
{ | ||
"type": "gis-map", | ||
"id": "b853d5f0-25ae-11e9-9858-0f3a1e60d007", | ||
"attributes": { | ||
"title": "Canada Map", | ||
"description": "", | ||
"mapStateJSON": "{\"zoom\":2.12,\"center\":{\"lon\":-88.67592,\"lat\":34.23257},\"timeFilters\":{\"from\":\"now-15m\",\"to\":\"now\",\"mode\":\"quick\"},\"refreshConfig\":{\"isPaused\":false,\"interval\":0},\"query\":{\"query\":\"\",\"language\":\"lucene\"}}", | ||
"layerListJSON": "[{\"sourceDescriptor\":{\"type\":\"EMS_TMS\",\"id\":\"road_map\"},\"id\":\"csq5v\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.65,\"visible\":true,\"style\":{\"type\":\"TILE\",\"properties\":{}},\"type\":\"TILE\"},{\"sourceDescriptor\":{\"type\":\"EMS_FILE\",\"id\":\"canada_provinces\"},\"id\":\"kt086\",\"label\":null,\"minZoom\":0,\"maxZoom\":24,\"alpha\":0.75,\"visible\":true,\"style\":{\"type\":\"VECTOR\",\"properties\":{\"fillColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#60895e\"}},\"lineColor\":{\"type\":\"STATIC\",\"options\":{\"color\":\"#FFFFFF\"}},\"lineWidth\":{\"type\":\"STATIC\",\"options\":{\"size\":1}},\"iconSize\":{\"type\":\"STATIC\",\"options\":{\"size\":10}}}},\"type\":\"VECTOR\"}]", | ||
"uiStateJSON": "{}", | ||
"bounds": { | ||
"type": "polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
163.37506, | ||
77.35215 | ||
], | ||
[ | ||
163.37506, | ||
-46.80667 | ||
], | ||
[ | ||
19.2731, | ||
-46.80667 | ||
], | ||
[ | ||
19.2731, | ||
77.35215 | ||
], | ||
[ | ||
163.37506, | ||
77.35215 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
"references": [ | ||
], | ||
"updated_at": "2019-01-31T23:19:55.855Z", | ||
"version": 1 | ||
} | ||
] |
Oops, something went wrong.