英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论