Example 1: Cloud Storage and File Cleanup - m3ter Documentation

m3ter Worked Example 1 - YouTube

Suppose you run a SaaS company that provides cloud storage and file cleanup services for corrupted graphics files. You want to charge your customers in US dollars on a monthly basis using the following usage pricing metrics:

In addition to any usage charges, you want to apply a monthly standing charge of $20. This topic provides a worked example and steps you through the setup required to implement this SaaS usage-based pricing (UBP) model. It goes on to show you how to submit some sample usage data against a test Account, generate a Bill for that Account, and check billing amounts against submitted usage.

Step 1: Create Product

Products represent a product or service that you offer to your end customers. A Meter, Aggregation, Plan Template, Plan, or Pricing typically all belong to a Product. To create a Product:

  1. In the Console, select Products. The Products page opens.

  2. Select Create product. We’ll create a single Product called Revive Graph Standard:

  3. Select Create product.

The Revive Graph Standard Product can now serve as a container for any Meters, Aggregations, Pricing, Plans, and Plan Templates we’ll need for the example.

Step 2: Set up Meter

Meters define the data fields that your system will use to submit usage data to the m3ter platform:

To create a Meter:

  1. Select Metering. The Meters page opens.
  2. In the Product drop-down, select Revive Graph Standard.
  3. Select Create meter.

Here’s the Meter set up to support the pricing model we want to use in the example:

For the example, we’ve created the Store N Clean Meter and added the following fields to capture usage data:

  1. Select Create meter.

We now have a single Meter for the example, which we can use to collect usage data on any Account that consumes the Revive Graph Standard Product. This metered usage data will serve as the basis for the pricing metrics we want to apply to rate Product consumption.

Step 3: Define Aggregations

Aggregations define how to transform into a single number the individual measurements submitted to a Meter Data Field as usage data. For example, you may choose to simply SUM the submitted usage data values. In this way, Aggregations define the usage-based pricing metrics you’ll use to set up pricing for your products and services. For the usage-based pricing model we want to implement in our example, we’ll need to create three Aggregations based on the usage data collected by our Store N Clean Meter. Each Aggregation will target a different Meter field to define a pricing metric:

To create an Aggregation:

  1. Select Metering. The Meters page opens.
  2. Select Aggregations:
  3. In the Product drop-down, select Revive Graph Standard.
  4. Select Create aggregation.

Here’s the setup for the first Aggregation:

The Gigabyte Store Aggregation gives us our first pricing metric by:

  1. Select Create Aggregation.
  2. Repeat steps 4. and 5. to create another two Aggregations:

Here’s the setup for the second Aggregation:

The Graphic File Submits Aggregation gives us our second pricing metric by:

Here’s the setup for the third Aggregation:

The Processing Average Aggregation gives us our third pricing metric by:

Step 4: Create Product Plan

Plans represent a pricing plan for one of your products or services. A Plan is always derived from a Plan Template and inherits settings from the Plan Template which control billing operations, such as billing frequency and currency. You can override some of these settings when you create a Plan from a Plan Template. To meet the example requirements:

To create a Product Plan Template:

  1. Select Pricing. The Plans page opens.
  2. Select Plan templates:
  3. In the Product drop-down, select Revive Graph Standard.
  4. Select Create plan template. The Create page opens.

Here’s the setup for the Plan template details: For the Revive Graph Standard Plan Template we’ve:

  1. Configure the settings for Standing charge and Minimum spend amounts:
  1. Select Create plan template. You are returned to the Plan template details page for the new template.

We can now proceed to create a Product Plan for the example based on this template.

  1. Select Plans:
  2. In the Product drop-down, select Revive Graph Standard.
  3. Select Create plan. The Create page opens.

Note that we don’t need to do any Plan template overrides for Standing charge or Minimum spend amounts we want to apply for the example - we configured the Revive Graph Standard Template for the required Standing charge amount of $20 per month, and our new Revive Graph Standard Plan will inherit this setting from the template.

  1. Select Create plan. You are returned to the Plan details page.

In the next step, we can price this Plan using our Aggregations.

Step 5: Price Product Plan

Pricing allows you to configure the cost of usage data under a specific Plan you apply to an Account, and is used to calculate bills. We can use the Pricing editor in the Console to quickly price up our Product Plan to meet the pricing requirements for the example.

To price Product Plan:

  1. Select Pricing. The Pricing page opens.
  2. Select Pricing editor:
  3. In the Product drop-down, select Revive Graph Standard.
  4. Select Add plans. The Select plans dialog opens and lists all Plans created for the Revive Graph Standard Product.
  5. Check Revive Graph Standard Plan and select Confirm:

We’ll use the Aggregations we created at Step 3 as usage-based metrics to price the Plan in accordance with the requirements set out in the example.

  1. Click Add aggregations. A Select aggregations dialog appears and lists all Aggregations created for the Revive Graph Standard Product.
  2. On the dialog check our three Aggregations:
  1. Click Confirm. The dialog closes and the selected Aggregations are added to the Pricing editor for the added Plan.

  2. In the pricing grid, select Create plan pricing for the GigaByte Stored Aggregation. The Create pricing page opens:

  3. Work down the form to enter:

  1. Select Create pricing. The Create pricing page closes and the pricing using the Aggregation is shown as active in the pricing grid:
  2. Repeat steps 9. to 11., using the other two Aggregations we created for pricing the Plan, and use a suitable pricing type and structure for each pricing:
  1. When you have saved the further two pricings, each will also show as Active Pricing for the Plan in the grid:

We now have a Product Plan priced according to the pricing requirements.

Step 6: Create Test Account and Attach Priced Plan

Accounts represent one of your end-customers, and contain an end-customer’s name and contact details:

For this step, we’ll create a test Account for the example and attach our priced Plan to it. To create a test Account and attach Plan:

  1. In the main Console navigation, select Accounts. The Accounts page opens.
  2. Select Create account. The Create page opens.
  3. Enter the Account details:
  1. Select Create account. You are returned to the Account details page with the Overview tab selected.

For the worked example, we’ve created the Revive Graph Customer 1 test Account.

  1. Select the Attached plans tab.
  2. On the Active and pending attached plans panel, select Create plan attachment. The Create page opens.
  3. On the Create page, leave the radio button for Plan as default setting and enter the Plan attachment details:
  1. Select Create plan attachment. On the Attached plans tab, the Account Plan is shown on the Active and pending attached plans panel:

We now have a Revive Graph Customer 1 test Account set up that will be billed according to the pricing schema we’ve configured for the Revive Graph Standard Plan for any metered usage of the Product by the Account.

Step 7: Submit Data to Test Account and Check Bill

We’ll now submit some test usage data to our test Account for the Store N Clean Meter, which will allow us to generate a Bill and check that the usage charges on the Bill for the submitted usage data are correct.

  1. Select Accounts. On the Accounts page, select the NAME hotlink text of the Revive Graph Customer 1 test Account we created at Step 6. The Account details page opens with the Overview tab selected.
  2. Select Submit usage:
  3. Under stage 1: Select a meter, use the Meter drop-down to select the Store N Clean Meter and then select Next. The dialog adjusts to show stage 2: Define measurements and send:
  4. Enter some test data Values for each of the Data Fields:
  1. Select Submit usage. If the measurement is ingested successfully, you’ll see a { "result" : "accepted" } message under the Log section of the Submit usage data dialog.
  2. For additional test data measurements, repeat steps 3. to 5.
  3. On the Account details page, select the Bills tab.
  4. On the Bills tab, select Run billing. The Run billing dialog appears.
  5. Select Run billing. The dialog closes and your Bill job is queued.

When the Bill has generated, it will be listed on the Bills tab for the Account. Select the Reference hotlink text to open the Bill in Bill management.

Before checking a sample Bill we’ve generated for the Account, we can calculate manually what the cumulative usage charges should be for each part of the usage-based pricing we’ve implemented:

The Bill for the Account should be the total of these three usage charges = $220 plus the standing charge of $20 per billing period, which amounts to an overall total = $240. Deploying to Production: Having submitted some metered test data against a test Account, generated a Bill for the Account, and confirmed that charges are in accordance with our pricing requirements for consumption of our Product, we can be comfortable deploying our usage-based pricing implementation to live production.