Get-​Azs​Storage​Farm​Metric

Gets the metrics for a specified storage farm.

Syntax

Get-AzsStorageFarmMetric
   [-DetailedOutput]
   [-EndTimeInUtc <DateTime>]
   [-MetricNames <String[]>]
   [-SkipCertificateValidation]
   [-StartTimeInUtc <DateTime>]
   [-TimeGrain <TimeGrain>]
   [<CommonParameters>]

Description

The Get-AzsStorageFarmMetric cmdlet gets the metrics for a specified storage farm.

Examples

Example 1

$Metrics = Get-AzsStorageFarmMetricDefinition

$MetricNames = $Metrics.Name

Get-AzsStorageFarmMetric -TimeGrain Daily -StartTimeInUtc 7/4/2017 -EndTimeInUtc 7/5/2017 -MetricNames $MetricNames[2]

Optional Parameters

-DetailedOutput

Indicates that the cmdlet gets detailed information from the output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-EndTimeInUtc

Specifies the endtime of the duration for the collected metrics

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-MetricNames

Specifies an array of metric names that this cmdlet gets.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartTimeInUtc

Specifies the starttime of the duration for the collected metrics

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-TimeGrain

Specifies the aggregation precision of the metrics. Valid values are: Daily, Hourly, and Minutely. The default value is Daily.

Type:TimeGrain
Parameter Sets:Daily, Hourly, Minutely
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False