Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 8.93 KB

createlogdrainrequestbody.md

File metadata and controls

27 lines (22 loc) · 8.93 KB

CreateLogDrainRequestBody

Example Usage

import { CreateLogDrainRequestBody } from "@vercel/sdk/models/createlogdrainop.js";

let value: CreateLogDrainRequestBody = {
  name: "My first log drain",
  secret: "a1Xsfd325fXcs",
  deliveryFormat: "json",
  url: "https://example.com/log-drain",
};

Fields

Field Type Required Description Example
name string ✔️ The name of the log drain My first log drain
projectIds string[] N/A
secret string A secret to sign log drain notification headers so a consumer can verify their authenticity a1Xsfd325fXcs
deliveryFormat models.CreateLogDrainDeliveryFormat The delivery log format json
url string ✔️ The url where you will receive logs. The protocol must be https:// or http:// when type is json and ndjson, and syslog+tls: or syslog: when the type is syslog. https://example.com/log-drain
sources models.CreateLogDrainSources[] N/A
headers Record<string, string> Headers to be sent together with the request
environments models.CreateLogDrainEnvironments[] N/A