Set-StatInterval

This cmdlet changes the statistics interval that is specified by the provided parameters.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Interval
StatInterval[] 2
  • pipeline
  • Specifies the statistics interval you want to change.
    optional
    StorageTimeSecs
    Int32 1 Specifies a new time period in seconds, for which the statistics information is kept.
    optional
    Server
    VIServer[] 3
  • wildcards
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
    optional
    SamplingPeriodSecs
    Int32 named Specifies a new sampling period in seconds.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Stat.StatInterval

    Examples


    Example 1

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

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

    Related Commands

    Feedback

    Was this page helpful?