Skip to content
Open
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
11 changes: 11 additions & 0 deletions plugins/SampleData/v3/configValidation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"steps": [
{
"displayName": "Load the sample company",
"dataStream": { "name": "objects" },
"required": true,
"error": "Could not load the sample data model. Check SquaredUp can reach raw.githubusercontent.com.",
"success": "Sample data is ready."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"displayName": "Host runs Service",
"source": { "types": "Host" },
"target": { "types": "Service" },
"conditions": [{ "sourceProperty": "serviceName", "operator": "equals", "targetProperty": "name" }],
"labels": { "forward": "runs", "reverse": "runs on" }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"displayName": "Pipeline deploys Service",
"source": { "types": "Pipeline" },
"target": { "types": "Service" },
"conditions": [{ "sourceProperty": "serviceName", "operator": "equals", "targetProperty": "name" }],
"labels": { "forward": "deploys", "reverse": "deployed by" }
}
6 changes: 6 additions & 0 deletions plugins/SampleData/v3/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{ "name": "Service", "sourceType": "Service", "icon": "cubes", "singular": "Service", "plural": "Services" },
{ "name": "Host", "sourceType": "Host", "icon": "server", "singular": "Host", "plural": "Hosts" },
{ "name": "Pipeline", "sourceType": "Pipeline", "icon": "code-branch", "singular": "Pipeline", "plural": "Pipelines" },
{ "name": "Customer", "sourceType": "Customer", "icon": "building", "singular": "Customer", "plural": "Customers" }
]
88 changes: 88 additions & 0 deletions plugins/SampleData/v3/dataStreams/businessMetrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"name": "businessMetrics",
"displayName": "Business Metrics",
"description": "Visitors, signups, orders, order value and recurring revenue over time",
"tags": [
"Business",
"Analytics"
],
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"endpointPath": "model.json",
"postRequestScript": "businessMetrics.js"
},
"matches": "none",
"metadata": [
{
"name": "timestamp",
"displayName": "Time",
"shape": "date",
"role": "timestamp"
},
{
"name": "visitors",
"displayName": "Visitors",
"shape": [
"number",
{
"decimalPlaces": 0,
"thousandsSeparator": true
}
]
},
{
"name": "signups",
"displayName": "Signups",
"shape": [
"number",
{
"decimalPlaces": 0,
"thousandsSeparator": true
}
]
},
{
"name": "orders",
"displayName": "Orders",
"shape": [
"number",
{
"decimalPlaces": 0,
"thousandsSeparator": true
}
]
},
{
"name": "orderValueUsd",
"displayName": "Order value",
"shape": [
"usd",
{
"decimalPlaces": 0
}
]
},
{
"name": "conversionRatePercent",
"displayName": "Conversion rate",
"shape": [
"percent",
{
"decimalPlaces": 2
}
]
},
{
"name": "mrrUsd",
"displayName": "MRR",
"shape": [
"usd",
{
"decimalPlaces": 0
}
]
}
],
"timeframes": true
}
90 changes: 90 additions & 0 deletions plugins/SampleData/v3/dataStreams/cloudCost.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"name": "cloudCost",
"displayName": "Cloud Cost",
"description": "Daily cloud spend and budget by service and cost category",
"tags": [
"Cost",
"FinOps"
],
"baseDataSourceName": "httpRequestScoped",
"config": {
"httpMethod": "get",
"endpointPath": "model.json",
"postRequestScript": "cloudCost.js"
},
"matches": {
"sourceType": {
"type": "oneOf",
"values": [
"Service"
]
}
},
"metadata": [
{
"name": "date",
"displayName": "Date",
"shape": [
"date",
{
"format": "dd MMM yyyy"
}
],
"role": "timestamp"
},
{
"name": "serviceId",
"visible": false
},
{
"name": "service",
"displayName": "Service",
"role": "label"
},
{
"name": "team",
"displayName": "Team"
},
{
"name": "provider",
"displayName": "Cloud provider"
},
{
"name": "category",
"displayName": "Category"
},
{
"name": "costUsd",
"displayName": "Cost",
"shape": [
"usd",
{
"decimalPlaces": 0
}
]
},
{
"name": "budgetUsd",
"displayName": "Budget",
"shape": [
"usd",
{
"decimalPlaces": 0
}
]
},
{
"sourceId": "serviceId",
"sourceType": "Service",
"name": "service"
}
],
"timeframes": [
"last7days",
"last30days",
"thisMonth",
"lastMonth",
"thisQuarter",
"lastQuarter"
]
}
57 changes: 57 additions & 0 deletions plugins/SampleData/v3/dataStreams/conversionFunnel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "conversionFunnel",
"displayName": "Conversion Funnel",
"description": "Signup to paid-customer conversion stages for the selected timeframe",
"tags": [
"Business",
"Analytics"
],
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"endpointPath": "model.json",
"postRequestScript": "conversionFunnel.js"
},
"matches": "none",
"defaultShaping": {
"sort": {
"by": [
[
"order",
"asc"
]
]
}
},
"metadata": [
{
"name": "order",
"displayName": "Order",
"shape": [
"number",
{
"decimalPlaces": 0,
"thousandsSeparator": true
}
],
"visible": false
},
{
"name": "stage",
"displayName": "Stage",
"role": "label"
},
{
"name": "count",
"displayName": "Count",
"shape": [
"number",
{
"decimalPlaces": 0,
"thousandsSeparator": true
}
]
}
],
"timeframes": true
}
Loading
Loading