Application Insights包含空间的查询属性

时间:2016-11-02 17:27:13

标签: azure-application-insights

我想在Application Insights

中使用Google Analytics查询以下事件
makeFileIntoBlob(_imagePath) {

  return new Promise((resolve, reject) => {
    window.resolveLocalFileSystemURL(_imagePath, fileEntry => {

      fileEntry.file(file => {

        var component = /* reference to ionic2 component */ ;

        var img = document.createElement("img");

        img.onload = () => {

          var resizedImg = component.imgResizerSrvc.resize(this, 480, 480);
          var imgBlob = new File([resizedImg], "sample.jpg", {
            type: "image/jpeg"
          });
          resolve(imgBlob);

        };

        img.src = URL.createObjectURL(file);
      });
    });
  });
}

我可以查询不包含空格的属性。

{
    "Description": "Error",
    "EventData": {
       "AccountId": "123",
       "Exception Message": "Data at the root level is invalid.",
       "Error Type": "ExceptionThrown"
     }
}

如何查询具有空格的属性。以下查询不起作用

  Events | where Timestamp > ago(30min)
  | project Data.EventData.AccountId

1 个答案:

答案 0 :(得分:1)

数组格式接受引号。

Events | where Timestamp > ago(30min) | project Data.EventData.["Exception Message"]