Free Trial *Internet Service Required
This topic has not yet been rated - Rate this topic

DiagnosticDataBufferConfiguration.ScheduledTransferPeriod Property

Gets or sets the interval between scheduled transfers for this data buffer, in minutes.

Namespace: Microsoft.WindowsAzure.Diagnostics
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
'Usage
Dim instance As DiagnosticDataBufferConfiguration
Dim value As TimeSpan

value = instance.ScheduledTransferPeriod

instance.ScheduledTransferPeriod = value
public TimeSpan ScheduledTransferPeriod { get; set; }
/** @property */
public TimeSpan get_ScheduledTransferPeriod ()

/** @property */
public void set_ScheduledTransferPeriod (TimeSpan value)

public function get ScheduledTransferPeriod () : TimeSpan

public function set ScheduledTransferPeriod (value : TimeSpan)

Property Value

Type: System.TimeSpan

Returns TimeSpan.

The ScheduledTransferPeriod property is used to set how frequently a data buffer will transfer local logging data to persistent storage. By default, this property is not set for any data buffer to prevent unintentional storage costs.

The value you set for this property will be rounded up to the nearest minute. Therefore, the minimum transfer period you can specify is 1 minute.

Example

The following code snippet sets the transfer period of a Windows event log buffer to 1 minute.

// Get the default initial configuration for DiagnosticMonitor.
DiagnosticMonitorConfiguration diagnosticConfiguration = DiagnosticMonitor.GetDefaultInitialConfiguration();

// Filter the logs so that only error-level logs are transferred to persistent storage.
diagnosticConfiguration.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Error;

// Schedule a transfer period of 30 minutes.
diagnosticConfiguration.WindowsEventLog.ScheduledTransferPeriod = TimeSpan.FromMinutes(30.0);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
facebook page visit twitter rss feed newsletter