共用方式為


AutoscaleMetricSourceBuilder.BuildCloudServiceMetricSource Method

Definition

Overloads

BuildCloudServiceMetricSource(String, String, Boolean)

Build the metric source of a cloud service role.

BuildCloudServiceMetricSource(String, String, String, Boolean)

Build the metric source of a cloud service role instance.

BuildCloudServiceMetricSource(String, String, Boolean)

Build the metric source of a cloud service role.

public static string BuildCloudServiceMetricSource (string cloudServiceName, string roleName, bool isProductionSlot);
static member BuildCloudServiceMetricSource : string * string * bool -> string
Public Shared Function BuildCloudServiceMetricSource (cloudServiceName As String, roleName As String, isProductionSlot As Boolean) As String

Parameters

cloudServiceName
String

The cloud service name.

roleName
String

The role name

isProductionSlot
Boolean

A flag that determines whether deployment is in production or staging slot.

Returns

The autoscale metric source.

Applies to

BuildCloudServiceMetricSource(String, String, String, Boolean)

Build the metric source of a cloud service role instance.

public static string BuildCloudServiceMetricSource (string cloudServiceName, string roleName, string roleInstanceName, bool isProductionSlot);
static member BuildCloudServiceMetricSource : string * string * string * bool -> string
Public Shared Function BuildCloudServiceMetricSource (cloudServiceName As String, roleName As String, roleInstanceName As String, isProductionSlot As Boolean) As String

Parameters

cloudServiceName
String

The cloud service name.

roleName
String

The role name

roleInstanceName
String

The role instance name

isProductionSlot
Boolean

A flag that determines whether deployment is in production or staging slot.

Returns

The autoscale metric source.

Applies to