Skip to content

Commit 6cfa74c

Browse files
committed
Use Hourly refresh frequency, add sample data to Readme
1 parent 276fd1b commit 6cfa74c

28 files changed

Lines changed: 158 additions & 28 deletions

File tree

reports/active_by_product_term_monthly/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,23 @@ curl -v \
1818
"reportPrettyName": "Monthly Active Subscriptions by Product Term",
1919
"sourceTableName": "report_active_by_product_term_monthly",
2020
"refreshProcedureName": "refresh_active_by_product_term_monthly",
21-
"refreshFrequency": "DAILY"}' \
21+
"refreshFrequency": "HOURLY"}' \
2222
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2323
```
24+
## Sample Data
25+
26+
| tenant_record_id | day | product_name | billing_period | count |
27+
|------------------|------------|--------------|----------------|-------|
28+
| 1 | 2025-08-31 | Gold | MONTHLY | 3 |
29+
| 2 | 2025-08-31 | Gold | MONTHLY | 1 |
30+
| 1 | 2025-08-31 | Gold | ANNUAL | 2 |
31+
| 2 | 2025-09-30 | Silver | MONTHLY | 4 |
32+
| 2 | 2025-09-30 | Gold | QUARTERLY | 1 |
33+
34+
The first row in the above table indicates that on `2025-08-31` the `tenant_record_id=1` had 3 Monthly subscriptions for the `Gold` product.
35+
36+
37+
2438
## Report UI:
2539

2640
![monthly-active-subs-by-product-term.png](monthly-active-subs-by-product-term.png)

reports/cancellations_daily/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,22 @@ curl -v \
1818
"reportPrettyName": "Daily Cancellations",
1919
"sourceTableName": "report_cancellations_daily",
2020
"refreshProcedureName": "refresh_report_cancellations_daily",
21-
"refreshFrequency": "DAILY"}' \
21+
"refreshFrequency": "HOURLY"}' \
2222
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2323
```
24+
## Sample Data
25+
26+
| tenant_record_id | phase | day | count |
27+
|------------------|-----------|------------|-------|
28+
| 1 | EVERGREEN | 2025-09-10 | 9 |
29+
| 1 | EVERGREEN | 2025-09-03 | 2 |
30+
| 1 | EVERGREEN | 2025-09-22 | 5 |
31+
| 2 | EVERGREEN | 2025-09-23 | 6 |
32+
| 2 | EVERGREEN | 2025-09-24 | 6 |
33+
| 1 | EVERGREEN | 2025-09-25 | 1 |
34+
35+
The first row in the above table indicates that on `2025-09-10`, the `tenant_record_id=1` had 9 cancellations in `EVERGREEN` phase.
36+
2437
## Report UI:
2538

2639
![daily-cancellations.png](daily-cancellations.png)

reports/chargebacks_daily/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ curl -v \
1818
"reportPrettyName": "Daily Chargebacks Value",
1919
"sourceTableName": "report_chargebacks_daily",
2020
"refreshProcedureName": "refresh_report_chargebacks_daily",
21-
"refreshFrequency": "DAILY"}' \
21+
"refreshFrequency": "HOURLY"}' \
2222
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2323
```
24+
25+
## Sample Data
26+
27+
| tenant_record_id | day | currency | count |
28+
|------------------|------------|----------|----------|
29+
| 1 | 2025-09-18 | USD | 100.0000 |
30+
| 1 | 2025-09-26 | USD | 50.0000 |
31+
| 2 | 2025-09-11 | USD | 100.0000 |
32+
33+
The first row in the above table indicates that on `2025-09-18`, the `tenant_record_id=1` had a total chargeback value of `$100`
34+
35+
36+
## Report UI:
37+
38+
![chargebacks-daily.png](chargebacks-daily.png)
39+
40+
129 KB
Loading

reports/conversion-total-dollar-amount/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ curl -v \
1818
"reportPrettyName": "Conversions Total Dollar Amount",
1919
"sourceTableName": "report_conversions_total_dollar_monthly",
2020
"refreshProcedureName": "refresh_report_conversions_total_dollar_monthly",
21-
"refreshFrequency": "DAILY"}' \
21+
"refreshFrequency": "HOURLY"}' \
2222
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2323
```
2424

@@ -32,7 +32,7 @@ curl -v \
3232
|6| 2025-01-01 |ANNUAL|200|
3333
|1| 2025-04-01 |MONTHLY|30|
3434

35-
Here day represents the first day of the month representing that subscription's conversion month. So if the subscription converts from TRIAL to EVERGREEN phase on `2025-04-15`, the day will be `2025-04-01`.
35+
Here `day` represents the first day of the month representing that subscription's conversion month. So if the subscription converts from TRIAL to EVERGREEN phase on `2025-04-15`, the day will be `2025-04-01`. The first row in the above table means that in the month of June, a revenue of `$30` was generated when `WEEKLY` subscriptions moved out of `TRIAL`.
3636

3737
## Report UI:
3838

reports/invoice_aging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ curl -v \
2222
"reportPrettyName": "Invoice Aging Report",
2323
"sourceTableName": "report_invoice_aging",
2424
"refreshProcedureName": "refresh_report_invoice_aging",
25-
"refreshFrequency": "DAILY"}' \
25+
"refreshFrequency": "HOURLY"}' \
2626
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2727
```
2828

reports/invoice_aging_no_payment/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ curl -v \
2222
"reportPrettyName": "Invoice Aging No Payments Report",
2323
"sourceTableName": "report_invoice_aging_no_payment",
2424
"refreshProcedureName": "refresh_report_invoice_aging_no_payment",
25-
"refreshFrequency": "DAILY"}' \
25+
"refreshFrequency": "HOURLY"}' \
2626
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2727
```
2828

reports/invoice_credits_daily/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@ curl -v \
2020
"reportPrettyName": "Invoice Credits Daily",
2121
"sourceTableName": "report_invoice_credits_daily",
2222
"refreshProcedureName": "refresh_report_invoice_credits_daily",
23-
"refreshFrequency": "DAILY"}' \
23+
"refreshFrequency": "HOURLY"}' \
2424
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2525
```
2626

2727
## Sample Data
2828

2929
| Tenant Record Id | Currency | Day | Count |
3030
|------------------|----------|------------|----------|
31-
| 1 | USD | 2025-05-05 | 0.0000 |
3231
| 1 | USD | 2025-09-19 | 80.0000 |
3332
| 22 | USD | 2025-09-19 | 125.0000 |
3433
| 22 | EUR | 2025-09-22 | 45.0000 |
3534
| 22 | USD | 2025-09-18 | -10.0000 |
3635

37-
This means that on `2025-09-19`, there was a total invoice credit of `$80` for the tenant_record_id=1.
36+
The first row in the above table indicates that on `2025-09-19`, there was a total invoice credit of `$80` for the tenant_record_id=1.
3837

3938

4039
## Report UI:

reports/invoice_credits_monthly/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ curl -v \
2222
"reportPrettyName": "Invoice Credits Monthly Report",
2323
"sourceTableName": "report_invoice_credits_monthly",
2424
"refreshProcedureName": "refresh_report_invoice_credits_monthly",
25-
"refreshFrequency": "DAILY"}' \
25+
"refreshFrequency": "HOURLY"}' \
2626
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2727
```
2828

reports/invoice_item_adjustments_daily/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ curl -v \
2020
"reportPrettyName": "Invoice Item Adjustments Daily",
2121
"sourceTableName": "report_invoice_item_adjustments_daily",
2222
"refreshProcedureName": "refresh_report_invoice_item_adjustments_daily",
23-
"refreshFrequency": "DAILY"}' \
23+
"refreshFrequency": "HOURLY"}' \
2424
"http://127.0.0.1:8080/plugins/killbill-analytics/reports"
2525
```
2626

@@ -38,7 +38,7 @@ curl -v \
3838
| 1 | USD | 2025-09-19 | -19.3100 |
3939
| 489 | USD | 2025-09-19 | -10.0000 |
4040

41-
This means that on the date `2025-08-28`, the tenant with record id=1 had a total invoice adjustments of EUR 10.
41+
The first row in the above table indicates that on the date `2025-08-28`, the tenant with record id=1 had a total invoice adjustments of EUR 10.
4242

4343
## Report UI:
4444

0 commit comments

Comments
 (0)