Edgehog file transfer telemetry.
Events can be emitted on the following topics:
[:edgehog, :files, :file_download_request, :start]when a file download request provisioning starts. Metadata containstransfer_type,destination_type,progress_tracked,needs_encoding,tenant_slug, and optionallyrequest_id,device_id, andfile_id.[:edgehog, :files, :file_download_request, :stop]when a file download request terminates, either successfully or with a failure. Metadata contains the start metadata plusresult(either:okor:error),reason(either the provisioning outcome, e.g.:readyor:already_ready, or the failure reason),duration(native time), andduration_unit(:native). Measurements containcount,duration(native time), andretries.[:edgehog, :files, :file_upload_request, :start]when a file upload request starts. Metadata containstransfer_type,source_type,progress_tracked,needs_encoding,tenant_slug, and optionallyrequest_idanddevice_id.[:edgehog, :files, :file_upload_request, :stop]when a file upload request terminates, either successfully or with a failure. Metadata contains the start metadata plusresult(either:okor:error),reason,duration(native time), andduration_unit(:native). Measurements containcount,duration(native time), andretries.
Summary
Functions
Emits a successful file download request stop event.
Emits a failed file download request stop event.
Emits a file download request start event and returns the monotonic time the download request started, to be used when emitting the corresponding stop event.
Emits a successful file upload request stop event.
Emits a failed file upload request stop event.
Emits a file upload request start event and returns the monotonic time the upload request started, to be used when emitting the corresponding stop event.
Returns true if telemetry identifiers should be included in event metadata.
Functions
Emits a successful file download request stop event.
Emits a failed file download request stop event.
Emits a file download request start event and returns the monotonic time the download request started, to be used when emitting the corresponding stop event.
Returns the start time, computed with System.monotonic_time/0.
Emits a successful file upload request stop event.
Emits a failed file upload request stop event.
Emits a file upload request start event and returns the monotonic time the upload request started, to be used when emitting the corresponding stop event.
Returns the start time, computed with System.monotonic_time/0.
Returns true if telemetry identifiers should be included in event metadata.