TypeScript SDKAPI ReferenceOperationsMetric - TypeScript SDKCopy pageMetric type definitionThe TypeScript SDK and docs are currently in beta. Report issues on GitHub. Example Usage 1import { Metric } from "@openrouter/sdk/models/operations";23let value: Metric = {4 displayFormat: "number",5 displayLabel: "Request Count",6 isRate: false,7 name: "request_count",8}; Fields FieldTypeRequiredDescriptionExampledisplayFormatoperations.DisplayFormat✔️How this metric value should be formatted for display (e.g. percent → multiply by 100 and append %, currency → prefix with $)numberdisplayLabelstring✔️Human-readable labelRequest CountisRateboolean✔️Whether this metric is a rate/ratio (averaged, not summed)namestring✔️Metric identifier used in query requestsrequest_count