Retrieve Dataset Ingestion Task
GEThttps://api.confident-ai.com/v1/datasets/{alias}/dataset-ingestion-tasks/{datasetIngestionTaskId}
Retrieves a single ingestion task on a dataset, with its full configuration. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v1/datasets/{alias}/dataset-ingestion-tasks/{datasetIngestionTaskId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"datasetIngestionTask": {
"id": "INGESTION-TASK-ID",
"name": "Harvest failed checkouts",
"enabled": true,
"sampleRate": 0.1,
"dataModel": "TRACE"
}
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/workflows"
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
aliasstringRequiredThe unique alias of the dataset.
datasetIngestionTaskIdstringRequiredThe unique identifier of the ingestion task.
Response
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
datasetIngestionTaskobjectShow 18 propertiesHide 18 properties
idstringThe unique identifier of the ingestion task.
namestringThe name of the ingestion task.
dataModelenumWhat kind of item the task harvests.
Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
goldensCountintegerHow many goldens this task has created so far.
descriptionstringA note about what the task harvests.
enabledbooleanWhether the task runs. Disabling it unschedules the job; goldens already created are kept.
sampleRatenumberThe fraction of matching items to ingest. Defaults to 1 (all of them).
filtersobjectA set of filter groups combined by a top-level operator.
Show 2 propertiesHide 2 properties
operatorenumHow filters or groups are combined.
Show 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsThe filter groups.
Show 2 propertiesHide 2 properties
operatorenumHow filters or groups are combined.
Show 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsThe filter rows in this group.
Show 4 propertiesHide 4 properties
categorystringThe property a filter row matches on (e.g. "Name", "User Id", "Model", "Metadata"). The set of valid values depends on the line's dataModel.
conditionenumThe comparison a filter row applies. Valid conditions depend on the category.
Show 18 enum valuesHide 18 enum values
IsIs notIs equal toDoes not equalIs less thanIs equal or less thanIs greater thanIs equal or greater thanHasHas notContainsContains onlyDoes not containHas increased by more thanHas increased by less thanHas decreased by more thanHas decreased by less thanHas changed from
valuestring | number | list of stringsThe value to match against.
keystringThe property key. Auto-populated from category when omitted; required for Metadata, Metric, and Classifier filters.
maxGoldensintegerThe maximum number of goldens this task will ever create. Send
nullto remove the cap.inputTransformerIdstringA transformer that reshapes the harvested input before it is stored. Send
nullto detach it.outputTransformerIdstringA transformer that reshapes the harvested output before it is stored. Send
nullto detach it.includeInputbooleanPopulate the golden's
inputfrom the harvested item. Defaults to true; every other include flag defaults to false.includeActualOutputbooleanPopulate the golden's
actualOutput.includeExpectedOutputbooleanPopulate the golden's
expectedOutput.includeRetrievalContextbooleanPopulate the golden's
retrievalContext.includeContextbooleanPopulate the golden's
context.includeToolsCalledbooleanPopulate the golden's
toolsCalled.includeExpectedToolsbooleanPopulate the golden's
expectedTools.
linkstringA link to the workflows page.