-
Notifications
You must be signed in to change notification settings - Fork 3
/
dataview.ndjson
2 lines (2 loc) · 7.15 KB
/
dataview.ndjson
1
2
{"attributes":{"fieldAttrs":"{\"doc\":{\"count\":3},\"vis_uses_split\":{\"count\":2},\"vis_type\":{\"count\":4},\"app\":{\"count\":2},\"dashboard\":{\"count\":4},\"vis_title\":{\"count\":3},\"vis_tsvb_time_range_mode\":{\"count\":1},\"vis_tsvb_aggs\":{\"count\":1}}","fields":"[]","runtimeFieldMap":"{\"vis_title\":{\"type\":\"keyword\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\nif (params['_source']['doc']['attributes'] != null) {\\n emit(params['_source']['doc']['attributes']['title'])\\n} else if (params['_source']['doc']['title'] != null) {\\n emit(params['_source']['doc']['title'])\\n} else if (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['title'] != null) {\\n emit(params['_source']['doc']['embeddableConfig']['savedVis']['title'])\\n}\\n\"}},\"vis_tsvb_time_range_mode\":{\"type\":\"keyword\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\nString visType = '';\\nif (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['type'] != null) {\\n visType = params['_source']['doc']['attributes']['type'];\\n} else if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['type'] != null) {\\n visType = params['_source']['doc']['attributes']['visState']['type'];\\n} else if (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['type'] != null) {\\n visType = params['_source']['doc']['embeddableConfig']['savedVis']['type']\\n}\\n\\nif (visType == 'metrics') {\\n boolean explicit = false;\\n if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['params']['time_range_mode'] != null) {\\n emit(params['_source']['doc']['attributes']['visState']['params']['time_range_mode']);\\n explicit = true;\\n}\\nif (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['params']['time_range_mode'] != null) {\\n emit(params['_source']['doc']['embeddableConfig']['savedVis']['params']['time_range_mode']);explicit = true;\\n}\\nif(!explicit) {\\n emit('last_value_implicit')\\n}\\n}\"}},\"vis_tsvb_type\":{\"type\":\"keyword\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\nString visType = '';\\nif (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['type'] != null) {\\n visType = params['_source']['doc']['attributes']['type'];\\n} else if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['type'] != null) {\\n visType = params['_source']['doc']['attributes']['visState']['type'];\\n} else if (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['type'] != null) {\\n visType = params['_source']['doc']['embeddableConfig']['savedVis']['type']\\n}\\n\\nif (visType == 'metrics') {\\n if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null) {\\n emit(params['_source']['doc']['attributes']['visState']['params']['type'])\\n}\\nif (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis'] != null) {\\n emit(params['_source']['doc']['embeddableConfig']['savedVis']['params']['type'])\\n}\\n}\"}},\"vis_type\":{\"type\":\"keyword\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\nif (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['type'] != null) {\\n emit(params['_source']['doc']['attributes']['type'])\\n} else if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['type'] != null) {\\n emit(params['_source']['doc']['attributes']['visState']['type'])\\n} else if (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['type'] != null) {\\n emit(params['_source']['doc']['embeddableConfig']['savedVis']['type'])\\n}\\n\"}},\"vis_uses_split\":{\"type\":\"boolean\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\nboolean split = false;\\n if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['aggs'] != null) {\\n List arr = params['_source']['doc']['attributes']['visState']['aggs'];\\n for(int i = 0; i < arr.length; i++) {\\n if (arr[i]['schema'] == 'split') { split = true}\\n }\\n \\n}\\nif (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['aggs'] != null) {\\n List arr = params['_source']['doc']['embeddableConfig']['savedVis']['aggs'];\\n for(int i = 0; i < arr.length; i++) {\\n if (arr[i]['schema'] == 'split') { split = true}\\n }\\n}\\nemit(split)\"}},\"vis_tsvb_aggs\":{\"type\":\"keyword\",\"script\":{\"source\":\"if (doc['soType'].value != 'visualization') return;\\n\\n if (params['_source']['doc']['attributes'] != null && params['_source']['doc']['attributes']['visState'] != null && params['_source']['doc']['attributes']['visState']['params'] != null && params['_source']['doc']['attributes']['visState']['params']['series']!= null) {\\n List arr = params['_source']['doc']['attributes']['visState']['params']['series'];\\n for(int i = 0; i < arr.length; i++) {\\n List metrics = arr[i]['metrics'];\\n for(int j = 0; j < metrics.length; j++) {\\n emit (metrics[j]['type']);\\n }\\n \\n }\\n \\n}\\nif (params['_source']['doc']['embeddableConfig'] != null && params['_source']['doc']['embeddableConfig']['savedVis'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['params'] != null && params['_source']['doc']['embeddableConfig']['savedVis']['params']['series'] != null) {\\n\\n List arr = params['_source']['doc']['embeddableConfig']['savedVis']['params']['series'];\\n for(int i = 0; i < arr.length; i++) {\\n List metrics = arr[i]['metrics'];\\n for(int j = 0; j < metrics.length; j++) {\\n emit (metrics[j]['type']);\\n }\\n \\n }\\n}\"}}}","title":"legacy_vis*","typeMeta":"{}"},"coreMigrationVersion":"8.1.1","id":"679c81b0-af4f-11ec-a029-d32028b9cf73","migrationVersion":{"index-pattern":"8.0.0"},"references":[],"type":"index-pattern","updated_at":"2022-04-01T11:46:18.900Z","version":"WzIxMDgsMl0="}
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":1,"missingRefCount":0,"missingReferences":[]}