警报条件下的连字符 [英] Hyphens in alert conditions

查看:126
本文介绍了警报条件下的连字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何使用这个命令支持连字符(它们被忽略)?

az monitor metrics alert create -n ... -g ... --scopes ... - condition" total IncomingRequests< 1000其中EntityName
包含my-name-with-hyphens"

我得到的输出是(尽管命令成功,带有ommited连字符):

Output that I get is (altough the command succeeds with ommited hyphens):

一般情况下,我没有找到有关此处使用的查询语言的任何参考。这不是Kusto,对吗?

In general, I did not find any reference on the query language in use here. This is not Kusto, right?




推荐答案

您好Denis,

Hi Denis,

最新版本支持Where子句中的连字符,请确保您使用的是最新版本的Azure CLI,因为仅在大约一个月前添加了可支持性。  

Hyphen in the Where clause is supported in the latest version, can you please make sure you are on the latest version of Azure CLI , since the supportability has been added only a month or so ago.  

相关GitHub问题
链接
(这里讨论了Metric Name中的支持,但是也应该支持Where子句中的值。)

Related GitHub Issue link (this talks about support in Metric Name however the values in Where clause should also be supported).

希望上述信息有所帮助,但如果您仍然看到任何问题,请返回。  

Hope the above information helps, however if you still see any issue please revert back.  


这篇关于警报条件下的连字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆