你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzPrometheusRuleGroupActionObject

为 PrometheusRuleGroupAction 创建内存中对象。

语法

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

说明

为 PrometheusRuleGroupAction 创建内存中对象。

示例

示例 1:为 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…

为 PrometheusRuleGroupAction 创建内存中对象。

参数

-ActionGroupId

要使用的操作组的资源 ID。

类型:String
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-ActionProperty

操作组对象的属性。 若要构造,请参阅 ACTIONPROPERTY 属性的 NOTES 部分并创建哈希表。

类型:IPrometheusRuleGroupActionProperties
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

输出

PrometheusRuleGroupAction