Počet procesorů parametru UserRole nástroje System Center 1801+ Virtual Machine Manager
Microsoft.SystemCenter.VirtualMachineManager.UserRoleCPUCountMonitor (UnitMonitor)
Sleduje kvótu počtu procesorů role uživatele
Element properties:
Source Code:
<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.UserRoleCPUCountMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.UserRole" TypeID="Microsoft.SystemCenter.VirtualMachineManager.UserRoleUsageUnitMonitorType" ParentMonitorID="SystemHealth!System.Health.ConfigurationState">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.UserRoleCPUCountMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.UserRole"]/RoleID$-CPU']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UserRoleCPUCountHealthy" MonitorTypeStateID="UserRoleHealthy" HealthState="Success"/>
<OperationalState ID="UserRoleCPUCountWarning" MonitorTypeStateID="UserRoleWarning" HealthState="Warning"/>
<OperationalState ID="UserRoleCPUCountCritical" MonitorTypeStateID="UserRoleCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>1800</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<WarningThreshold>80</WarningThreshold>
<CriticalThreshold>90</CriticalThreshold>
<UserRoleId>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.UserRole"]/RoleID$-CPU</UserRoleId>
<VMMServer>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.UserRole"]/VMMServer$</VMMServer>
</Configuration>
</UnitMonitor>