Skip to content

Commit a579bd6

Browse files
committed
Add filter option to list_packets
1 parent 0a99083 commit a579bd6

File tree

1 file changed

+8
-0
lines changed
  • yamcs-client/src/yamcs/client/archive

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def to_alarm(proto):
341341
def list_packets(
342342
self,
343343
name: Optional[str] = None,
344+
filter: Optional[str] = None,
344345
start: Optional[datetime] = None,
345346
stop: Optional[datetime] = None,
346347
page_size: int = 500,
@@ -361,6 +362,11 @@ def list_packets(
361362
362363
:param name:
363364
Archived name of the packet
365+
:param filter:
366+
Filter query, allows for both text and field search.
367+
368+
.. versionadded:: 1.12.0
369+
Compatible with Yamcs v5.12.0 onwards
364370
:param start:
365371
Minimum generation time of the returned packets (inclusive)
366372
:param stop:
@@ -384,6 +390,8 @@ def list_packets(
384390
params["start"] = to_isostring(start)
385391
if stop is not None:
386392
params["stop"] = to_isostring(stop)
393+
if filter is not None:
394+
params["filter"] = filter
387395

388396
return pagination.Iterator(
389397
ctx=self.ctx,

0 commit comments

Comments
 (0)