Get-​Metrics

{{Fill in the Synopsis}}

Syntax

Get-Metrics
   [-ResourceId] <String>
   [-TimeGrain] <TimeSpan>
   [-DetailedOutput]
   [-EndTime <DateTime>]
   [-MetricNames <String[]>]
   [-StartTime <DateTime>]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-ResourceId

The resource Id

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

The time grain of the query

Type:TimeSpan
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-DetailedOutput

Return object with all the details of the records (the default is to return only some attributes, i.e. no detail)

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

The end time of the query

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

The metric names of the query

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

The start time of the query

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

Inputs

System.String

System.TimeSpan System.DateTime System.String[] System.Management.Automation.SwitchParameter

Outputs

Microsoft.Azure.Insights.Models.Metric[]