Get-EXOMailboxStatistics 和 Graph API 的 getMailboxUsageDetail 之间的邮箱统计差异。

huangapple go评论61阅读模式
英文:

Difference between mailbox statistics for Get-EXOMailboxStatistics and Graph API getMailboxUsageDetail

问题

我正在尝试获取我们组织中每个邮箱的邮箱项目计数和总大小。我尝试使用Get-EXOMailboxStatistics和Graph API,但数字接近但不同。

对于Graph API,我正在使用"Item Count"和"Storage Used (Byte)"。对于Get-EXOMailboxStatistics,我正在使用"ItemCount"和"TotalItemSize"。

Graph API链接:https://graph.microsoft.com/v1.0/reports/getMailboxUsageDetail(period='D7')

是什么原因导致它们之间的差异?它们中的一个是否包括任务、联系人、日历等内容?文档不够清晰。我查看了各种用户,但并不总是同一个函数更高。

英文:

I'm trying to get the mailbox item count & total size for every mailbox in our organization. I've tried using Get-EXOMailboxStatistics and Graph API and the figures are close but different.

For Graph API then I'm using "Item Count" & "Storage Used (Byte)". For Get-EXOMailboxStatistics then I'm using & "ItemCount" & "TotalItemSize"

Graph API: https://graph.microsoft.com/v1.0/reports/getMailboxUsageDetail(period='D7')

What explains the difference between them? Does one of them include tasks, contacts, calendar etc? The documentation isn't clear. I've looked at various users and it's not always the same function that is higher.

答案1

得分: 2

使用Get-EXOMailboxStatistics时,这是实时数据,而getMailboxUsageDetail是基于计划的报告,存储在Data-mart中(这就是为什么它可以返回得如此快速)。这并未在Graph文档中详细说明,但https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/activity-reports?view=o365-worldwide

报告可用于过去的7天、30天、90天和180天。数据不会立即存在于所有报告周期中。报告通常在48小时内可用,但有时可能需要几天才能可用。

使用相同的数据源。

英文:

When you use Get-EXOMailboxStatistics this is live data, where as the getMailboxUsageDetail is a scheduled based report stored in a Data-mart (this is why it can be returned so fast). It's not documented in the Graph docs anywhere but https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/activity-reports?view=o365-worldwide

> Reports are available for the last 7 days, 30 days, 90 days, and 180 days. Data won't exist for all reporting periods right away. The reports typically become available within 48 hours, but might sometimes take several days to become available.

uses the same data source.

huangapple
  • 本文由 发表于 2023年7月18日 01:44:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76706921.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定