C# Class Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.MetricsEventManager

Inheritance: IDisposable
Mostra file Open project: Azure/azure-webjobs-sdk-script Class Usage Examples

Public Methods

Method Description
BeginEvent ( string eventName ) : object
Dispose ( ) : void
EndEvent ( object eventHandle ) : void
LogEvent ( string eventName ) : void
MetricsEventManager ( ScriptSettingsManager settingsManager, IEventGenerator generator, int functionActivityFlushIntervalSeconds, int metricsFlushIntervalMS = DefaultFlushIntervalMS ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
TimerFlush ( object state ) : void

Flush any queued events to event source immediately.

This method may run concurrently with itself so ensure there are no unintended side effects or race conditions within the implementation.

WriteMetricEvents ( SystemMetricEvent metricEvents ) : void

Private Methods

Method Description
FunctionCompleted ( FunctionStartedEvent completedEvent ) : void
FunctionStarted ( FunctionStartedEvent startedEvent ) : void
GetNormalizedString ( string input ) : string
HostStarted ( ScriptHost scriptHost ) : void
SerializeBindings ( IEnumerable bindings ) : string

Method Details

BeginEvent() public method

public BeginEvent ( string eventName ) : object
eventName string
return object

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndEvent() public method

public EndEvent ( object eventHandle ) : void
eventHandle object
return void

LogEvent() public method

public LogEvent ( string eventName ) : void
eventName string
return void

MetricsEventManager() public method

public MetricsEventManager ( ScriptSettingsManager settingsManager, IEventGenerator generator, int functionActivityFlushIntervalSeconds, int metricsFlushIntervalMS = DefaultFlushIntervalMS ) : System
settingsManager Microsoft.Azure.WebJobs.Script.Config.ScriptSettingsManager
generator IEventGenerator
functionActivityFlushIntervalSeconds int
metricsFlushIntervalMS int
return System

TimerFlush() protected method

Flush any queued events to event source immediately.
This method may run concurrently with itself so ensure there are no unintended side effects or race conditions within the implementation.
protected TimerFlush ( object state ) : void
state object
return void

WriteMetricEvents() protected method

protected WriteMetricEvents ( SystemMetricEvent metricEvents ) : void
metricEvents SystemMetricEvent
return void