Skip to content

Commit d8c5dce

Browse files
committed
Added operations to enable/disable the parameter archive automatic backfilling
1 parent c2886a2 commit d8c5dce

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • yamcs-client/src/yamcs/client/archive

yamcs-client/src/yamcs/client/archive/client.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,26 @@ def purge_parameter_archive(self):
12331233
url = f"/archive/{self._instance}/parameterArchive:purge"
12341234
self.ctx.post_proto(url, data=req.SerializeToString())
12351235

1236+
def enable_parameter_archive_backfilling(self):
1237+
"""
1238+
Enables the automatic backfilling (rebuilding) of the parameter archive.
1239+
1240+
If the backfilling is already enabled, this operation has no effect.
1241+
"""
1242+
req = parameter_archive_service_pb2.PurgeRequest()
1243+
url = f"/archive/{self._instance}/parameterArchive:enableBackfilling"
1244+
self.ctx.post_proto(url, data=req.SerializeToString())
1245+
1246+
def disable_parameter_archive_backfilling(self):
1247+
"""
1248+
Disables the automatic backfilling (rebuilding) of the parameter archive.
1249+
1250+
If the backfilling is already disabled, this operation has no effect.
1251+
"""
1252+
req = parameter_archive_service_pb2.PurgeRequest()
1253+
url = f"/archive/{self._instance}/parameterArchive:disableBackfilling"
1254+
self.ctx.post_proto(url, data=req.SerializeToString())
1255+
12361256
def rebuild_ccsds_index(
12371257
self,
12381258
start: Optional[datetime] = None,

0 commit comments

Comments
 (0)