ocloud events
ocloud v3.17.3View Markdown
Generated from ocloud 3.17.3. All ocloud commands · Olef Cloud overview · olef commands
Inspect live JSON/GraphQL sources and manage standing or thread wake subscriptions
Global options (--org, --project-root, --quiet, --redact) apply across commands; see the ocloud command catalog.
ocloud events list
Section titled “ocloud events list”A thread’s subscriptions and what’s pending for its next run (–thread), or an agent’s standing ones (–agent)
ocloud events list --help| Argument | Description |
|---|---|
--thread |
|
--agent |
|
--connection |
A connection’s subscriptions (where its deliveries go) |
ocloud events state
Section titled “ocloud events state”Read a source now: its JSON document, to write a condition against
ocloud events state --help| Argument | Description |
|---|---|
--source |
The JSON URL to read (GET), or the GraphQL endpoint with –query |
--query |
A read-only GraphQL query, POSTed to –source (mutations are refused) |
--var |
A GraphQL variable, name=value (a JSON value or a string; repeatable) |
--credential |
One of the agent’s credentials for the source’s host (ocloud secret set … --credential) |
--agent |
The agent whose credential reads it (with –credential) |
ocloud events subscribe
Section titled “ocloud events subscribe”Subscribe a thread (–thread) or, standing with –each, an agent (–agent): Olef reads the source and wakes the thread when –when turns true
ocloud events subscribe --help| Argument | Description |
|---|---|
--source |
The JSON URL to read (GET), or the GraphQL endpoint with –query |
--query |
A read-only GraphQL query, POSTed to –source (mutations are refused) |
--var |
A GraphQL variable, name=value (a JSON value or a string; repeatable) |
--credential |
One of the agent’s credentials for the source’s host (ocloud secret set … --credential) |
--thread |
The thread (its first message’s id) to wake |
--agent |
A standing subscription of this agent (team/name or id): –each opens a thread per new item |
--when |
|
--each |
|
--close-when |
|
--until |
End at +30m, +3h, +2d or an RFC 3339 time |
--wake-at-end |
With –until: wake the thread when it ends |
--primary |
The source the thread is about: its –close-when closes the thread |
--backfill |
Standing: also open threads for up to N items already listed, newest first |
--inbox |
Standing: the inbox item threads go to (default the agent’s) |
--repo-id |
Standing: the repository item requests name |
--connection |
A connection’s pushed deliveries (Jira, webhooks) instead of –source: each one –when takes becomes a request to –inbox |
--name |
With –connection: what people see (Jira: “Send to …”) |
--service |
With –connection: a typed service of the inbox (name@version) the payload must match |
--jql |
With a Jira –connection: every match of this JQL search (polled every 5 minutes) |
ocloud events test
Section titled “ocloud events test”Evaluate jq on a source’s live document: –when / –close-when give true or false, –each the items
ocloud events test --help| Argument | Description |
|---|---|
--source |
The JSON URL to read (GET), or the GraphQL endpoint with –query |
--query |
A read-only GraphQL query, POSTed to –source (mutations are refused) |
--var |
A GraphQL variable, name=value (a JSON value or a string; repeatable) |
--credential |
One of the agent’s credentials for the source’s host (ocloud secret set … --credential) |
--agent |
|
--when |
A condition: wakes when it turns true |
--each |
A list: one {id, url?, trust?} per item |
--close-when |
Ends the subscription when it turns true |
--prev |
A previous document (JSON file) to evaluate against as $prev |
ocloud events unsubscribe
Section titled “ocloud events unsubscribe”End a subscription
ocloud events unsubscribe --help| Argument | Description |
|---|---|
<subscription> |
Required. The subscription’s id (sub_…) |
--connection |
A connection’s subscription |