过去 60 天内未触发 Azure Functions HTTP
Azure Functions HTTP not triggered in the last 60 days
如何使用 App Insights 编写一个查询来显示过去 6 天未执行的 azure 函数
我想到了以下内容,但它只显示了 60 多天前被处决的人,它没有告诉我他们是否在过去 60 天内被处决,我试图找到那些被处决的人在过去 60 天内没有被处决,所以我可以将它们标记为删除
requests
| project timestamp, operation_Name, success, resultCode, duration, cloud_RoleName
//| where timestamp > ago(30d)
| where cloud_RoleName startswith "slapi-prd"
| where success == "True"
| where timestamp < ago(60d)
| order by timestamp desc
| take 20
如果您只想知道每个函数的最新执行时间,请使用以下代码:
requests
//please uncomment the following lines if you need them
//| where timestamp > ago(30d)
//| where cloud_RoleName startswith "slapi-prd"
//| where success == "True"
| summarize timestamp = max(timestamp) by name, cloud_RoleName
测试结果如下:
如何使用 App Insights 编写一个查询来显示过去 6 天未执行的 azure 函数
我想到了以下内容,但它只显示了 60 多天前被处决的人,它没有告诉我他们是否在过去 60 天内被处决,我试图找到那些被处决的人在过去 60 天内没有被处决,所以我可以将它们标记为删除
requests
| project timestamp, operation_Name, success, resultCode, duration, cloud_RoleName
//| where timestamp > ago(30d)
| where cloud_RoleName startswith "slapi-prd"
| where success == "True"
| where timestamp < ago(60d)
| order by timestamp desc
| take 20
如果您只想知道每个函数的最新执行时间,请使用以下代码:
requests
//please uncomment the following lines if you need them
//| where timestamp > ago(30d)
//| where cloud_RoleName startswith "slapi-prd"
//| where success == "True"
| summarize timestamp = max(timestamp) by name, cloud_RoleName
测试结果如下: