Data Management
The data management service allows you to reliably capture and sync data to the cloud where you can query data from all your machines. You can collect data from your robots, IoT devices, or any other machines, and sync all the data to one place in the cloud without needing to manually gather data from each machine.
Cloud data management
Once your data is synced to the cloud, you can view, filter, and label data, and assign data to datasets, from your Viam app DATA page. You can also interact with your data using the Viam CLI, or using the data client API.
Query your data
Once your data has synced, you can query it using the data client API. For tabular sensor data, you can also run SQL or MQL queries from the Query subtab of the Data tab in the Viam app.
Permissions
Data management permissions vary between owners and operators. For more information about who can do what with data, see Data Permissions.
API
The data client API supports the following methods:
Methods to upload data like images or sensor readings directly to the Viam Cloud:
Method Name | Description |
---|---|
BinaryDataCaptureUpload | Upload binary data collected on your machine through a specific component and the relevant metadata to the Viam app. |
TabularDataCaptureUpload | Upload tabular data collected on your machine through a specific component to the Viam app. |
FileUpload | Upload arbitrary files stored on your machine to the Viam app by file name. |
FileUploadFromPath | Upload files stored on your machine to the Viam app by filepath. |
StreamingDataCaptureUpload | Upload the contents of streaming binary data and the relevant metadata to the Viam app. |
Methods to download, filter, tag, or perform other tasks on data like images or sensor readings:
Method Name | Description |
---|---|
TabularDataByFilter | Retrieve optionally filtered tabular data from the Viam app. |
TabularDataBySQL | Obtain unified tabular data and metadata, queried with SQL. |
TabularDataByMQL | Obtain unified tabular data and metadata, queried with MQL. |
BinaryDataByFilter | Retrieve optionally filtered binary data from the Viam app. |
BinaryDataByIDs | Retrieve binary data from the Viam app by BinaryID . |
DeleteTabularData | Delete tabular data older than a specified number of days. |
DeleteBinaryDataByFilter | Filter and delete binary data. |
DeleteBinaryDataByIDs | Filter and delete binary data by ids. |
AddTagsToBinaryDataByIDs | Add tags to binary data by ids. |
AddTagsToBinaryDataByFilter | Add tags to binary data by filter. |
RemoveTagsFromBinaryDataByIDs | Remove tags from binary by ids. |
RemoveTagsFromBinaryDataByFilter | Remove tags from binary data by filter. |
TagsByFilter | Get a list of tags using a filter. |
AddBoundingBoxToImageByID | Add a bounding box to an image specified by its BinaryID. |
RemoveBoundingBoxFromImageByID | Removes a bounding box from an image specified by its BinaryID. |
BoundingBoxLabelsByFilter | Get a list of bounding box labels using a Filter. |
GetDatabaseConnection | Get a connection to access a MongoDB Atlas Data federation instance. |
ConfigureDatabaseUser | Configure a database user for the Viam organization’s MongoDB Atlas Data Federation instance. |
AddBinaryDataToDatasetByIDs | Add the BinaryData to the provided dataset. |
RemoveBinaryDataFromDatasetByIDs | Remove the BinaryData from the provided dataset. |
Methods to work with datasets:
Method Name | Description |
---|---|
CreateDataset | Create a new dataset. |
DeleteDataset | Delete a dataset. |
RenameDataset | Rename a dataset specified by the dataset ID. |
ListDatasetsByOrganizationID | Get the datasets in an organization. |
ListDatasetsByIDs | Get a list of datasets using their IDs. |
The data management API supports a separate set of methods that allow you to sync data to the Viam app. For information about that API, see Data Management API.
For the command line interface data
command, see CLI.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!