Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Support tier rating #4

@chargio

Description

@chargio

User Story

As a user, I want to be able to define rates that use tiers so that I can replicate costs in the cloud.

Impacts

API, Docs

Role

Engine

Assumptions

  • Tiers are defined in a way that no overlap exist.

Acceptance Criteria

  • User rates some consumption with a rate that uses tiers, and tiers are applied properly

Rate are defined as a group of tiers (that can go to Infinite).

TierUnit: the Unit that defines what tiers are we using. If it does not exist (nil), it is the variable Unit.
Tiers are defined as components of an SKU price in AWS, modified by an offerTermCode (Tier == OfferTerm)

BeginRange: Integer
EndRange: Integer (can be Infinite - Inf)
Unit: The Unit for the input value (i.e. Quantity, Dollar)
PricePerUnit: variable price to be used
PriceFixed: fixed price to be used (AWS refers to it as quantity = 1, and a price)

Price Plan has many Rates
Rate has many Tiers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions