AgentsInfo 表的查询

有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅 查询

按所有者分类的活动 AI 代理

列出过去 7 天内的活动 AI 代理及其平台、模型、发布状态和所有者。

AgentsInfo
| where LifecycleStatus == "Active"
| where TimeGenerated >= ago(7d)
| summarize arg_max(TimeGenerated, *) by AgentId
| mv-expand Owner = Owners
| project AgentId, Name, Platform, Model, PublishedStatus, Owner, LastUpdatedDateTime
| order by LastUpdatedDateTime desc

按平台和模型排序的 AI 代理

聚合过去 30 天内按平台和模型分组的 AI 代理数及其生命周期状态。

AgentsInfo
| where TimeGenerated >= ago(30d)
| summarize arg_max(TimeGenerated, *) by AgentId
| summarize AgentCount = dcount(AgentId),
            ActiveCount = dcountif(AgentId, LifecycleStatus == "Active"),
            BlockedCount = dcountif(AgentId, LifecycleStatus == "Blocked")
            by Platform, Model
| order by AgentCount desc