Exportar (0) Imprimir
Expandir todo

DiagnosticDataBufferConfiguration.BufferQuotaInMB (Propiedad)

Gets or sets the maximum amount of file system storage available to the specified data buffer.

Espacio de nombres: Microsoft.WindowsAzure.Diagnostics
Ensamblado: Microsoft.WindowsAzure.Diagnostics (en microsoft.windowsazure.diagnostics.dll)

'Uso
Dim instance As DiagnosticDataBufferConfiguration
Dim value As Integer

value = instance.BufferQuotaInMB

instance.BufferQuotaInMB = value

public int BufferQuotaInMB { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public int get_BufferQuotaInMB ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_BufferQuotaInMB (int value)

CompilerGeneratedAttribute 
public function get BufferQuotaInMB () : int

CompilerGeneratedAttribute 
public function set BufferQuotaInMB (value : int)

Valor de propiedad

Returns Int32.

The BufferQuotaInMB property sets the amount of local storage to allocate for a specified data buffer. You can specify the value of this property when configuring any of the diagnostic sources for a diagnostic monitor.

By default, the BufferQuotaInMB property is set to 0 for each data buffer. Diagnostic data will be written to each data buffer until the OverallQuotaInMB limit is reached unless you set a value for this property.

If you set this property and the quota is reached, the oldest data is deleted as new data is added. This deletion policy also applies if you have configured a transfer interval for the buffer. After the transfer has occurred, the data remains in local storage and will be deleted per the above policy.

Example

The following code snippet configures a performance counter log buffer to 2GB.

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

// Add a performance counter for processor time.
diagnosticConfiguration.PerformanceCounters.DataSources.Add(new PerformanceCounterConfiguration()
{
    CounterSpecifier = @"\Processor(_Total)\% Processor Time",
    SampleRate = perfSampleRate
});

// Set the performance counter buffer to 2GB.
diagnosticConfiguration.PerformanceCounters.BufferQuotaInMB = 2048;


Cualquier miembro estático público (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Plataformas de desarrollo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008 y Windows 2000

Plataformas de destino

Adiciones de comunidad

Mostrar:
© 2014 Microsoft