![]() |
Zivid C++ API 2.19.0+b5c53d0f-1
|
Configures a support bundle: a compressed archive (.tar.zst) of SDK logs, frames and camera information to send to Zivid customer support.
More...
#include <Zivid/Experimental/SupportBundle.h>
Public Member Functions | |
| ZIVID_CORE_EXPORT Builder & | attachedFrames (std::vector< Frame > frames) |
| Frames to include in the bundle. They are saved as ZDF files. Replaces any frames set earlier. | |
| ZIVID_CORE_EXPORT Builder & | attachedFrame2Ds (std::vector< Frame2D > frames) |
| 2D frames to include in the bundle. They are saved as ZDF files. Replaces any 2D frames set earlier. | |
| ZIVID_CORE_EXPORT Builder & | attachedZDFFiles (std::vector< std::filesystem::path > files) |
| ZDF files to include in the bundle. Replaces any files set earlier. | |
| ZIVID_CORE_EXPORT Builder & | filterLogs (std::chrono::system_clock::time_point since, std::chrono::system_clock::time_point before) |
| Includes only the log files that were written to between since and before . | |
| ZIVID_CORE_EXPORT SizeEstimate | estimateSize () const |
| Estimates how large the bundle will be, split into logs and frames. | |
| ZIVID_CORE_EXPORT Future | create (Application &application) const |
| Creates the support bundle from the given application in the background, and returns a Future for it right away. | |
Configures a support bundle: a compressed archive (.tar.zst) of SDK logs, frames and camera information to send to Zivid customer support.
Create one with builder, set what to include, then call create. Collection runs in the background and create returns a Future right away. Use Future::progress to follow the collection and Future::get to get the path of the finished bundle.
A bundle contains:
Creating a bundle never connects to a camera. Connect the cameras you want health information for before creating it.
| ZIVID_CORE_EXPORT Builder & Zivid::Experimental::SupportBundle::Builder::attachedFrame2Ds | ( | std::vector< Frame2D > | frames | ) |
2D frames to include in the bundle. They are saved as ZDF files. Replaces any 2D frames set earlier.
| ZIVID_CORE_EXPORT Builder & Zivid::Experimental::SupportBundle::Builder::attachedFrames | ( | std::vector< Frame > | frames | ) |
Frames to include in the bundle. They are saved as ZDF files. Replaces any frames set earlier.
| ZIVID_CORE_EXPORT Builder & Zivid::Experimental::SupportBundle::Builder::attachedZDFFiles | ( | std::vector< std::filesystem::path > | files | ) |
ZDF files to include in the bundle. Replaces any files set earlier.
Each file is checked when it is set, and this function throws if one is not a valid ZDF file.
|
nodiscard |
Creates the support bundle from the given application in the background, and returns a Future for it right away.
The bundle is made from what is already there: the logs, frames and cameras at the time of the call. The application must outlive the returned Future. The Builder is not changed by creating a bundle, so it can create another one. Camera health is checked while the bundle is created: if a connected camera disconnects while its health is being checked, creating the bundle fails. Destroying the returned Future cancels creating the bundle, so the result must be kept.
| ZIVID_CORE_EXPORT SizeEstimate Zivid::Experimental::SupportBundle::Builder::estimateSize | ( | ) | const |
Estimates how large the bundle will be, split into logs and frames.
Logs and ZDF files are counted with their size on disk. Frames held in memory are estimated from their resolution and settings, and the estimate errs on the large side. The actual bundle can differ, since logs keep growing and the archive is compressed.
| ZIVID_CORE_EXPORT Builder & Zivid::Experimental::SupportBundle::Builder::filterLogs | ( | std::chrono::system_clock::time_point | since, |
| std::chrono::system_clock::time_point | before ) |
Includes only the log files that were written to between since and before .
A log file is included when its time span overlaps the filter, so a file that started before the filter and is still being written to is included. Throws if since is after before .