Beispiel #1
0
        /// <summary>
        /// 带宽
        /// </summary>
        public static void bandwidth()
        {
            Mac           mac       = new Mac(Settings.AccessKey, Settings.SecretKey);
            FusionManager fusionMgr = new FusionManager(mac);

            BandwidthRequest request = new BandwidthRequest();

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

            Console.WriteLine(result);
        }