Skip to content

Instantly share code, notes, and snippets.

@vchrombie
Last active June 3, 2020 11:55
Show Gist options
  • Save vchrombie/f91b25ea6d6cbe9c9d23b243f2b3e938 to your computer and use it in GitHub Desktop.
Save vchrombie/f91b25ea6d6cbe9c9d23b243f2b3e938 to your computer and use it in GitHub Desktop.
prosoul data format of index
{
"scava-metrics": {
"aliases": {},
"mappings": {
"items": {
"dynamic_templates": [
{
"notanalyzed": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
},
{
"formatdate": {
"match": "*",
"match_mapping_type": "date",
"mapping": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
}
}
}
],
"properties": {
"datetime": {
"type": "date"
},
"meta": {
"properties": {
"top_projects": {
"type": "keyword"
}
}
},
"metric_class": {
"type": "keyword"
},
"metric_desc": {
"type": "keyword"
},
"metric_es_compute": {
"type": "keyword"
},
"metric_es_value": {
"type": "float"
},
"metric_es_value_weighted": {
"type": "long"
},
"metric_id": {
"type": "keyword"
},
"metric_name": {
"type": "keyword"
},
"metric_type": {
"type": "keyword"
},
"project": {
"type": "keyword"
},
"scava": {
"type": "object",
"dynamic": "false"
},
"uuid": {
"type": "keyword"
}
}
}
},
"settings": {
"index": {
"creation_date": "1591118684260",
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "aacvzk1lQdSxJrbQtn-jXA",
"version": {
"created": "6010099"
},
"provided_name": "scava-metrics"
}
}
}
}
{
"took" : 22,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 45395,
"max_score" : 1.0,
"hits" : [
{
"_index" : "scava-metrics",
"_type" : "items",
"_id" : "e320092d235a387be6191984d677e265da105e65",
"_score" : 1.0,
"_source" : {
"project" : "gnomethreads",
"metric_class" : "newsgroups",
"metric_type" : "LineChart",
"metric_id" : "newsgroups.cumulativeNewThreads",
"metric_desc" : "The number of new threads submitted up to and including the current date.",
"metric_name" : "New Threads (Cumulative)",
"metric_es_compute" : "sample",
"datetime" : "2017-10-06T00:00:00+00:00",
"scava" : {
"id" : "newsgroups.cumulativeNewThreads",
"projectId" : "gnomethreads",
"metricId" : "org.eclipse.scava.metricprovider.historic.newsgroups.newthreads.NewThreadsHistoricMetricProvider",
"name" : "New Threads (Cumulative)",
"description" : "The number of new threads submitted up to and including the current date.",
"type" : "LineChart",
"datatable" : [
{
"Date" : "19980101",
"Threads" : 0
},
{
"Date" : "19980102",
"Threads" : 0
},
.
.
.
},
{
"Date" : "20181228",
"Threads" : 15453
},
{
"Date" : "20181229",
"Threads" : 15453
},
{
"Date" : "20181230",
"Threads" : 15453
},
{
"Date" : "20181231",
"Threads" : 15453
}
],
"timeSeries" : true,
"ordinal" : false,
"x" : "Date",
"y" : "Threads",
"updated" : "20010118",
"project" : "gnomethreads"
},
"metric_es_value" : 15453,
"uuid" : "d3f8aabce37bf6a275cdfd6b8ea8a9f2ddcac84b",
"metric_es_value_weighted" : 15453,
"meta" : {
"top_projects" : [
"main"
]
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment