Run an endpoint's poll now
const url = 'https://example.com/api/v1/endpoints/hq.west.level-2.huddle.%24comp.panel-1%2Ftelnet/polls/status:run';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/endpoints/hq.west.level-2.huddle.%24comp.panel-1%2Ftelnet/polls/status:runRuns 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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The endpoint, as
The endpoint, as
The poll to run, by its function name
The poll to run, by its function name
Query Parameters
Section titled “ Query Parameters ”How long the outpost may take (default 15, at most 30)
How long the outpost may take (default 15, at most 30)
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Its component, by name
The endpoint, by name
Each emit that did not locate or type, or the fetch that failed, each landed as collection-failed
The outpost that ran the poll
The poll that ran
What its emits extracted, landed as a scheduled run’s are
object
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
The match key, a registered property type
The value the record carried for it
The sample’s labels, its instance among them
object
Event or log for an event or a log line; absent for a metric or a property
The key the emit landed
A property’s value, or an event’s or log line’s message
When the sample was taken
A metric’s number
Always true: a run now lands its samples as a scheduled run does
How long the poll took on the outpost
Example
{ "$schema": "/api/v1/schemas/RunEndpointPollOutputBody.json"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
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"}