emailActivityStatistics resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents data about the user's time spent in email activities in Microsoft Outlook. This is based on activityStatistics.

Properties

Property Type Description
activity analyticsActivityType Email activity for which statistics are returned.
duration Duration Total hours spent on emails. The value is represented in ISO 8601 format for durations.
endDate Date Date when the email activity ended. The value is represented in ISO 8601 format for calendar dates. For example, the property value could be "2019-07-04" that follows the YYYY-MM-DD format.
id String Read-only ID for the email activity.
startDate Date Date when the email activity started. The value is represented in ISO 8601 format for calendar dates. For example, the property value could be "2019-07-03" that follows the YYYY-MM-DD format.
timeZoneUsed String The time zone that the user sets in Outlook calendar is used for the computation. For example, the property value could be "Pacific Standard Time."
afterHours Duration Total hours spent on email outside of working hours, which is based on the user's Outlook calendar setting for work hours. The value is represented in ISO 8601 format for durations.
readEmail Duration Total hours spent reading email. The value is represented in ISO 8601 format for durations.
sentEmail Duration Total hours spent writing and sending email. The value is represented in ISO 8601 format for durations.

Relationships

None

JSON representation

The following is a JSON representation of the resource.

{
  "activity": "string",
  "duration": "String (ISO 8601 duration)",
  "endDate": "String (ISO 8601)",
  "id": "String (identifier)",
  "startDate": "String (ISO 8601)",
  "timeZoneUsed": "String",
  "afterHours": "String (ISO 8601 duration)",
  "readEmail": "String (ISO 8601 duration)",
  "sentEmail": "String (ISO 8601 duration)"
}