create_run_query

dbnl.create_run_query(
    *,
    project: Project,
    name: str,
    query: dict[str, Any]
) -> RunQuery:

Parameters

Arguments
Description

project

The dbnl Projectthis RunQuerywill be associated with

name

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.

Returns

Type
Description

A new dbnl RunQuery, typically used for finding a Dynamic Baselinefor a Test Session

Example

dbnl.create_run_query(
  project=project,
  name="look back 3",
  query={
    "offset_from_now": 3,
  },
)

Last updated

Was this helpful?