Azure监视器中的服务总线队列的ARM模板
问题描述:
我已使用ARM模板为Azure服务总线命名空间创建了度量标准并成功部署。
问题:
在"条件"中我们在"EntityName"和"EntityName"下面有一个名为"DimensionName"的选项。 - >将选中* select *以监视服务总线命名空间。如何在ARM模板中添加该部件名称
I have created metric alert for Azure service bus namespace using ARM templates and deployed successfully.
Issues:
In "Condition" section we have option called "DimensionName", under "EntityName" -> will check box select* to monitor under the service bus namespace. How to add that part name in ARM templates
Vinoth
答
我检查了REST API的响应是什么,它看起来像这样
I checked what the response from the REST API was and it look something like this
"criteria": {
"allOf": [
{
"threshold": 100.0,
"name": "Metric1",
"metricNamespace": "Microsoft.ServiceBus/namespaces",
"metricName": "IncomingMessages",
"dimensions": [
{
"name": "EntityName",
"operator": "Include",
"values": ["*"]
}
],
"operator": "GreaterThan",
"timeAggregation": "Total",
"monitorTemplateType": 8
}
],
"odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
},