Skip to content
Start here

Tail

List Tails
client.Workers.Scripts.Tail.Get(ctx, scriptName, query) (*ScriptTailGetResponse, error)
GET/accounts/{account_id}/workers/scripts/{script_name}/tails
Start Tail
client.Workers.Scripts.Tail.New(ctx, scriptName, params) (*ScriptTailNewResponse, error)
POST/accounts/{account_id}/workers/scripts/{script_name}/tails
Delete Tail
client.Workers.Scripts.Tail.Delete(ctx, scriptName, id, body) (*ScriptTailDeleteResponse, error)
DELETE/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}
ModelsExpand Collapse
type ConsumerScript struct{…}

A reference to a script that will consume logs from the attached Worker.

Service string

Name of Worker that is to be the consumer.

Environment stringoptional

Optional environment if the Worker utilizes one.

Namespace stringoptional

Optional dispatch namespace the script belongs to.