From d8c5dce848a53665d958bac749d01fca890987dc Mon Sep 17 00:00:00 2001 From: Nicolae Mihalache Date: Wed, 12 Feb 2025 11:09:26 +0100 Subject: [PATCH] Added operations to enable/disable the parameter archive automatic backfilling --- .../src/yamcs/client/archive/client.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/yamcs-client/src/yamcs/client/archive/client.py b/yamcs-client/src/yamcs/client/archive/client.py index f2f7523..ff31c06 100644 --- a/yamcs-client/src/yamcs/client/archive/client.py +++ b/yamcs-client/src/yamcs/client/archive/client.py @@ -1233,6 +1233,26 @@ def purge_parameter_archive(self): url = f"/archive/{self._instance}/parameterArchive:purge" self.ctx.post_proto(url, data=req.SerializeToString()) + def enable_parameter_archive_backfilling(self): + """ + Enables the automatic backfilling (rebuilding) of the parameter archive. + + If the backfilling is already enabled, this operation has no effect. + """ + req = parameter_archive_service_pb2.PurgeRequest() + url = f"/archive/{self._instance}/parameterArchive:enableBackfilling" + self.ctx.post_proto(url, data=req.SerializeToString()) + + def disable_parameter_archive_backfilling(self): + """ + Disables the automatic backfilling (rebuilding) of the parameter archive. + + If the backfilling is already disabled, this operation has no effect. + """ + req = parameter_archive_service_pb2.PurgeRequest() + url = f"/archive/{self._instance}/parameterArchive:disableBackfilling" + self.ctx.post_proto(url, data=req.SerializeToString()) + def rebuild_ccsds_index( self, start: Optional[datetime] = None,