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"; }
/// <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(); }
/// <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"; }
/// <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; }