Example #1
0
        /// <summary>
        /// 流量
        /// </summary>
        public static void flux()
        {
            Mac           mac       = new Mac(Settings.AccessKey, Settings.SecretKey);
            FusionManager fusionMgr = new FusionManager(mac);

            FluxRequest request = new FluxRequest();

            request.StartDate   = "START_DATE";      // "2016-09-01"
            request.EndDate     = "END_DATE";        // "2016-09-20"
            request.Granularity = "GRANU";           // "day"
            request.Domains     = "DOMAIN1;DOMAIN2"; // domains
            FluxResult result = fusionMgr.Flux(request);

            Console.WriteLine(result);
        }