Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions apps/dev-playground/shared/appkit-types/metric-views.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,31 @@ declare module "@databricks/appkit-ui/react" {
measures: {
"active_accounts": {
type: "bigint";
display_name: "Active Accounts";
format: "#,##0";
};
"churn_rate": {
type: "decimal";
display_name: "Churn Rate";
};
"avg_ltv": {
type: "double";
display_name: "Average LTV";
format: "$#,##0.00";
};
};
dimensions: {
"segment": {
type: "string";
display_name: "Customer Segment";
};
"region": {
type: "string";
display_name: "Region";
};
"csm_email": {
type: "string";
display_name: "CSM Email";
};
};
};
Expand Down Expand Up @@ -80,27 +88,38 @@ declare module "@databricks/appkit-ui/react" {
measures: {
"mrr": {
type: "double";
display_name: "Monthly Recurring Revenue";
format: "$#,##0.00";
};
"arr": {
type: "double";
display_name: "Annual Recurring Revenue";
format: "$#,##0.00";
description: "Annualized contract value across all active subscriptions";
};
"new_arr": {
type: "double";
display_name: "New ARR";
format: "$#,##0.00";
};
"churned_arr": {
type: "double";
display_name: "Churned ARR";
format: "$#,##0.00";
};
};
dimensions: {
"region": {
type: "string";
display_name: "Region";
};
"segment": {
type: "string";
display_name: "Customer Segment";
};
"created_at": {
type: "timestamp_ltz";
display_name: "Subscription Start";
time_grain: readonly ["day", "hour", "minute", "month", "quarter", "week", "year"];
};
};
Expand Down
1 change: 1 addition & 0 deletions docs/static/schemas/metric-source.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading