Metered Features

Metered features have values associated with usage.

You can list them using the meteredFeatures query.

meteredFeatures(
first: Int!,
after: String,
orderBy: ProductMeteredFeaturesOrderBy
): ProductMeteredFeatureConnection

The query returns a paginated connection of ProductMeteredFeature nodes.

type ProductMeteredFeature implements Node {
id: ID!
label: String!
displayName: String!
numericOptions: [ProductMeteredFeatureNumericOptions!]
}
type ProductMeteredFeatureNumericOptions {
label: String!
displayName: String!
numericDetails: ProductMeteredFeatureNumericDetails!
}
type ProductMeteredFeatureNumericDetails {
unit: String!
costTiers: [ProductFeatureCostTier!]!
}
type ProductFeatureCostTier {
limit: Int!
cost: Int!
}

Metered Features

Field

Description

id

The feature's unique identifier

label

A unique human readable label for the feature

displayName

The name of the feature. This is the title text displayed in the features table

numericOptions

These are metadata for the feature. See below.

Metered Feature Options

Field

Description

label

An unique label for the feature option

displayName

For now it is the same as the metered feature's displayName above

numericDetails

Contains the feature's unit type and cost tiers

Numeric Details

Field

Description

unit

The name of the unit that is used for pricing calculations (e.g. "GB", "user", etc)

costTiers

A list of cost tiers per N units

Cost Tiers

Field

Description

limit

The max number of units (see above) for this tier

cost

This tier's cost per unit