Policy Rule Variables for User Quotas

In addition to the basic policy rule variables, you can use the following user quota variables defined for the Diameter Gx protocol to get the current subscriber's quota usage for a specified quota profile and type.

The format of a policy rule variable when used with a user quota is as follows:

{User.Quota.profilename.type.[aggregate]}

where:

profilename
The name of a quota profile as defined in the CMP database.
type
Specifies the quota type. Possible values are:
  • Time — Replaced with the total time in seconds consumed by the subscriber from the quota profile.
  • Volume — Replaced with the total volume in bytes consumed by the subscriber from the quota profile.
  • UpVolume — Replaced with the total upstream volume in bytes consumed by the subscriber from the quota profile.
  • DownVolume — Replaced with the total downstream volume in bytes consumed by the subscriber from the quota profile.
  • ServiceSpecific — Replaced with the total number of service-specific events for the subscriber from the quota profile.
aggregate (optional)
Possible values are:
  • aggregate — If the quota is a quota plan with a quota convention, returns the aggregate usage.
  • noaggregate (the default) — Returns the usage for the specified quota (without aggregation).

For example, the variable {User.Quota.MonthlyQuota.Volume.aggregate} returns the subscriber's aggregate volume usage, in bytes, from the quota plan named MonthlyQuota.