Share via


SPAnalyticsUsageEntry.LogGlobalAnalyticsEvent method

Creates and logs a custom analytics event that spans multiple tenants into the analytics pipeline.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub LogGlobalAnalyticsEvent ( _
    eventTypeId As Integer, _
    globalItemId As Guid, _
    site As SPSite _
)
'Usage
Dim eventTypeId As Integer
Dim globalItemId As Guid
Dim site As SPSiteSPAnalyticsUsageEntry.LogGlobalAnalyticsEvent(eventTypeId, _
    globalItemId, site)
public static void LogGlobalAnalyticsEvent(
    int eventTypeId,
    Guid globalItemId,
    SPSite site
)

Parameters

  • eventTypeId
    Type: System.Int32

    The ID of the type of analytics event to create.

  • globalItemId
    Type: System.Guid

    The global item ID, which must be a unique ID.

Remarks

It is assumed that the site subscription ID and site ID are irrelevant for events that span multiple tenants, therefore, we ignore these and reserve those values. This means the scope of the event is global within a given web application.

See also

Reference

SPAnalyticsUsageEntry class

SPAnalyticsUsageEntry members

Microsoft.SharePoint.Administration namespace