Exportar (0) Imprimir
Expandir Tudo

Método RoleInstanceDiagnosticManager.BeginOnDemandTransfer (DataBufferName)

[Este tópico é uma documentação de pré-lançamento e está sujeito a alterações em versões futuras. Os tópicos em branco são incluídos como espaços reservados.]

Begins an on-demand transfer of the specified data buffer.

Namespace: Microsoft.WindowsAzure.Diagnostics.Management
Assembly: Microsoft.WindowsAzure.Diagnostics (em microsoft.windowsazure.diagnostics.dll)

'Uso
Dim instance As RoleInstanceDiagnosticManager
Dim sourceBufferName As DataBufferName
Dim returnValue As Guid

returnValue = instance.BeginOnDemandTransfer(sourceBufferName)

public Guid BeginOnDemandTransfer (
	DataBufferName sourceBufferName
)
public Guid BeginOnDemandTransfer (
	DataBufferName sourceBufferName
)
public function BeginOnDemandTransfer (
	sourceBufferName : DataBufferName
) : Guid

Parâmetros

sourceBufferName

The name of the source buffer.

Valor retornado

A request ID identifying the transfer.

The BeginOnDemandTransfer(DataBufferName) method is used to start an on-demand transfer of buffered diagnostic data from the local storage of a role instance to your desired final destination. The input parameter, sourceBufferName, indicates the value of the DataBufferName enumeration that you want to transfer.

Only one transfer of each data buffer can occur at a time. For example, if you call this method using PerformanceCounters to start transferring all performance counter data for a role instance, you cannot call it again until the transfer has completed.

Example

The following code snippet starts an on-demand transfer of performance counter data for the role instance:

// Get the diagnostic monitor for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = 
       new RoleInstanceDiagnosticManager(myStorageAccount, 
                                         "28281fc7754b44faa9ccf4911983edf1",
                                         "MyWebRole",
                                         "deployment(1).MyAzureProject.WebRole1.0");

// Start a transfer of performance counter logs.
roleInstanceDiagnosticManager.BeginOnDemandTransfer(DataBufferName.PerformanceCounters);


Todos os membros estáticos públicos (Compartilhados no Visual Basic) desse tipo são thread-safe. Quaisquer membros de instância não têm garantia de ser thread-safe.

Plataformas de desenvolvimento

Windows XP Professional com Service Pack 2 (SP2)

Plataformas de destino

Contribuições da comunidade

Mostrar:
© 2014 Microsoft