Dela via


New-AzPrometheusRuleGroupActionObject

Skapa ett minnesinternt objekt för PrometheusRuleGroupAction.

Syntax

New-AzPrometheusRuleGroupActionObject
   [-ActionGroupId <String>]
   [-ActionProperty <IPrometheusRuleGroupActionProperties>]
   [<CommonParameters>]

Description

Skapa ett minnesinternt objekt för PrometheusRuleGroupAction.

Exempel

Exempel 1: Skapa ett minnesinternt objekt för PrometheusRuleGroupAction.

New-AzPrometheusRuleGroupActionObject -ActionGroupId /subscriptions/fffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MyresourceGroup/providers/microsoft.insights/actiongroups/MyActionGroup -ActionProperty @{"key1" = "value1"}

ActionGroupId
-------------
/subscriptions/fffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MyresourceGroup/providers/microsoft.insights/acti…

Skapa ett minnesinternt objekt för PrometheusRuleGroupAction.

Parametrar

-ActionGroupId

Resurs-ID för åtgärdsgruppen som ska användas.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ActionProperty

Egenskaperna för ett åtgärdsgruppsobjekt. Information om hur du skapar finns i AVSNITTET ANTECKNINGAR för ACTIONPROPERTY-egenskaper och skapa en hash-tabell.

Typ:IPrometheusRuleGroupActionProperties
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

Utdata

PrometheusRuleGroupAction