Skip to content

Run an endpoint's poll now

POST
/endpoints/{endpoint}/polls/{poll}:run
curl --request POST \
--url https://example.com/api/v1/endpoints/hq.west.level-2.huddle.%24comp.panel-1%2Ftelnet/polls/status:run

Runs one of an attached endpoint’s polls now, on the outpost that holds the endpoint, outside its schedule (which is unchanged), and answers with what it read. The samples land as a scheduled run’s do. The run waits for the endpoint’s lane on the outpost, ahead of its scheduled polls and never beside another request to the endpoint; it borrows the endpoint’s held session where it has one and honors its gate: a gated endpoint refuses the run with the gate’s reason (409), a refusal, an unreachable reading from the endpoint’s probe, or a disruptive command (a reboot) the run was queued behind, and nothing is sent. A poll the endpoint does not have is a 404 naming the polls it has; an endpoint on no outpost is a 409. An outpost that is not connected is a 503, one that does not answer in time a 504; too many runs in flight, here or on the outpost’s operator lanes, is a 429. Audited on the endpoint. Gated by endpoint:run; read and run scopes (through the component) drive the 404 versus 403 split.

endpoint
required

The endpoint, as / or its id

string

The endpoint, as / or its id

poll
required

The poll to run, by its function name

string

The poll to run, by its function name

timeout_seconds

How long the outpost may take (default 15, at most 30)

integer format: int64
>= 1 <= 30

How long the outpost may take (default 15, at most 30)

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
component

Its component, by name

string
endpoint
required

The endpoint, by name

string
faults

Each emit that did not locate or type, or the fetch that failed, each landed as collection-failed

Array<string> | null
outpost
required

The outpost that ran the poll

string
poll
required

The poll that ran

string
samples
required

What its emits extracted, landed as a scheduled run’s are

Array<object> | null
object
identity

The identity the sample’s record carried (a match key and its value), when its function declares one; the server lands it on the owner the conduit’s binding names

object
key
required

The match key, a registered property type

string
value
required

The value the record carried for it

string
labels

The sample’s labels, its instance among them

object
key
additional properties
string
lane

Event or log for an event or a log line; absent for a metric or a property

string
name
required

The key the emit landed

string
text

A property’s value, or an event’s or log line’s message

string
ts
required

When the sample was taken

string format: date-time
value

A metric’s number

number format: double
stored
required

Always true: a run now lands its samples as a scheduled run does

boolean
took_ms
required

How long the poll took on the outpost

integer format: int64

Example

{
"$schema": "/api/v1/schemas/RunEndpointPollOutputBody.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}