//@Author Krishna Ganesan //Runs entire Elastic Search backend job, ending with the output data structure // Args in format [] static void Main(string[] args) { Console.WriteLine("Collected Args: " + args.Length); var node = args[0]; var pfxCert = args[1];//"merged-cert-and-key.pfx"; ElasticSearchClient client = new ElasticSearchClient(node, pfxCert); ESJob jobDoer = new ESJob(client); Dictionary <string, TeamData> teamsData = jobDoer.GetData(); jobDoer.PrintData(); S3Client.AddJsonFileToS3("Prod V2", teamsData); }
public ESJob(ElasticSearchClient _client) { teamData = new Dictionary <string, TeamData>(); //Initialize entry to be used for entire ES cluster info var totalESData = new TeamData { teamName = "Elastic_Search", numberOfDocs = 0, primaryStoreSize = 0, storeSize = 0 }; teamData.Add("Elastic_Search", totalESData); client = _client; }