Share via


Get-AzAutoscalePredictiveMetric

toekomstige metrische gegevens voor voorspellende automatische schaalaanpassing ophalen

Syntax

Get-AzAutoscalePredictiveMetric
   -InputObject <IAutoscaleIdentity>
   -Aggregation <String>
   -Interval <TimeSpan>
   -MetricName <String>
   -MetricNamespace <String>
   -Timespan <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAutoscalePredictiveMetric
   -AutoscaleSettingName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   -Aggregation <String>
   -Interval <TimeSpan>
   -MetricName <String>
   -MetricNamespace <String>
   -Timespan <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

toekomstige metrische gegevens voor voorspellende automatische schaalaanpassing ophalen

Voorbeelden

Voorbeeld 1: Voorspellende metrische gegevens ophalen voor instelling voor automatische schaalaanpassing

Get-AzAutoscalePredictiveMetric -AutoscaleSettingName test-autoscalesetting -ResourceGroupName test-group -Timespan "2021-10-14T22:00:00.000Z/2021-10-16T22:00:00.000Z" -Aggregation "Total" -Interval ([System.TimeSpan]::New(0,60,0)) -MetricName "PercentageCPU" -MetricNamespace "Microsoft.Compute/virtualMachineScaleSets"

Voorspellende metrische gegevens ophalen voor instelling voor automatische schaalaanpassing

Parameters

-Aggregation

De lijst met aggregatietypen (door komma's gescheiden) die moeten worden opgehaald.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AutoscaleSettingName

De naam van de instelling voor automatische schaalaanpassing.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De parameter DefaultProfile is niet functioneel. Gebruik de parameter SubscriptionId indien beschikbaar als u de cmdlet uitvoert voor een ander abonnement.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, zie DE SECTIE NOTES voor INPUTOBJECT-eigenschappen en maak een hash-tabel.

Type:IAutoscaleIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Interval

Het interval (bijvoorbeeld timegrain) van de query.

Type:TimeSpan
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MetricName

De namen van de metrische gegevens (door komma's gescheiden) die moeten worden opgehaald. Speciaal geval: Als een metrische naam zelf een komma bevat, gebruikt u %2 om deze aan te geven. Bijvoorbeeld: 'Metric,Name1' moet 'Metric%2Name1' zijn

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MetricNamespace

Metrische naamruimte voor het opvragen van metrische definities voor.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

De id van het doelabonnement.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Timespan

De tijdsduur van de query. Het is een tekenreeks met de volgende notatie 'startDateTime_ISO/endDateTime_ISO'.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

IAutoscaleIdentity

Uitvoerwaarden

IPredictiveResponse