import { CreateLogDrainRequestBody } from "@simplesagar/vercel/models/createlogdrainop.js";
let value: CreateLogDrainRequestBody = {
name: "My first log drain",
url: "https://example.com/log-drain",
};
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.DeliveryFormat | ➖ | 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.Sources[] | ➖ | N/A | |
headers |
Record<string, string> | ➖ | Headers to be sent together with the request | |
environments |
models.Environments[] | ➖ | N/A |