New Reports supported in Office 365 Reporting Web Service Client library

Tags: Office 365, Report, Visual Studio, Open Source, GitHub

If you need to include monitoring of Office 365 into your own custom applications, you can perform REST calls to Office 365 Admin reporting OData service, or in case that your app is .NET, you can use Office 365 Reporting Web Service Client Library. This [library is published on NuGet][1], and it is Open Source, with [full source code published on GitHub][2]. Initial release of the library did not provide any API to access reports related to SharePoint Online. So, when the library was published as Open Source, I made some contributions to the repository: I created several report definition classes for SharePoint Online and some reports related to connected clients. Here is full list of new reports (which I contributed to the repo) which are added in versions and of the library: **Reports added in version** SPOActiveUserDaily SPOActiveUserWeekly SPOActiveUserMonthly SPOActiveUserYearly SPOSkyDriveProDeployedWeekly SPOSkyDriveProDeployedMonthly SPOSkyDriveProStorageWeekly SPOSkyDriveProStorageMonthly SPOTeamSiteDeployedWeekly SPOTeamSiteDeployedMonthly SPOTeamSiteStorageWeekly SPOTeamSiteStorageMonthly SPOTenantStorageMetricDaily SPOTenantStorageMetricWeekly SPOTenantStorageMetricMonthly **Reports added in version** ClientSoftwareBrowserDetail ClientSoftwareBrowserSummary ClientSoftwareOSDetail ClientSoftwareOSSummary ConnectionByClientTypeDaily ConnectionByClientTypeWeekly ConnectionByClientTypeMonthly ConnectionByClientTypeYearly ConnectionByClientTypeDetailDaily ConnectionByClientTypeDetailWeekly ConnectionByClientTypeDetailMonthly ConnectionByClientTypeDetailYearly When Client Library is used, process for data retrieval is as follows: 1. Reporting Context is created and configured - with User Name, Password, and optional time interval for the report as parameters 2. Logger and Report Visitor are initialized 3. Reporting Stream object is created - it takes Reporting Context, name of the report and stream name as parameters. 4. Method RetrieveData on Reporting Stream is called, with previously initialized Report Visitor as an argument. At this moment, data from the report is retrieved and processed, based on the ReportVisitor configuration. Full sample code can be found in [official announcement on Office Blogs][3], or [this blog post on Julien's blog][4]. Julien is a PM in Microsoft responsible for this client library. [1]: [2]: [3]: [4]:

No Comments

Add a Comment