共用方式為


ArmAppPlatformModelFactory.AppPlatformMonitoringSettingProperties Method

Definition

Initializes a new instance of AppPlatformMonitoringSettingProperties.

public static Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingProperties AppPlatformMonitoringSettingProperties (Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingState? provisioningState = default, Azure.ResourceManager.AppPlatform.Models.AppPlatformErrorInfo error = default, bool? isTraceEnabled = default, string appInsightsInstrumentationKey = default, double? appInsightsSamplingRate = default, string appInsightsJavaAgentVersion = default);
static member AppPlatformMonitoringSettingProperties : Nullable<Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingState> * Azure.ResourceManager.AppPlatform.Models.AppPlatformErrorInfo * Nullable<bool> * string * Nullable<double> * string -> Azure.ResourceManager.AppPlatform.Models.AppPlatformMonitoringSettingProperties
Public Shared Function AppPlatformMonitoringSettingProperties (Optional provisioningState As Nullable(Of AppPlatformMonitoringSettingState) = Nothing, Optional error As AppPlatformErrorInfo = Nothing, Optional isTraceEnabled As Nullable(Of Boolean) = Nothing, Optional appInsightsInstrumentationKey As String = Nothing, Optional appInsightsSamplingRate As Nullable(Of Double) = Nothing, Optional appInsightsJavaAgentVersion As String = Nothing) As AppPlatformMonitoringSettingProperties

Parameters

provisioningState
Nullable<AppPlatformMonitoringSettingState>

State of the Monitoring Setting.

error
AppPlatformErrorInfo

Error when apply Monitoring Setting changes.

isTraceEnabled
Nullable<Boolean>

Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.

appInsightsInstrumentationKey
String

Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.

appInsightsSamplingRate
Nullable<Double>

Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0].

appInsightsJavaAgentVersion
String

Indicates the versions of application insight agent.

Returns

A new AppPlatformMonitoringSettingProperties instance for mocking.

Applies to