Get-​Metric​Definitions

{{Fill in the Synopsis}}

Syntax

Get-MetricDefinitions
   [-ResourceId] <String>
   [-DetailedOutput]
   [-MetricNames <String[]>]
   [<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

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
-MetricNames

The metric names of the query

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

Inputs

System.String

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

Outputs

Microsoft.Azure.Insights.Models.MetricDefinition[]