CreateObservabilityDestinationRequest - TypeScript SDK
CreateObservabilityDestinationRequest - TypeScript SDK
CreateObservabilityDestinationRequest type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Example Usage
1 import { CreateObservabilityDestinationRequest } from "@openrouter/sdk/models"; 2 3 let value: CreateObservabilityDestinationRequest = { 4 config: { 5 "baseUrl": "https://us.cloud.langfuse.com", 6 "publicKey": "pk-l...EfGh", 7 "secretKey": "sk-l...AbCd", 8 }, 9 name: "Production Langfuse", 10 type: "langfuse", 11 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
apiKeyHashes | string[] | ➖ | Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. null or omitted means all keys. Must contain at least one hash if provided. | <nil> |
config | Record<string, *any*> | ✔️ | Provider-specific configuration. The shape depends on type and is validated server-side. | {"baseUrl": "https://us.cloud.langfuse.com","publicKey": "pk-l...EfGh","secretKey": "sk-l...AbCd"} |
enabled | boolean | ➖ | Whether this destination should be enabled immediately. | true |
filterRules | models.ObservabilityFilterRulesConfig | ➖ | Optional structured filter rules controlling which events are forwarded. | <nil> |
name | string | ✔️ | Human-readable name for the destination. | Production Langfuse |
privacyMode | boolean | ➖ | When true, request/response bodies are not forwarded — only metadata. | false |
samplingRate | number | ➖ | Sampling rate between 0 and 1 (1 = 100%). | 1 |
type | models.CreateObservabilityDestinationRequestType | ✔️ | The destination type. Only stable destination types are accepted. | langfuse |
workspaceId | string | ➖ | Optional workspace ID. Defaults to the authenticated entity’s default workspace. | 550e8400-e29b-41d4-a716-446655440000 |