PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::workflow::archive_config Struct Reference

Configuration for archive scheduling. More...

#include <task_scheduler_config.h>

Collaboration diagram for kcenon::pacs::workflow::archive_config:
Collaboration graph

Public Attributes

std::chrono::days archive_after {90}
 Archive studies older than this.
 
archive_destination_type destination_type {archive_destination_type::local_path}
 Archive destination type.
 
std::string destination
 Destination path or URL.
 
std::optional< std::string > credentials_key
 Credentials (if required)
 
bool verify_after_archive {true}
 Verify archive integrity after transfer.
 
bool delete_after_archive {false}
 Delete original after successful archive.
 
bool compress {true}
 Compress archives.
 
int compression_level {6}
 Compression level (1-9)
 
std::size_t max_archives_per_cycle {50}
 Maximum studies to archive per cycle.
 
schedule archive_schedule {cron_schedule::daily_at(3, 0)}
 Schedule for archive task.
 

Detailed Description

Configuration for archive scheduling.

Definition at line 401 of file task_scheduler_config.h.

Member Data Documentation

◆ archive_after

std::chrono::days kcenon::pacs::workflow::archive_config::archive_after {90}

Archive studies older than this.

Definition at line 403 of file task_scheduler_config.h.

403{90};

◆ archive_schedule

schedule kcenon::pacs::workflow::archive_config::archive_schedule {cron_schedule::daily_at(3, 0)}

Schedule for archive task.

Definition at line 430 of file task_scheduler_config.h.

430{cron_schedule::daily_at(3, 0)}; // 3:00 AM
static auto daily_at(int hour, int minute=0) -> cron_schedule
Create a daily schedule at specific time.

◆ compress

bool kcenon::pacs::workflow::archive_config::compress {true}

Compress archives.

Definition at line 421 of file task_scheduler_config.h.

421{true};

◆ compression_level

int kcenon::pacs::workflow::archive_config::compression_level {6}

Compression level (1-9)

Definition at line 424 of file task_scheduler_config.h.

424{6};

◆ credentials_key

std::optional<std::string> kcenon::pacs::workflow::archive_config::credentials_key

Credentials (if required)

Definition at line 412 of file task_scheduler_config.h.

◆ delete_after_archive

bool kcenon::pacs::workflow::archive_config::delete_after_archive {false}

Delete original after successful archive.

Definition at line 418 of file task_scheduler_config.h.

418{false};

◆ destination

std::string kcenon::pacs::workflow::archive_config::destination

Destination path or URL.

Definition at line 409 of file task_scheduler_config.h.

◆ destination_type

archive_destination_type kcenon::pacs::workflow::archive_config::destination_type {archive_destination_type::local_path}

Archive destination type.

Definition at line 406 of file task_scheduler_config.h.

◆ max_archives_per_cycle

std::size_t kcenon::pacs::workflow::archive_config::max_archives_per_cycle {50}

Maximum studies to archive per cycle.

Definition at line 427 of file task_scheduler_config.h.

427{50};

◆ verify_after_archive

bool kcenon::pacs::workflow::archive_config::verify_after_archive {true}

Verify archive integrity after transfer.

Definition at line 415 of file task_scheduler_config.h.

415{true};

The documentation for this struct was generated from the following file: