{
	"jobsLocation": "/Users/guilhermebueno/projects/carrefour/qualidade/sherlock-carrefour/jobs",
	"folders": [
		"jobs",
		"commands",
		"visualizations"
	],
	"commands":{
		"Indexer": [
			{
					"name":"Added documents by hour",
					"file":"commands/saasRulesReceivedProdutsCounter.coffee",
					"answers": {"timePositionToCut": "2", "queryParam": "Valor do atributo 'id':"},
					"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
					"name":"Added documents by minutes",
					"file":"commands/saasRulesReceivedProdutsCounter.coffee",
					"answers": {"timePositionToCut": "5", "queryParam": "Valor do atributo 'id':"},
					"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			}
		],
		"SAAS": [
			{
				"name":"Count - ERROR",
				"file":"commands/saasGrepCounter.coffee",
				"answers": {"queryParam": " ERROR"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Count - ERROR - Timeout",
				"file":"commands/saasGrepCounter.coffee",
				"answers": {"queryParam": "o.e.jetty.servlet.ServletHandler - /solr/master_carrefour_Product/select"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Saas - Fail: Connection reset",
				"file":"commands/saasGrepCounter.coffee",
				"answers": {"queryParam": "AfterSearchProcessor - Fail: Connection reset"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Summary - HTTP Method",
				"file":"commands/saasErrorSummary.coffee",
				"answers": {"queryParam": "AfterSearchProcessor - Saas ", "column": "$16"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Summary - Cache",
				"file":"commands/saasErrorSummary.coffee",
				"answers": {"queryParam": "AfterSearchProcessor - Saas ", "column": "$14"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Summary - Requests result",
				"file":"commands/saasErrorSummary.coffee",
				"answers": {"queryParam": "AfterSearchProcessor - Saas ", "column":"$8"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Total - Requests",
				"file":"commands/saasTotalSearch.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Queries per second",
				"file":"commands/saasQPS.coffee",
				"answers": {"filter":"AfterSearchProcessor - Saas"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Queries per second when Connection Reset",
				"file":"commands/saasQPSFilter.coffee",
				"answers": {"filter":"AfterSearchProcessor - Fail: Connection reset"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Queries per minute",
				"file":"commands/saasQPM.coffee",
				"answers": {
					"startDate":"2017-07-31", 
					"endDate": "2017-07-31",
					"startTime": "22:43:36",
					"endTime": "22:43:36"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Top - after processor time",
				"file":"commands/saasTopTime.coffee",
				"answers": {"column":"$30"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Top - before processor time",
				"file":"commands/saasTopTime.coffee",
				"answers": {"column":"$28"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Top - responseTime",
				"file":"commands/saasTopTime.coffee",
				"answers": {"column":"$10"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Average - SAAS responseTime",
				"file":"commands/averageResponse.coffee",
				"answers": {"column":"$10"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Average - before processor time",
				"file":"commands/averageResponse.coffee",
				"answers": {"column":"$28"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Average - after processor time",
				"file":"commands/averageResponse.coffee",
				"answers": {"column":"$30"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Saas - responseTime counter less than 100 mili",
				"file":"commands/saasResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison":"100", "greaterThanComparison":"0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Saas - responseTime counter greater than 1 second",
				"file":"commands/saasResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison":"10000", "greaterThanComparison":"1000"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Saas - executed rules",
				"file":"commands/saasExecutedRules.coffee",
				"answers": {"column":"$10", "queryParam":"Regra executada"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Saas - Cascading Search",
				"file":"commands/saasExecutedRules.coffee",
				"answers": {"column":"$10", "queryParam":"Regra executada:Busca em cascata"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime counter less than 1 second",
				"file":"commands/nginxResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison": "1.0", "greaterThanComparison": "0.0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime counter greater than 1 second",
				"file":"commands/nginxResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison": "100.0", "greaterThanComparison": "1.0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime counter greater than 5 seconds",
				"file":"commands/nginxResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison": "100.0", "greaterThanComparison": "5.0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime counter greater than 10 seconds",
				"file":"commands/nginxResponseTimeCounter.coffee",
				"answers": {"column":"$10", "lessThanComparison": "100.0", "greaterThanComparison": "10.0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - connection time more than 0.9 seconds",
				"file":"commands/nginxResponseTimeCounter.coffee",
				"answers": {"column":"$NF", "lessThanComparison": "100.0", "greaterThanComparison": "0.9"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime average",
				"file":"commands/nginxResponseTimeAverage.coffee",
				"answers": {"column":"$10"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime average related to connection time greater than 1 second",
				"file":"commands/nginxResponseTimeAverageInRelationWithConnectionTime.coffee",
				"answers": {"column":"$10", "lessThanComparison": "100.0", "greaterThanComparison": "0.9"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - responseTime average related to connection time less than 1 second",
				"file":"commands/nginxResponseTimeAverageInRelationWithConnectionTime.coffee",
				"answers": {"column":"$10", "lessThanComparison": "1.0", "greaterThanComparison": "0.0"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - Status code summary",
				"file":"commands/nginxStatusCodeSummary.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - /suggest counter",
				"file":"commands/nginxGrepCounter.coffee",
				"answers": {"grepCommand": "/suggest"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - /select counter",
				"file":"commands/nginxGrepCounter.coffee",
				"answers": {"grepCommand": "/select"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - top responseTime",
				"file":"commands/nginxTopResponseTime.coffee",
				"answers": {"column":"$10"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - requests per second",
				"file":"commands/nginxQPS.coffee",
				"answers": {"grepCommand": " "},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Nginx - connection reset per second",
				"file":"commands/nginxQPS.coffee",
				"answers": {"grepCommand": "AfterSearchProcessor - Fail: Connection reset"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			}
		],
		"Solr":[
			{
				"name":"Solr added documents by minute",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": " adds",
					"timePositionToCut": "5"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr added documents by hour",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": " adds",
					"timePositionToCut": "2"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr deleted documents by minute",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": " deletes)]}",
					"timePositionToCut": "5"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr deleted documents by hour",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": " deletes)]}",
					"timePositionToCut": "2"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr swap core by hour",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": "action=SWAP",
					"timePositionToCut": "2"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr disable replication by hour",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": "disablereplication",
					"timePositionToCut": "2"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr enable replication by hour",
				"file":"commands/solrGrepGroupByTime.coffee",
				"answers": {
					"logLocation": "/opt/solr/master/server/logs",
					"queryParam": "enablereplication",
					"timePositionToCut": "2"
				},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Top raw queries buscas",
				"file":"commands/topSearch.coffee",
				"answers": {"queryParam": "q"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime",  "resultSize"]
			},
			{
				"name":"Top facet.field queries",
				"file":"commands/topSearch.coffee",
				"answers": {"queryParam": "facet.field"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Queries with facets disabled",
				"file":"commands/topParamValueSearches.coffee",
				"answers": {"queryParamValue": "facet=true"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Top buscas",
				"file":"commands/topSearch.coffee",
				"answers": {"queryParam": "spellcheck.q"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Top Filter Queries",
				"file":"commands/topSearch.coffee",
				"answers": {"queryParam": "fq"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime",  "resultSize"]
			},
			{
				"name":"Total de buscas",
				"file":"commands/totalSearch.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Total de buscas com zero resultados",
				"file":"commands/zero-results-total.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Buscas com zero resultados",
				"file":"commands/zero-results.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Top queries por minuto",
				"file":"commands/qpm.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Top queries por segundo",
				"file":"commands/qps.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Consultas mais demoradas",
				"file":"commands/lowQueries.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Extract query sample",
				"file":"commands/extract-query-sample.coffee",
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime", "resultSize"]
			},
			{
				"name":"Count - Header is too long",
				"file":"commands/solrGrepCounter.coffee",
				"answers": {"queryParam": "Header is too large >8192"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Count - badMessage: 413",
				"file":"commands/solrGrepCounter.coffee",
				"answers": {"queryParam": "badMessage: 413"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Count - Sintax Error",
				"file":"commands/solrGrepCounter.coffee",
				"answers": {"queryParam":  "org.apache.solr.search.SyntaxError"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			},
			{
				"name":"Solr requests not from SAAS",
				"file":"commands/solrCallsNotFromSaas.coffee",
				"answers": {"queryParam":  "org.apache.solr.search.SyntaxError"},
				"questions":["informTheEnvironment", "selectServers", "startDate", "endDate", "startTime", "endTime"]
			}
		]
	},
	"environment": {
		"prod": {
			"Solr": {
				"servers": [
					"hysn401.ecom.carrefour",
					"hysn402.ecom.carrefour",
					"hyss401.ecom.carrefour",
					"hyss402.ecom.carrefour",
					"hyss403.ecom.carrefour",
					"100.68.1.224"
				]
			},
			"Varnish": {
				"servers": [
					"100.68.1.35",
					"100.68.1.48"
				]
			},
			"Indexer": {
				"servers":[
					"saas401.ecom.carrefour",
					"saas402.ecom.carrefour",
					"100.68.1.49",
					"100.68.1.34"
				]
			},
			"SAAS": {
				"servers":[
					"saas401.ecom.carrefour",
					"saas402.ecom.carrefour",
					"saas403.ecom.carrefour",
					"saas404.ecom.carrefour",
					"saas405.ecom.carrefour",
					"saas406.ecom.carrefour",
					"100.68.1.34",
					"100.68.1.49",
					"100.68.1.52",
					"100.68.1.53",
					"100.68.1.54"
				]
			},
			"Solr - facets": {
				"servers": [
					"100.68.1.239"
				]
			}
		},
		"qa": {
			"SAAS": {
				"servers":[
					"docn201.ecom.carrefour",
					"100.68.3.150"
				]
			}
		},
		"pre-prod": {
			"SAAS": {
				"servers":[
					"saas301.ecom.carrefour",
					"saas302.ecom.carrefour",
					"saas303.ecom.carrefour",
					"saas304.ecom.carrefour",
					"100.68.3.34",
					"100.68.3.25",
					"100.68.3.42",
					"100.68.3.43"
				]
			},
			"Indexer": {
				"servers":[
					"saas301.ecom.carrefour",
					"saas302.ecom.carrefour",
					"saas303.ecom.carrefour",
					"saas304.ecom.carrefour",
					"100.68.3.34",
					"100.68.3.25",
					"100.68.3.42",
					"100.68.3.43"
				]
			},
			"Solr": {
				"servers": [
					"hyss301.ecom.carrefour",
					"hyss302.ecom.carrefour",
					"hysn305.ecom.carrefour"
				],
				"acessLog": "/var/log/nginx/access-appA.log*",
				"applog": "/walmart/log/ws-search-service/search.log"
			}
		}
	}
}