Exemplo n.º 1
0
        //@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);

            string uri = args[0];

            string username = args[1];

            string password = args[2];

            InfluxDBClient client = new InfluxDBClient(uri, username, password);

            InfluxDBJob jobDoer = new InfluxDBJob(client);
            List <EnvTeamDataStorage> dataList = jobDoer.GetDataIntoList();

            jobDoer.PrintData();

            S3Client.AddJsonFileToS3(dataList);
        }
Exemplo n.º 2
0
 public InfluxDBJob(InfluxDBClient _client)
 {
     client            = _client;
     flatInfluxStorage = new List <EnvTeamDataStorage>();
 }