Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { ObservabilityNewrelicDestination } from "@openrouter/sdk/models";

let value: ObservabilityNewrelicDestination = {
  apiKeyHashes: null,
  config: {
    licenseKey: "<value>",
  },
  createdAt: "2025-08-24T10:30:00Z",
  enabled: true,
  filterRules: null,
  id: "99999999-aaaa-bbbb-cccc-dddddddddddd",
  name: "Production Langfuse",
  privacyMode: false,
  samplingRate: 1,
  type: "newrelic",
  updatedAt: "2025-08-24T15:45:00Z",
  workspaceId: "550e8400-e29b-41d4-a716-446655440000",
};

Fields

FieldTypeRequiredDescriptionExample
apiKeyHashesstring[]:heavy_check_mark:Optional allowlist of OpenRouter API key hashes (api_keys.hash) whose traffic is forwarded to this destination. null means all keys.<nil>
configmodels.ObservabilityNewrelicDestinationConfig:heavy_check_mark:N/A
createdAtstring:heavy_check_mark:ISO timestamp of when the destination was created.2025-08-24T10:30:00Z
enabledboolean:heavy_check_mark:Whether this destination is currently enabled.true
filterRulesmodels.ObservabilityFilterRulesConfig:heavy_check_mark:Optional structured filter rules controlling which events are forwarded.<nil>
idstring:heavy_check_mark:Stable public identifier for this destination.99999999-aaaa-bbbb-cccc-dddddddddddd
namestring:heavy_check_mark:Human-readable name for the destination.Production Langfuse
privacyModeboolean:heavy_check_mark:When true, request/response bodies are not forwarded to this destination — only metadata.false
samplingRatenumber:heavy_check_mark:Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).1
type”newrelic”:heavy_check_mark:N/A
updatedAtstring:heavy_check_mark:ISO timestamp of when the destination was last updated.2025-08-24T15:45:00Z
workspaceIdstring:heavy_check_mark:ID of the workspace this destination belongs to.550e8400-e29b-41d4-a716-446655440000