grove.connectors.sf package¶
SalesForce connectors for Grove.
Submodules¶
grove.connectors.sf.event_log module¶
SalesForce Event Log connector for Grove.
- class grove.connectors.sf.event_log.Connector(config: ConnectorConfig, context: Dict[str, str])[source]¶
Bases:
BaseConnector
- LOG_ORDER = 'CHRONOLOGICAL'¶
- NAME = 'sf_event_log'¶
- POINTER_PATH = 'TIMESTAMP_DERIVED'¶
- collect()[source]¶
Collects EventLogs from the SF Cloud API.
This will first check whether there are any pointers cached to indicate previous collections. If not, the last week of data will be collected.
- Raises:
RequestFailedException – An HTTP request failed.
ConfigurationException – An issue was found with the configuration for this connector.
- property token¶
Fetches the SalesForce token from the configuration.
This is required as this is a third authentication element required by SF.
- Returns:
The “token” portion of the connector’s configuration.