Syntax
Set-StatInterval [[-SamplingPeriodSecs] <Int32>] [[-StorageTimeSecs] <Int32>] [-Interval] <StatInterval[]> [[-Server] <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet changes the statistics interval that is specified by the provided parameters.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SamplingPeriodSecs | Int32 | Specifies a new sampling period in seconds. | false | False | |
StorageTimeSecs | Int32 | Specifies a new time period in seconds, for which the statistics information is kept. | false | False | |
Interval | StatInterval[] | Specifies the statistics interval you want to change. | true | True (ByValue) | |
Server | VIServer[] | Specifies the vCenter Server systems 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. | false | True (ByValue) | |
Confirm | SwitchParameter | If 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. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
Zero or more modified StatInterval objectsNotes
Examples
-------------------------- Example 1 --------------------------
Set-StatInterval -Interval "past day" -StorageTimeSecs 700000
Changes the storage time of the "past day" statistics interval.