Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 4.2 KB

webhooklog.md

File metadata and controls

37 lines (32 loc) · 4.2 KB

WebhookLog

Example Usage

import { WebhookLog } from "livepeer/models/components";

let value: WebhookLog = {
  id: "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  webhookId: "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  event: "stream.started",
  createdAt: 1587667174725,
  duration: 0.5,
  success: true,
  request: {
    url: "https://my-service.com/webhook",
    method: "POST",
    headers: {
      "User-Agent": "livepeer.studio",
    },
    body: "{\"event\": \"stream.started\"}",
  },
};

Fields

Field Type Required Description Example
id string ✔️ N/A de7818e7-610a-4057-8f6f-b785dc1e6f88
webhookId string ✔️ ID of the webhook this request was made for de7818e7-610a-4057-8f6f-b785dc1e6f88
event string The event type that triggered the webhook request stream.started
createdAt number Timestamp (in milliseconds) at which webhook request object was
created
1587667174725
duration number The time taken (in seconds) to make the webhook request 0.5
success boolean Whether the webhook request was successful true
request components.Request N/A
response components.Response N/A