FerryDocs
ReferenceAPI overview

Server-Sent Events

The API sends logs and changes as Server-Sent Events, on an HTTP answer that stays open.

Edit on GitHub
eventsClientGET …/logsferryd

The client sends one GET request. The answer stays open.

1 / 4

are a standard of the web. A is a plain HTTP answer.

The streams

EndpointStreamEnds
GET /api/v1/deploys/{deploy_id}/logs?follow=The build and deploy log of one deployAfter the saved lines. With follow=true: when the deploy is complete.
GET /api/v1/jobs/{job_id}/logs?follow=The output of one job runAfter the saved lines. With follow=true: when the job is complete.
GET /api/v1/services/{id}/logs?follow=&tail=The runtime output of the current containers of the serviceWithout follow: after the recent lines. With follow=true: never.
GET /api/v1/eventsThe change feedNever

The headers of the answer

HeaderValue
Content-Typetext/event-stream
Cache-Controlno-cache
X-Accel-Bufferingno. With it, a proxy such as nginx does not buffer the stream.

A is the line : keep-alive.

On this page