Task Search provides vector-based semantic search for finding relevant troubleshooting tasks and codebundles. Activities track user and system actions across the platform.
Task Search
Search Tasks
Perform a semantic search for troubleshooting tasks within a workspace. This uses vector embeddings (OpenAI + Qdrant) to find the most relevant codebundles and actions based on a natural language query.
|
|
|
|---|---|
|
Method |
|
|
Path |
|
|
Auth |
Bearer token required |
Path Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
|
string |
The unique name of the workspace |
Request Body
{
"query": "pods crashing in production namespace"
}
|
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
string |
Yes |
Natural language search query describing the problem or task |
Response 200 OK
Returns a ranked list of matching tasks with confidence scores, codebundle references, and suggested actions.
{
"results": [
{
"taskTitle": "Check Kubernetes Pod Health",
"confidence": 0.92,
"codeBundle": {
"repoUrl": "https://github.com/runwhen-contrib/rw-cli-codecollection",
"ref": "main",
"pathToRobot": "codebundles/k8s-pod-health/runbook.robot"
},
"slxName": "check-pod-health"
}
]
}
Activities
List Workspace Activities
Retrieve the activity feed for a workspace.
|
|
|
|---|---|
|
Method |
|
|
Path |
|
|
Auth |
Bearer token required |
Path Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
|
string |
The unique name of the workspace |
Response 200 OK
Returns a list of activity events. Each event includes:
{
"results": [
{
"id": 456,
"verb": "RUNSESSION_STARTED",
"actorName": "jdoe",
"targetName": "RunSession #123",
"workspace": "my-workspace",
"timestamp": "2026-02-28T10:00:00Z"
}
]
}
Activity Verbs
|
Verb |
Description |
|---|---|
|
|
A new run session was created |
|
|
A run session status changed |
|
|
A workspace config was uploaded via Git |
|
|
Workspace changes were committed to the repo |
|
|
An SLI threshold violation was detected |
|
|
An SLI alert batch began processing |
|
|
An external alert was received |
|
|
Alert processing batch began |
|
|
New codebundle versions were detected |
|
|
A codebundle image change warning was raised |
Get Workspace Activity Count
Retrieve the total count of activities for a workspace.
|
|
|
|---|---|
|
Method |
|
|
Path |
|
|
Auth |
Bearer token required |
Path Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
|
string |
The unique name of the workspace |
Response 200 OK
Returns the total activity count for the workspace.