Loading...
Functions that interact with dbnl Baseline concept
Set a given Run as the Baseline Run in a Project's Test Config
dbnl.set_run_as_baseline( *, run: Run, ) -> None:
run
The dbnl Run to be set as the Baseline Run in its Project Test Config.
Retrieve a dbnl RunQuery with the given name
dbnl.get_run_query( project: Project, name: str, ) -> RunQuery:
project
The dbnl this is associated with
name
Name of the Run Query.
The dbnl RunQuery, typically used for finding a for a Test Session
query = dbnl.get_run_query( project=project, name="look back 3" )
Set a given RunQuery as the Baseline Run in a Project's Test Config
dbnl.set_run_query_as_baseline( *, run_query: RunQuery, ) -> None:
run_query
The dbnl to be set as the Baseline Run in its Project Test Config.
dbnl.create_run_query( *, project: Project, name: str, query: dict[str, Any] ) -> RunQuery:
Descriptive name for this Run Query. Must be unique at the Project level
query
dict describing how to find a Run dynamically. Currently, only supports "offset_from_now": int as a key-value pair.
"offset_from_now": int
dbnl.create_run_query( project=project, name="look back 3", query={ "offset_from_now": 3, }, )
The dbnl this will be associated with
A new dbnl RunQuery, typically used for finding a for a Test Session