Google管理员sdk - 用户使用情况报告不可用 [英] Google admin sdk - user usage reports not available

查看:134
本文介绍了Google管理员sdk - 用户使用情况报告不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要求您使用google admin sdk,用户使用情况报告。我有以下问题:


  1. 用于检索使用情况报告的参数之一是日期。不幸的是,对于当前的日期,报告还不可用 - 我必须在过去几天使用日期。是否有任何官方规则,建议或任何建议如何知道报告已经提供的最近日期?我是否应该在过去,三天,一周或...中查询报告一天?我只想得到最新的结果,而不必担心日期...
  2. 更多:有时返回的报告对于一个的谷歌应用程序,但对于其他类似文档 - 我警告说它还没有准备好。所以我的问题是:如何获取所有应用程序的最新数据? (主要是:accounts,docs,gmail)。

    我使用all参数一次检索所有账户。


    $ b $第二个问题与第一个问题有关:假设我收到部分数据 - 例如没有文档报告 - 有可能我检索所有帐户的报告(电子邮件)其中一些将准备好报告并提供一些仅有的部分数据?或者这些报告总是准备好或部分发布,并且对于所有帐户(电子邮件),我应该期望获得相同的完整或部分数据?


解决方案


是否有任何官方规则,建议或任何建议如何知道大多数报告的最近日期已经可用?我是否应该在过去,三天,一周或...中查询报告一天?我只想拥有最新的结果,而不用担心日期......


UserUsageReport 会为您的帐户用户返回Google Apps服务活动。 get()方法为一组帐户用户检索报告。您可以查询任何日期值,前提是其时间戳记表示为 ISO 8601 ,并且应使用您的帐户时区。


如何获取所有应用的最新数据? (主要是:accounts,docs,gmail)。


我猜你正在使用 CustomerUsageReport ,可能需要一段时间才能处理报告,因此您可能需要重试才能拨打电话第二个问题与第一个问题有关:假设我收到部分数据 - 例如没有文档报告 - 是否有可能在我检索所有帐户(电子邮件)的报告时,其中一些报告将准备好报告并提供部分数据?或者这些报告总是准备好或部分发布,并且对于所有帐户(电子邮件),我应该期望获得相同的完整或部分数据?

我认为这取决于数据现在是否可用。您可以在访问API进行测试时测试各种参数值。


I would like to ask you for help with google admin sdk, User Usage Reports. I got following questions:

  1. One of the parameters used to retrieve a usage reports is a date. Unfortunately for current date the reports are not yet available - I must use a date few days in the past. Is there any official rule, recommendation or any advice how to know most recent date for which the reports are already available? Should I query reports for a one day in the past, 3 days, week or...? I just want to have the latest results without worrying about the date...

Even more: sometimes the returned reports are OK for one of the google apps but for other one - like docs - I got warning that its not ready. So my question is: how to get most recent data for all of the apps? (mainly: accounts, docs, gmail).

I am using "all" parameter to retrieve all accounts at once.

  1. Second question is related to first one: assuming I receive partial data - for example no reports for docs - is it possible that when I retrieve reports for all accounts (emails) some of them will have reports ready and some of the only partial data? Or the reports are always either ready or partial and for all accounts (emails) I should expect the same, full or partial data?

Thanks in advance!

解决方案

Is there any official rule, recommendation or any advice how to know most recent date for which the reports are already available? Should I query reports for a one day in the past, 3 days, week or...? I just want to have the latest results without worrying about the date...

UserUsageReport returns Google Apps service activities across your account's users. the get() method retrieves a report for a set of account users. You can query for any date value provided that its timestamp is represented as ISO 8601 and should use your account's timezone.

how to get most recent data for all of the apps? (mainly: accounts, docs, gmail).

I'm guessing you're using CustomerUsageReport, it may take a while to process a report and thus you may have to retry to call it again after a few hours.

Second question is related to first one: assuming I receive partial data - for example no reports for docs - is it possible that when I retrieve reports for all accounts (emails) some of them will have reports ready and some of the only partial data? Or the reports are always either ready or partial and for all accounts (emails) I should expect the same, full or partial data?

I think this will depend on if the data are now available or not. You can test out various parameter values when accessing the API to test it out.

这篇关于Google管理员sdk - 用户使用情况报告不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆