New-VsanHealthCheckThreshold

This cmdlet creates a vSAN health check threshold object locally. This cmdlet is used to set a capacity threshold in Set-VsanClusterConfiguration.

Syntax

-Enabled  <Boolean>
-RedValue  <Int64>
-Target  <VsanHealthCheckThresholdTarget>
-YellowValue  <Int64>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Enabled
Boolean named Specifies whether the health check threshold is enabled.
required
RedValue
Int64 named Specifies the red line value, which is a percentage ranging from 0 to 100.
required
Target
VsanHealthCheckThresholdTarget named Specifies the target, on which you want to set a health check threshold. The possible values are VsanDatastore and VsanDirectDatastore.
required
YellowValue
Int64 named Specifies the yellow line value, which is a percentage ranging from 0 to 100.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanHealthCheckThreshold

Examples


Example 1

New-VsanHealthCheckThreshold -Enabled 1 -YellowValue 95 -RedValue 99 -Target VsanDatastore

Creates a vSAN health check threshold object locally with 95 yellow value, 99 red value, and VsanDatastore as the target.

Example 2

New-VsanHealthCheckThreshold -Enabled 1 -YellowValue 90 -RedValue 99 -Target VsanDirectDatastore

Creates a vSAN health check threshold object locally with 90 yellow value, 99 red value, and VsanDirectDatastore as the target.

Related Commands

Feedback

Was this page helpful?