ObservabilityClickhouseDestination - TypeScript SDK
ObservabilityClickhouseDestination - TypeScript SDK
ObservabilityClickhouseDestination type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Example Usage
1 import { ObservabilityClickhouseDestination } from "@openrouter/sdk/models"; 2 3 let value: ObservabilityClickhouseDestination = { 4 apiKeyHashes: null, 5 config: { 6 database: "<value>", 7 host: "major-daddy.org", 8 password: "aG_VYsEwW_TOcCy", 9 username: "Kara74", 10 }, 11 createdAt: "2025-08-24T10:30:00Z", 12 enabled: true, 13 filterRules: null, 14 id: "99999999-aaaa-bbbb-cccc-dddddddddddd", 15 name: "Production Langfuse", 16 privacyMode: false, 17 samplingRate: 1, 18 type: "clickhouse", 19 updatedAt: "2025-08-24T15:45:00Z", 20 workspaceId: "550e8400-e29b-41d4-a716-446655440000", 21 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
apiKeyHashes | string[] | ✔️ | Optional allowlist of OpenRouter API key hashes (api_keys.hash) whose traffic is forwarded to this destination. null means all keys. | <nil> |
config | models.ObservabilityClickhouseDestinationConfig | ✔️ | N/A | |
createdAt | string | ✔️ | ISO timestamp of when the destination was created. | 2025-08-24T10:30:00Z |
enabled | boolean | ✔️ | Whether this destination is currently enabled. | true |
filterRules | models.ObservabilityFilterRulesConfig | ✔️ | Optional structured filter rules controlling which events are forwarded. | <nil> |
id | string | ✔️ | Stable public identifier for this destination. | 99999999-aaaa-bbbb-cccc-dddddddddddd |
name | string | ✔️ | Human-readable name for the destination. | Production Langfuse |
privacyMode | boolean | ✔️ | When true, request/response bodies are not forwarded to this destination — only metadata. | false |
samplingRate | number | ✔️ | Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%). | 1 |
type | ”clickhouse” | ✔️ | N/A | |
updatedAt | string | ✔️ | ISO timestamp of when the destination was last updated. | 2025-08-24T15:45:00Z |
workspaceId | string | ✔️ | ID of the workspace this destination belongs to. | 550e8400-e29b-41d4-a716-446655440000 |