Skip to contents

Connection

Establish a connection to PocketBase.

pl_connect()
Connect to PocketBase as a regular user
pl_connect_admin()
Connect to PocketBase as a superuser (admin)

Setup

One-time admin setup of PocketBase collections.

pl_setup()
Set up pocketlogR collections in PocketBase

Flows

Register and query monitored processes.

pl_create_flow()
Create a new flow
pl_get_flows()
List flows

Dependencies

Manage DAG-based upstream dependencies between flows.

pl_add_dependency()
Add upstream dependencies to a flow
pl_remove_dependency()
Remove upstream dependencies from a flow
pl_get_dependencies()
Get upstream dependencies of a flow

Status & DAG

Inspect health across the dependency graph.

pl_get_status()
Get dependency chain health status for a flow
pl_get_dag()
Get a full DAG overview of all flows and their health

Logging

Write log entries from your scripts and pipelines.

pl_log()
Log an event for a flow
pl_success()
Log a SUCCESS event
pl_error()
Log an ERROR event
pl_fatal()
Log a FATAL event

Querying

Read log entries back for reporting or alerting.

pl_get_logs()
Query log entries

Admin Operations

Superuser-only maintenance functions. Require a connection from pl_connect_admin().

pl_delete_flow()
Delete a flow (admin only)
pl_delete_logs()
Delete log entries (admin only)

Constants

pl_flow_types
Default flow types