Share via


DurabilityProvider.TryGetScaleMonitor Method

Definition

Tries to obtain a scale monitor for autoscaling.

public virtual bool TryGetScaleMonitor (string functionId, string functionName, string hubName, string connectionName, out Microsoft.Azure.WebJobs.Host.Scale.IScaleMonitor scaleMonitor);
abstract member TryGetScaleMonitor : string * string * string * string * IScaleMonitor -> bool
override this.TryGetScaleMonitor : string * string * string * string * IScaleMonitor -> bool
Public Overridable Function TryGetScaleMonitor (functionId As String, functionName As String, hubName As String, connectionName As String, ByRef scaleMonitor As IScaleMonitor) As Boolean

Parameters

functionId
String

Function id.

functionName
String

Function name.

hubName
String

Task hub name.

connectionName
String

The name of the storage-specific connection settings.

scaleMonitor
Microsoft.Azure.WebJobs.Host.Scale.IScaleMonitor

The scale monitor.

Returns

True if autoscaling is supported, false otherwise.

Applies to