Create a metric.
Authorizations
LedgerUp API Key.
Headers
Optional. Duplicate keys within the same company namespace and route return 409. Non-empty idempotency key for deduplicating write requests on the same route.
"6f31c20e-725c-4be8-96f4-835042f67602"
Body
Create-metric request. Unknown JSON fields are rejected.
Human-readable name. Maximum 256 Unicode scalar values.
256"Acme"
Optional description. Maximum 2048 Unicode scalar values.
2048"Usage tracked for Acme."
Optional unit of measure for the metric, such as m, ft, seconds, or tokens.
256"m"
Response
Created.
LedgerUp metric identifier.
^metric_[0-9a-f]{32}$"metric_0194f4e3a2b77c6aa91c4f6b4db2a980"
Human-readable name. Maximum 256 Unicode scalar values.
256"Acme"
Optional description. Maximum 2048 Unicode scalar values.
2048"Usage tracked for Acme."
Optional unit of measure for the metric, such as m, ft, seconds, or tokens.
256"m"
Unix timestamp in seconds.
1767225600
Unix timestamp in seconds.
1767225600
Unix timestamp in seconds.
1767225600