Skip to content
Oclavex is in private preview, available to selected users. Public signup is blocked. Request access at [email protected].

Returns current usage on a metric for the given session.

GET
/api/v1/provision/usage/{sessionId}/{metric}/usage
curl --request GET \
--url https://example.com/api/v1/provision/usage/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/example/usage

A metric the entitlement does not track answers 204 with no body, and a session that no longer exists (deleted or revoked) answers 409 (license.no_active_session).

sessionId
required
string format: uuid

Active license session.

metric
required
string

Metric name.

OK

Consumer view of one asset’s usage: the current value plus the metered-tier status or credit balance backing it.

object
metricType

How reported usage values are interpreted and aggregated by the monitoring pipeline.

Allowed values: CumulativeCounter TotalCounter Gauge UpDownCounter
value
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/
meteredUsageStatus
One of:
null
balanceUsage
One of:
null

No Content

Conflict

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string