AutoscaleMetricSourceBuilder.BuildCloudServiceMetricSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.