import { CreateConfigurableLogDrainRequestBody } from "@simplesagar/vercel/models/createconfigurablelogdrainop.js";
let value: CreateConfigurableLogDrainRequestBody = {
deliveryFormat: "json",
url: "https://severe-great-grandfather.com",
sources: [
"edge",
],
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
deliveryFormat |
models.CreateConfigurableLogDrainDeliveryFormat | ✔️ | The delivery log format | json |
url |
string | ✔️ | The log drain url | |
headers |
Record<string, string> | ➖ | Headers to be sent together with the request | |
projectIds |
string[] | ➖ | N/A | |
sources |
models.CreateConfigurableLogDrainSources[] | ✔️ | N/A | |
environments |
models.CreateConfigurableLogDrainEnvironments[] | ➖ | N/A | |
secret |
string | ➖ | Custom secret of log drain | |
samplingRate |
number | ➖ | The sampling rate for this log drain. It should be a percentage rate between 0 and 100. With max 2 decimal points | |
name |
string | ➖ | The custom name of this log drain. |