class SignalStore
A class that provides methods for managing the SharePoint analytics signal store, inheriting from Entity base class.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/search/analytics/signal_store.py
5 - 17
simple
Purpose
SignalStore is a specialized entity class designed to interact with Microsoft SharePoint's Search Analytics Signal Store. It serves as a client-side representation of the server-side SignalStore resource, enabling management and interaction with analytics signals in SharePoint. The class follows the Office365 REST API pattern for entity management, providing a typed interface to the underlying SharePoint analytics infrastructure.
Source Code
class SignalStore(Entity):
"""Provides methods for managing the analytics signal store."""
def __init__(self, context, resource_path):
if resource_path is None:
resource_path = ResourcePath(
"Microsoft.SharePoint.Client.Search.Analytics.SignalStore"
)
super(SignalStore, self).__init__(context, resource_path)
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Client.Search.Analytics.SignalStore"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
Entity | - |
Parameter Details
context: The client context object that manages the connection to SharePoint and handles authentication, request execution, and response processing. This is typically an instance of ClientContext that maintains the session state and provides methods for communicating with the SharePoint server.
resource_path: Optional ResourcePath object that specifies the location of the SignalStore resource in the SharePoint API hierarchy. If None is provided, a default ResourcePath is created pointing to 'Microsoft.SharePoint.Client.Search.Analytics.SignalStore'. This path is used to construct API endpoints for operations on the signal store.
Return Value
Instantiation returns a SignalStore object that represents a connection to the SharePoint analytics signal store. The object inherits all methods and properties from the Entity base class, providing capabilities for CRUD operations, property management, and server communication. The entity_type_name property returns the string 'Microsoft.SharePoint.Client.Search.Analytics.SignalStore' which identifies the server-side type.
Class Interface
Methods
__init__(self, context, resource_path) -> None
Purpose: Initializes a new SignalStore instance with the provided context and resource path
Parameters:
context: ClientContext object for SharePoint communicationresource_path: Optional ResourcePath object; if None, defaults to the standard SignalStore path
Returns: None - constructor initializes the instance
@property entity_type_name(self) -> str
property
Purpose: Returns the fully qualified type name of the SignalStore entity as recognized by SharePoint
Returns: String 'Microsoft.SharePoint.Client.Search.Analytics.SignalStore' representing the server-side entity type
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
context |
ClientContext | Inherited from Entity base class; stores the client context used for server communication | instance |
resource_path |
ResourcePath | Inherited from Entity base class; stores the API path to this SignalStore resource | instance |
Dependencies
office365-runtimeoffice365-sharepoint
Required Imports
from office365.sharepoint.search.analytics.signal_store import SignalStore
from office365.runtime.paths.resource_path import ResourcePath
from office365.sharepoint.entity import Entity
Usage Example
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.search.analytics.signal_store import SignalStore
from office365.runtime.paths.resource_path import ResourcePath
# Authenticate and create context
ctx = ClientContext('https://yourtenant.sharepoint.com/sites/yoursite').with_credentials(
UserCredential('username@domain.com', 'password')
)
# Create SignalStore instance with default resource path
signal_store = SignalStore(ctx, None)
# Or create with custom resource path
custom_path = ResourcePath('Microsoft.SharePoint.Client.Search.Analytics.SignalStore')
signal_store = SignalStore(ctx, custom_path)
# Access entity type name
print(signal_store.entity_type_name)
# Output: Microsoft.SharePoint.Client.Search.Analytics.SignalStore
# The SignalStore inherits Entity methods for server operations
# signal_store.execute_query() would execute pending requests
Best Practices
- Always provide a valid ClientContext instance that is properly authenticated before instantiating SignalStore
- Use the default resource_path (None) unless you have a specific need to customize the API endpoint path
- The SignalStore instance maintains state through its parent Entity class, so reuse the same instance for multiple operations within a session
- Call execute_query() on the context after performing operations to commit changes to the server
- Handle authentication errors and network exceptions when working with SharePoint resources
- Ensure the authenticated user has appropriate permissions for Search Analytics operations
- The entity_type_name property is primarily used internally by the Office365 library for type resolution and should not typically be modified
- SignalStore follows the lazy loading pattern common in Office365 entities - properties may not be populated until explicitly loaded or queried
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class AnalyticsSignal 79.3% similar
-
class AnalyticsAction 66.5% similar
-
class SPAnalyticsUsageService 62.0% similar
-
class ProfileImageStore 60.4% similar
-
class AnalyticsUsageEntry 59.0% similar