A metered feature object represents two things:
- the feature whose entitlement is consumed based on measured usage.
- the configuration that measures that usage.
Sample Metered featureJSON
API Index URL
Metered features attributes
The type of meter. Determines how usage is measured for the metered feature.
Usage is computed from a SQL query over usage_event properties.
Usage is computed from a mathematical formula combining other meters.
The current status of the metered feature.
The metered feature is active and new entitlements and subscription entitlements can be created for it.
No new entitlements and subscription entitlements can be created for the metered feature. However, any pre-existing entitlements and subscription entitlements remain effective.
The metered feature has been permanently deleted.
The SQL query used to measure usage from usage_event properties. For example: SELECT SUM(api_calls) FROM events.
Constraint:
- The properties referenced in the query are always one of
column_definitions.column_name.
The feature associated with this metered feature. This array has only one element since any given metered feature is associated with only one feature.