epicsarchiver_mgmt.commands.archive
Provides the archive command to archive PVs.
Attributes
Exceptions
Exception for when the policy is not found. |
Functions
|
Validate the policy names. |
|
Provide the archive command to archive PVs. |
Module Contents
- epicsarchiver_mgmt.commands.archive.LOG: logging.Logger[source]
- exception epicsarchiver_mgmt.commands.archive.ArchivePolicyNotFoundError(pv_request: epicsarchiver_mgmt.archiver.mgmt.ArchivePVRequest, policy_names: set[str])[source]
Bases:
epicsarchiver_mgmt.exceptions.BaseMgmtErrorException for when the policy is not found.
- epicsarchiver_mgmt.commands.archive.validate_policy_names(archiver: epicsarchiver_mgmt.archiver.mgmt.ArchiverMgmt, pv_requests: list[epicsarchiver_mgmt.archiver.mgmt.ArchivePVRequest]) None[source]
Validate the policy names.
- Parameters:
archiver (ArchiverMgmt) – The archiver information.
pv_requests (list[ArchivePVRequest]) – The PVs to archive.
- Raises:
ArchivePolicyNotFoundError – If the policy is not found.
- epicsarchiver_mgmt.commands.archive.ARCHIVE_OPERATION_RESULT_STATUS_OK = 'Archive request submitted'[source]
- epicsarchiver_mgmt.commands.archive.archive(archiver_fqdn: str, pv_requests: list[epicsarchiver_mgmt.archiver.mgmt.ArchivePVRequest], *, dry_run: bool = False) None[source]
Provide the archive command to archive PVs.
- Parameters:
archiver_fqdn (str) – The fully qualified domain name of the archiver.
pv_requests (list[ArchivePVRequest]) – The PVs to archive.
dry_run (bool) – Whether to do a dry run or not.
- Raises:
RequestHTTPError – If there is an error archiving the PVs.