你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmDynatraceModelFactory.DynatraceMonitorVmInfo 方法

定义

初始化 DynatraceMonitorVmInfo 的新实例。

public static Azure.ResourceManager.Dynatrace.Models.DynatraceMonitorVmInfo DynatraceMonitorVmInfo (Azure.Core.ResourceIdentifier resourceId = default, string version = default, Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentMonitoringType? monitoringType = default, Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentAutoUpdateSetting? autoUpdateSetting = default, Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentUpdateStatus? updateStatus = default, Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentAvailabilityState? availabilityState = default, Azure.ResourceManager.Dynatrace.Models.DynatraceLogModuleState? logModule = default, string hostGroup = default, string hostName = default);
static member DynatraceMonitorVmInfo : Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentMonitoringType> * Nullable<Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentAutoUpdateSetting> * Nullable<Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentUpdateStatus> * Nullable<Azure.ResourceManager.Dynatrace.Models.DynatraceOneAgentAvailabilityState> * Nullable<Azure.ResourceManager.Dynatrace.Models.DynatraceLogModuleState> * string * string -> Azure.ResourceManager.Dynatrace.Models.DynatraceMonitorVmInfo
Public Shared Function DynatraceMonitorVmInfo (Optional resourceId As ResourceIdentifier = Nothing, Optional version As String = Nothing, Optional monitoringType As Nullable(Of DynatraceOneAgentMonitoringType) = Nothing, Optional autoUpdateSetting As Nullable(Of DynatraceOneAgentAutoUpdateSetting) = Nothing, Optional updateStatus As Nullable(Of DynatraceOneAgentUpdateStatus) = Nothing, Optional availabilityState As Nullable(Of DynatraceOneAgentAvailabilityState) = Nothing, Optional logModule As Nullable(Of DynatraceLogModuleState) = Nothing, Optional hostGroup As String = Nothing, Optional hostName As String = Nothing) As DynatraceMonitorVmInfo

参数

resourceId
ResourceIdentifier

Azure VM 资源 ID。

version
String

VM 上安装的 Dynatrace 代理的版本。

monitoringType
Nullable<DynatraceOneAgentMonitoringType>

OneAgent 的监视模式。

autoUpdateSetting
Nullable<DynatraceOneAgentAutoUpdateSetting>

更新 OneAgent 的设置。

updateStatus
Nullable<DynatraceOneAgentUpdateStatus>

OneAgent 的当前更新状态。

availabilityState
Nullable<DynatraceOneAgentAvailabilityState>

OneAgent 的可用性状态。

logModule
Nullable<DynatraceLogModuleState>

指示是否启用日志模块。

hostGroup
String

主机组的名称。

hostName
String

主机的名称。

返回

用于模拟的新 DynatraceMonitorVmInfo 实例。

适用于