File Importer API
Use the file importer API for a direct path between your cloud storage and the Arize platform.
While the Arize platform has an intuitive user interface for data ingestion workflows, the object store integration provides a direct way to easily set up jobs and automate job creation.
For a brief overview of GraphQL itself, please consult our introduction.
Creating Import Jobs
To create an import job: you must complete the setup steps outlined for GCS here or AWS here to grant Arize access to your bucket.
Import jobs belong to a Space
-- which has a globally unique ID. To create an import job, you'll need to retrieve your space ID from the platform URL:
/organizations/:organization_id/spaces/:space_id.
Import Job Tips:
Create a reusable mutation to create a file import job that will read files from your bucket
Validate your file import job before you begin your file import job. Using two additional parameters -
dryRun
andfileName
- as inputs when creating the import job mutation.dryRun(boolean): If true, the import job will be attempted but no changes will be written. The
validationResult
field may be requested to check the validation status.fileName(string): The file name to perform a dry run on. If a file name is not selected, the dry run will be performed on the first file.
variables:
Alternatively, you may pass in the inputs directly:
Querying for Import Jobs and Files
You can query for import jobs off of a Space
node.
Query fields within an import job given specific criteria using the FileImportJobConnection
from a Space
. If you have a large number of import jobs, you will have to use pagination to pull the complete list. This data can then be viewed or used in other queries.
To view files that belong to an import job, query for files using an import job node since the files belong to an import job. For instance, to view failing files and their error message, use the FileImportJobFileConnection
which returns files with a passed status or all files if no status is provided. You may additionally filter files based on a date range, providing an RFC3339 compliant date time shown below.
Deleting Import Jobs
Deleting import jobs using a mutation simply requires you to know the ID
of the import job you want to delete.
Examples
Was this helpful?