Skip to main content
An upload is the ledger entry for a single file the Miru Agent has collected from a device and uploaded to your bucket. Once an upload rule is deployed to a device, the Miru Agent handles the rest: detecting when a matching file is finished, uploading it to your bucket, and recording it in the ledger with the properties below.

Properties

source
Source
The source file collected from the device. See Sources.
destination
Destination
Where the collected file was uploaded. See Destinations.
digest
string
The digest of the uploaded file. Used to deduplicate uploads, so each file is uploaded exactly once, and to verify integrity.Example: sha256:1234567890
size
integer
The size of the uploaded file, in bytes.
status
enum
The status of the upload.Allowed values:
  • pending
  • uploaded
uploaded_at
datetime
Timestamp of when the upload was durably confirmed. Null until the upload completes.
device
Device
The device that produced the upload.
upload rule
Upload Rule
The upload rule that produced the upload.
deployment
Deployment
The deployment that was active on the device when the upload was produced.
Uploads also carry the standard created_at, updated_at, and workspace_id bookkeeping fields.

Sources

An upload’s source identifies the file collected from the device and when it was last modified.
file_path
string
Absolute path of the file on the device. Its basename renders the {file_name} variable in the destination path template.Example: /var/log/robot/robot.log
mtime
datetime
The file’s mtime timestamp as reported by the operating system.
first_observed_at
datetime
The timestamp of when the file was first observed by the Miru Agent for this upload.
last_observed_at
datetime
The timestamp of when the file was last observed by the Miru Agent for this upload.

Destinations

An upload’s destination identifies the bucket and object key where the file was written.
bucket
Bucket
The registered bucket the file was uploaded to.
object_key
string
The object path the file was written to in the destination bucket. Rendered from the rule’s path template, it carries the device’s verified ID.Example: logs/dvc_123/upl_123/robot.log

Status

An upload’s status tracks whether the device has confirmed that the file was durably written to the destination bucket. Uploads begin in the pending state. A device may retry or resume the transfer while the upload remains pending. After the device confirms the durable write, the upload transitions to uploaded, which is its terminal state.
Last modified on July 21, 2026