create_run_query

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

Parameters

Arguments
Description

project

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

Example

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

Was this helpful?