Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 7.78 KB

createlogdrainresponsebody.md

File metadata and controls

41 lines (35 loc) · 7.78 KB

CreateLogDrainResponseBody

The log drain was successfully created

Example Usage

import { CreateLogDrainResponseBody } from "@simplesagar/vercel/models/createlogdrainop.js";

let value: CreateLogDrainResponseBody = {
  createdAt: 1558531915505,
  id: "ld_nBuA7zCID8g4QZ8g",
  name: "My first log drain",
  ownerId: "kr1PsOIzqEL5Xg6M4VZcZosf",
  url: "https://example.com/log-drain",
  environments: [
    "production",
  ],
};

Fields

Field Type Required Description Example
clientId string The oauth2 client application id that created this log drain oac_xRhY4LAB7yLhUADD69EvV7ct
configurationId string The client configuration this log drain was created with icfg_cuwj0AdCdH3BwWT4LPijCC7t
createdAt number ✔️ A timestamp that tells you when the log drain was created 1558531915505
id string ✔️ The unique identifier of the log drain. Always prefixed with ld_ ld_nBuA7zCID8g4QZ8g
deliveryFormat models.CreateLogDrainDeliveryFormat The delivery log format json
name string ✔️ The name of the log drain My first log drain
ownerId string ✔️ The identifier of the team or user whose events will trigger the log drain kr1PsOIzqEL5Xg6M4VZcZosf
projectId string N/A AbCgVkqoxXeXCDWehVir51LHGrrcWL4mkYm14W6UBPWQeb
projectIds string[] The identifier of the projects this log drain is associated with AbCgVkqoxXeXCDWehVir51LHGrrcWL4mkYm14W6UBPWQeb
url string ✔️ The URL to call when logs are generated https://example.com/log-drain
sources models.CreateLogDrainSources[] The sources from which logs are currently being delivered to this log drain. [
"build",
"edge"
]
createdFrom models.CreateLogDrainCreatedFrom Whether the log drain was created by an integration or by a user integration
headers Record<string, string> The headers to send with the request {"Authorization": "Bearer 123"}
environments models.CreateLogDrainEnvironments[] ✔️ The environment of log drain [
"production"
]
branch string The branch regexp of log drain feature/*
samplingRate number The sampling rate of log drain 0.5