英文:
Encoding used by Kusto Web Explorer to generate shareable links
问题
使用“链接到剪贴板”按钮时,Kusto Web Explorer 用于编码 KQL 查询的编码方式是什么?
例如,查询 'StormEvents | count' 的链接是 'https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSspVqhRSM4vzSsBALU2eHsTAAAA'。
我尝试对查询参数进行 base64 解码,但解码器报告它是无效的输入。
英文:
Which encoding is used to encode the kql query when using the ‘Link to clipboard’ button on Kusto Web Explorer?
For example, the link for the query 'StormEvents | count' is 'https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSspVqhRSM4vzSsBALU2eHsTAAAA'.
I tried base64 decoding the query param, but the decoder complains it is an invalid input.
答案1
得分: 2
这是一种先使用gzip压缩,然后进行base64编码的组合。
如文档所述:https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/deeplink#specifying-the-query-or-control-command-in-the-uri
英文:
It is a combination of gzip compression followed by base64 encoding.
As mentioned in the documentation: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/deeplink#specifying-the-query-or-control-command-in-the-uri
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论