WebHostMetricsLogger Class

 

This implementation of IMetricsLogger flushes metrics to disk on a regular interval. These files are consumed by Antares and imported into our MDS metrics tables.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Diagnostics
Assembly:  Microsoft.WindowsAzure.Mobile.Service.WebHost (in Microsoft.WindowsAzure.Mobile.Service.WebHost.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.Diagnostics.WebHostMetricsLogger

Syntax

public class WebHostMetricsLogger : IMetricsLogger, IRegisteredObject, 
    IDisposable
public ref class WebHostMetricsLogger : IMetricsLogger, IRegisteredObject, 
    IDisposable
type WebHostMetricsLogger = 
    class
        interface IMetricsLogger
        interface IRegisteredObject
        interface IDisposable
    end
Public Class WebHostMetricsLogger
    Implements IMetricsLogger, IRegisteredObject, IDisposable

Constructors

Name Description
System_CAPS_pubmethod WebHostMetricsLogger(ServiceSettingsDictionary)

System_CAPS_pubmethod WebHostMetricsLogger(ServiceSettingsDictionary, Int32)

Properties

Name Description
System_CAPS_pubproperty QueuedEvents

Gets the collection of events that will be flushed on the next flush interval.

Methods

Name Description
System_CAPS_pubmethod BeginEvent(String)

System_CAPS_protmethod CreateLogFolder(String)

System_CAPS_protmethod CreateTimer(Int32)

System_CAPS_pubmethod Dispose()

System_CAPS_protmethod Dispose(Boolean)

System_CAPS_pubmethod EndEvent(Object)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetLogFilePath()

Get a unique path to a new log file.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod LogEvent(String)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod RegisterObject(IRegisteredObject)

System_CAPS_pubmethod Start()

Initializes and starts the logger, including the flush timer.

System_CAPS_pubmethod Stop(Boolean)

This method is called by the ASP.NET infrastructure when ASP.NET is about to take down the app domain. See IRegisteredObject for more information.

System_CAPS_protmethod TimerFlush(Object)

Flush any queued events to disk immediately.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_protmethod UnregisterObject(IRegisteredObject)

System_CAPS_protmethod WriteLogFile(String, IEnumerable<String>)

Thread Safety

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

See Also

Microsoft.WindowsAzure.Mobile.Service.Diagnostics Namespace

Return to top