@@ -89,7 +89,9 @@ def get_email_activity_user_detail(self, period):
89
89
The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
90
90
Dn where n represents the number of days over which the report is aggregated. Required.
91
91
"""
92
- qry = create_report_query (self , "getEmailActivityUserDetail" , period , return_stream = True )
92
+ qry = create_report_query (
93
+ self , "getEmailActivityUserDetail" , period , return_stream = True
94
+ )
93
95
self .context .add_query (qry )
94
96
return qry .return_type
95
97
@@ -105,18 +107,48 @@ def get_email_app_usage_apps_user_counts(self, period):
105
107
self .context .add_query (qry )
106
108
return qry .return_type
107
109
110
+ def get_email_app_usage_user_counts (self , period ):
111
+ """
112
+ Get the count of unique users that connected to Exchange Online using any email app.
113
+
114
+ :param str period: Specifies the length of time over which the report is aggregated.
115
+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
116
+ Dn where n represents the number of days over which the report is aggregated. Required.
117
+ """
118
+ qry = create_report_query (self , "getEmailAppUsageUserCounts" , period , True )
119
+ self .context .add_query (qry )
120
+ return qry .return_type
121
+
122
+ def get_mailbox_usage_storage (self , period ):
123
+ """
124
+ Get the amount of storage used in your organization.
125
+
126
+ :param str period: Specifies the length of time over which the report is aggregated.
127
+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
128
+ Dn where n represents the number of days over which the report is aggregated. Required.
129
+ """
130
+ qry = create_report_query (self , "getMailboxUsageStorage" , period , True )
131
+ self .context .add_query (qry )
132
+ return qry .return_type
133
+
108
134
def get_m365_app_user_counts (self , period = None ):
109
135
"""
110
136
Get a report that provides the trend in the number of active users for each app (Outlook, Word, Excel,
111
137
PowerPoint, OneNote, and Teams) in your organization.
112
138
"""
113
- return_type = ClientResult (self .context , str ())
139
+ return_type = ClientResult (self .context , bytes ())
114
140
qry = FunctionQuery (
115
141
self , "getM365AppUserCounts" , {"period" : period }, return_type
116
142
)
117
143
self .context .add_query (qry )
118
144
return return_type
119
145
146
+ def get_office365_activation_counts (self ):
147
+ """Get the count of Microsoft 365 activations on desktops and devices."""
148
+ qry = create_report_query (self , "getOffice365ActivationCounts" )
149
+ self .context .add_query (qry )
150
+ return qry .return_type
151
+
120
152
def get_office365_activations_user_counts (self ):
121
153
"""Get the count of Microsoft 365 activations on desktops and devices."""
122
154
qry = create_report_query (self , "getOffice365ActivationsUserCounts" )
@@ -283,6 +315,20 @@ def get_sharepoint_site_usage_site_counts(self, period):
283
315
self .context .add_query (qry )
284
316
return qry .return_type
285
317
318
+ def get_teams_team_counts (self , period ):
319
+ """
320
+ Get the number of teams of a particular type in an instance of Microsoft Teams.
321
+
322
+ :param str period: Specifies the length of time over which the report is aggregated.
323
+ The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format
324
+ Dn where n represents the number of days over which the report is aggregated. Required.
325
+ """
326
+ qry = create_report_query (
327
+ self , "getTeamsTeamCounts" , period , return_stream = True
328
+ )
329
+ self .context .add_query (qry )
330
+ return qry .return_type
331
+
286
332
@property
287
333
def authentication_methods (self ):
288
334
"""Container for navigation properties for Azure AD authentication methods resources."""
0 commit comments