vSphere PowerCLI Reference

Set-StatInterval

Synopsis

Changes the statistics interval that is specified by the provided parameters.

Syntax

Set-StatInterval [[-SamplingPeriodSecs] <Int32>] [[-StorageTimeSecs] <Int32>] [-Interval] <StatInterval[]> [[-Server] <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-Stat
Get-StatType
Get-StatInterval
New-StatInterval
Remove-StatInterval

Detailed Description

Changes the statistics interval that is specified by the provided parameters.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
SamplingPeriodSecsInt32Specify a new sampling period in seconds.falsefalse
StorageTimeSecsInt32Specify a new time period in seconds, for which the statistics information is kept.falsefalse
IntervalStatInterval[]Specify the statistics interval you want to change.truetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse$true
WhatIfSwitchParameterIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

StatInterval

Notes

Examples

-------------- Example 1 --------------

Set-StatInterval -Interval "past day" -StorageTimeSecs 700000

Changes the storage time of the "past day" statistics interval.


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.