class AnalyticsSignal
A class representing analytics signal data about an action performed by an actor on an item in SharePoint Search Analytics.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/search/analytics/signal.py
4 - 9
simple
Purpose
AnalyticsSignal is a data container class that inherits from ClientValue and represents analytics signal information in Microsoft SharePoint Client Search Analytics. It encapsulates data about user actions or interactions with SharePoint items, providing a structured way to work with analytics events in the Office365 SharePoint API. The class is primarily used for tracking and reporting user behavior and engagement with SharePoint content.
Source Code
class AnalyticsSignal(ClientValue):
"""Contains data about an action performed by an actor on an item."""
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Client.Search.Analytics.AnalyticsSignal"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
__init__: The constructor parameters are inherited from the ClientValue base class. Typically accepts keyword arguments that map to the properties of the analytics signal entity, such as action type, actor information, item details, and timestamp data.
Return Value
Instantiation returns an AnalyticsSignal object that represents a single analytics signal event. The entity_type_name property returns the string 'Microsoft.SharePoint.Client.Search.Analytics.AnalyticsSignal', which identifies the SharePoint entity type for serialization and API communication.
Class Interface
Methods
@property
def entity_type_name(self) -> str
property
Purpose: Returns the fully qualified entity type name for the SharePoint Analytics Signal entity, used for serialization and API communication
Returns: A string containing 'Microsoft.SharePoint.Client.Search.Analytics.AnalyticsSignal', which identifies this entity type in the SharePoint API
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type identifier for analytics signals | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.sharepoint.client.search.analytics.analytics_signal import AnalyticsSignal
Usage Example
from office365.runtime.client_value import ClientValue
from office365.sharepoint.client.search.analytics.analytics_signal import AnalyticsSignal
# Instantiate an AnalyticsSignal object
signal = AnalyticsSignal()
# Access the entity type name
entity_type = signal.entity_type_name
print(entity_type) # Output: Microsoft.SharePoint.Client.Search.Analytics.AnalyticsSignal
# Typically used within SharePoint context for analytics tracking
# Example: Sending analytics signal to SharePoint
# ctx = ClientContext(site_url).with_credentials(credentials)
# signal_data = AnalyticsSignal()
# # Set signal properties as needed
# ctx.execute_query()
Best Practices
- This class is primarily a data container and should be instantiated with appropriate analytics signal data before being sent to SharePoint
- Always use within a proper SharePoint ClientContext to ensure proper authentication and API communication
- The entity_type_name property is used internally by the Office365 library for serialization and should not be modified
- Inherit from this class if you need to extend analytics signal functionality with custom properties
- Ensure proper permissions are configured in SharePoint before attempting to send or retrieve analytics signals
- This class follows the ClientValue pattern used throughout the Office365-REST-Python-Client library for representing SharePoint entities
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class AnalyticsAction 84.5% similar
-
class SignalStore 79.3% similar
-
class SPAnalyticsUsageService 63.0% similar
-
class AnalyticsUsageEntry 60.1% similar
-
class AuditData 54.7% similar