- Create a run
- Stream data for an asset, including the run ID in each request
- View the run in Sift
Creating a Run
- Use the RunService.CreateRun endpoint
- The response will contain the newly created run details
- Use the returned run ID when streaming data
Client KeysThe Run message has an optional
client_key field that gives users the ability to specify their own unique identifier for this resource. Although it is optional, it is highly recommended to be provided as it will make querying runs much more convenient. A client key can be provided during run creationRetrieving Runs
Sift provides two methods for retrieving runs:-
RunService.GetRun
- Requires a specific run ID
- Useful when the run ID is known
-
RunService.ListRuns
- Allows searching for runs using various criteria
- Useful when the exact run ID is unknown
- Search parameters include:
client_keyname- Other fields specified in the ListRunsRequest
client_key:
Updating a Run
To update an existing run, use the RunService.UpdateRun endpoint.Using the Run
There are two primary mechanism to associate run to asset(s) data:- Manual Association
- Automatic Association
Manual Association
For all data ingestion mechanisms, you can manually provide a run ID. Example, using ingestion-config-based-streaming:- Include the run ID in the IngestWithConfigDataStreamRequest
- Use this request with IngestService.IngestWithConfigDataStream
- This ensures the asset data in the request is associated with the specified run
Retrieving a Run IDIf you don’t have a run ID handy you may query your runs first to get the run ID.
Automatic Association
Use the RunService.CreateAutomaticRunAssociationForAssets endpoint to:- Associate a run with specific assets in advance
- Assets do not need to exist beforehand
- Data arriving for specified assets automatically associates with the run
- No need to include run ID in each ingestion request
Non-Standard WorkflowIf you use the automatic association method you should not include the run ID in the
IngestWithConfigDataStreamRequest when streaming data for the associated asset.Note that this is not a standard workflow and it is recommended to use the manual association method.