public EnableStorageAnalyticsCommand(StorageServiceType type, AnalyticsMetricsType analytics)
        {
            if(type == StorageServiceType)
                throw new FluentManagementException("unable to complete request need another storage type", "EnableStorageAnalyticsCommand");

            _type = type;
            _analytics = analytics;
            Version = "2013-08-15";
        }
Пример #2
0
        /// <summary>
        /// Used to enable storage analytics for a particular blob type
        /// </summary>
        public void EnableStorageAnalytics(AnalyticsMetricsType metricsType = AnalyticsMetricsType.Logging)
        {
            var command = new EnableStorageAnalyticsCommand(StorageServiceType.Blob, metricsType)
            {
                AccountName = AccountName,
                AccountKey  = AccountKey
            };

            command.Execute();
        }
Пример #3
0
        /// <summary>
        /// Used to enable storage analytics for a particular blob type
        /// </summary>
        public bool IsStorageAnalyticsEnabled(AnalyticsMetricsType metricsType = AnalyticsMetricsType.Logging)
        {
            var command = new GetStorageAnalyticsEnabledCommand(StorageServiceType.Blob, metricsType)
            {
                AccountName = AccountName,
                AccountKey  = AccountKey
            };

            command.Execute();
            return(command.StorageAnalyticsEnabled);
        }
        public EnableStorageAnalyticsCommand(StorageServiceType type, AnalyticsMetricsType analytics)
        {
            if (type == StorageServiceType)
            {
                throw new FluentManagementException("unable to complete request need another storage type", "EnableStorageAnalyticsCommand");
            }

            _type      = type;
            _analytics = analytics;
            Version    = "2013-08-15";
        }
Пример #5
0
 /// <summary>
 /// Used to enable storage analytics for a particular blob type
 /// </summary>
 public bool IsStorageAnalyticsEnabled(AnalyticsMetricsType metricsType = AnalyticsMetricsType.Logging)
 {
     var command = new GetStorageAnalyticsEnabledCommand(StorageServiceType.Blob, metricsType)
     {
         AccountName = AccountName,
         AccountKey = AccountKey
     };
     command.Execute();
     return command.StorageAnalyticsEnabled;
 }
Пример #6
0
 /// <summary>
 /// Used to enable storage analytics for a particular blob type
 /// </summary>
 public void EnableStorageAnalytics(AnalyticsMetricsType metricsType = AnalyticsMetricsType.Logging)
 {
     var command = new EnableStorageAnalyticsCommand(StorageServiceType.Blob, metricsType)
     {
         AccountName = AccountName,
         AccountKey = AccountKey
     };
     command.Execute();
 }