diff --git a/plugins/SampleData/v3/correlationRules/relate-customer-to-service.json b/plugins/SampleData/v3/correlationRules/relate-customer-to-service.json new file mode 100644 index 00000000..ac7383a7 --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-customer-to-service.json @@ -0,0 +1,7 @@ +{ + "displayName": "Customer uses Service", + "source": { "types": "Customer" }, + "target": { "types": "Service" }, + "conditions": [{ "sourceProperty": "uses", "operator": "equals", "targetProperty": "name" }], + "labels": { "forward": "uses", "reverse": "used by" } +} diff --git a/plugins/SampleData/v3/correlationRules/relate-region-to-host.json b/plugins/SampleData/v3/correlationRules/relate-region-to-host.json new file mode 100644 index 00000000..5c859267 --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-region-to-host.json @@ -0,0 +1,7 @@ +{ + "displayName": "Region hosts Host", + "source": { "types": "Region" }, + "target": { "types": "Host" }, + "conditions": [{ "sourceProperty": "name", "operator": "equals", "targetProperty": "region" }], + "labels": { "forward": "hosts", "reverse": "hosted in" } +} diff --git a/plugins/SampleData/v3/correlationRules/relate-region-to-service.json b/plugins/SampleData/v3/correlationRules/relate-region-to-service.json new file mode 100644 index 00000000..06def28a --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-region-to-service.json @@ -0,0 +1,7 @@ +{ + "displayName": "Region hosts Service", + "source": { "types": "Region" }, + "target": { "types": "Service" }, + "conditions": [{ "sourceProperty": "name", "operator": "equals", "targetProperty": "region" }], + "labels": { "forward": "hosts", "reverse": "hosted in" } +} diff --git a/plugins/SampleData/v3/correlationRules/relate-service-to-service.json b/plugins/SampleData/v3/correlationRules/relate-service-to-service.json new file mode 100644 index 00000000..14fb0bed --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-service-to-service.json @@ -0,0 +1,7 @@ +{ + "displayName": "Service calls Service", + "source": { "types": "Service" }, + "target": { "types": "Service" }, + "conditions": [{ "sourceProperty": "calls", "operator": "equals", "targetProperty": "name" }], + "labels": { "forward": "calls", "reverse": "called by" } +} diff --git a/plugins/SampleData/v3/correlationRules/relate-team-to-pipeline.json b/plugins/SampleData/v3/correlationRules/relate-team-to-pipeline.json new file mode 100644 index 00000000..d6a6a9b4 --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-team-to-pipeline.json @@ -0,0 +1,7 @@ +{ + "displayName": "Team owns Pipeline", + "source": { "types": "Team" }, + "target": { "types": "Pipeline" }, + "conditions": [{ "sourceProperty": "name", "operator": "equals", "targetProperty": "team" }], + "labels": { "forward": "owns", "reverse": "owned by" } +} diff --git a/plugins/SampleData/v3/correlationRules/relate-team-to-service.json b/plugins/SampleData/v3/correlationRules/relate-team-to-service.json new file mode 100644 index 00000000..9007c8e6 --- /dev/null +++ b/plugins/SampleData/v3/correlationRules/relate-team-to-service.json @@ -0,0 +1,7 @@ +{ + "displayName": "Team owns Service", + "source": { "types": "Team" }, + "target": { "types": "Service" }, + "conditions": [{ "sourceProperty": "name", "operator": "equals", "targetProperty": "team" }], + "labels": { "forward": "owns", "reverse": "owned by" } +} diff --git a/plugins/SampleData/v3/custom_types.json b/plugins/SampleData/v3/custom_types.json index ab514bc3..a6fad3ba 100644 --- a/plugins/SampleData/v3/custom_types.json +++ b/plugins/SampleData/v3/custom_types.json @@ -2,5 +2,7 @@ { "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" } + { "name": "Customer", "sourceType": "Customer", "icon": "building", "singular": "Customer", "plural": "Customers" }, + { "name": "Team", "sourceType": "Team", "icon": "users", "singular": "Team", "plural": "Teams" }, + { "name": "Region", "sourceType": "Region", "icon": "globe", "singular": "Region", "plural": "Regions" } ] diff --git a/plugins/SampleData/v3/dataStreams/cloudCost.json b/plugins/SampleData/v3/dataStreams/cloudCost.json index c900d2a0..243fb3bf 100644 --- a/plugins/SampleData/v3/dataStreams/cloudCost.json +++ b/plugins/SampleData/v3/dataStreams/cloudCost.json @@ -16,7 +16,9 @@ "sourceType": { "type": "oneOf", "values": [ - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/deployments.json b/plugins/SampleData/v3/dataStreams/deployments.json index fd940edb..ce2c508d 100644 --- a/plugins/SampleData/v3/dataStreams/deployments.json +++ b/plugins/SampleData/v3/dataStreams/deployments.json @@ -17,7 +17,9 @@ "type": "oneOf", "values": [ "Pipeline", - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/hostHealth.json b/plugins/SampleData/v3/dataStreams/hostHealth.json index 4edf9b7d..6375d119 100644 --- a/plugins/SampleData/v3/dataStreams/hostHealth.json +++ b/plugins/SampleData/v3/dataStreams/hostHealth.json @@ -17,7 +17,9 @@ "type": "oneOf", "values": [ "Host", - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/hostPerformance.json b/plugins/SampleData/v3/dataStreams/hostPerformance.json index 0415d201..5b1d2dc4 100644 --- a/plugins/SampleData/v3/dataStreams/hostPerformance.json +++ b/plugins/SampleData/v3/dataStreams/hostPerformance.json @@ -17,7 +17,9 @@ "type": "oneOf", "values": [ "Host", - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/objects.json b/plugins/SampleData/v3/dataStreams/objects.json index c9c7a5c4..0250ef04 100644 --- a/plugins/SampleData/v3/dataStreams/objects.json +++ b/plugins/SampleData/v3/dataStreams/objects.json @@ -1,7 +1,7 @@ { "name": "objects", "displayName": "Objects", - "description": "Every service, host, pipeline and customer in the sample company", + "description": "Every service, host, pipeline, customer, team and region in the sample company", "tags": [ "Inventory" ], @@ -55,6 +55,11 @@ } ] }, + { + "name": "calls", + "displayName": "Calls", + "shape": ["array", { "itemShape": "string" }] + }, { "name": "serviceName", "displayName": "Service" @@ -83,6 +88,11 @@ "name": "country", "displayName": "Country" }, + { + "name": "uses", + "displayName": "Uses", + "shape": ["array", { "itemShape": "string" }] + }, { "name": "slaTarget", "displayName": "SLA target", diff --git a/plugins/SampleData/v3/dataStreams/scripts/businessMetrics.js b/plugins/SampleData/v3/dataStreams/scripts/businessMetrics.js index 3545496b..ccc0a033 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/businessMetrics.js +++ b/plugins/SampleData/v3/dataStreams/scripts/businessMetrics.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); diff --git a/plugins/SampleData/v3/dataStreams/scripts/cloudCost.js b/plugins/SampleData/v3/dataStreams/scripts/cloudCost.js index 152d1150..a1f229a3 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/cloudCost.js +++ b/plugins/SampleData/v3/dataStreams/scripts/cloudCost.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -142,7 +151,7 @@ const categories = [ ]; const rows = []; const today = Math.floor(NOW / DAY); -for (const s of scoped(model.services)) { +for (const s of scopedServices()) { const dailyBudget = (s.monthlyCost * 1.08) / 30; for (let day = Math.floor(windowStart / DAY); day <= Math.min(today, Math.floor((windowEnd - 1) / DAY)); day++) { // Search has a cost anomaly: an index rebuild left extra nodes running for the last 9 days diff --git a/plugins/SampleData/v3/dataStreams/scripts/conversionFunnel.js b/plugins/SampleData/v3/dataStreams/scripts/conversionFunnel.js index 5bf1c96c..1c468dad 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/conversionFunnel.js +++ b/plugins/SampleData/v3/dataStreams/scripts/conversionFunnel.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); diff --git a/plugins/SampleData/v3/dataStreams/scripts/customerSla.js b/plugins/SampleData/v3/dataStreams/scripts/customerSla.js index c4b8d598..7284ebc3 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/customerSla.js +++ b/plugins/SampleData/v3/dataStreams/scripts/customerSla.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); diff --git a/plugins/SampleData/v3/dataStreams/scripts/deployments.js b/plugins/SampleData/v3/dataStreams/scripts/deployments.js index c4a58153..7761386b 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/deployments.js +++ b/plugins/SampleData/v3/dataStreams/scripts/deployments.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -136,6 +145,13 @@ const availability30d = (s) => { const rows = []; const today = Math.floor(NOW / DAY); +// One release train per week, 4.11 is this week, so the incident's 4.12.0 is the newest +// version. Every 40 trains roll over into the previous major, so no component goes negative +const versionFor = (day, n) => { + const train = 11 - Math.floor((today - day) / 7); + const patch = (6 - ((today - day) % 7)) * 7 + n; + return `${4 + Math.floor(train / 40)}.${((train % 40) + 40) % 40}.${patch}`; +}; for (const p of scoped(model.pipelines).filter((p) => forService(p.service))) { const s = services[p.service]; for (let day = Math.floor(windowStart / DAY); day <= Math.min(today, Math.floor((windowEnd - 1) / DAY)); day++) { @@ -147,6 +163,8 @@ for (const p of scoped(model.pipelines).filter((p) => forService(p.service))) { // Deploys land in working hours, 08:00-18:00 UTC const at = day * DAY + (8 + rand(`${key}:at`) * 10) * HOUR; if (at < windowStart || at > Math.min(windowEnd, NOW - 30 * MIN)) continue; + // The incident release is the last one out of its pipeline + if (p.id === incident.pipeline && at >= incidentStart - 6 * MIN) continue; const failed = rand(`${key}:fail`) < p.failureRate; const changeFailure = !failed && rand(`${key}:cf`) < p.failureRate * 0.6; rows.push({ @@ -157,7 +175,7 @@ for (const p of scoped(model.pipelines).filter((p) => forService(p.service))) { service: s.name, team: teams[p.team].name, tool: p.tool, - version: `${4 + Math.floor(day / 120) % 3}.${day % 40}.${n}`, + version: versionFor(day, n), status: failed ? "Failed" : "Succeeded", state: failed ? "error" : changeFailure ? "warning" : "success", changeFailure, diff --git a/plugins/SampleData/v3/dataStreams/scripts/hostHealth.js b/plugins/SampleData/v3/dataStreams/scripts/hostHealth.js index daf2c417..4978e9be 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/hostHealth.js +++ b/plugins/SampleData/v3/dataStreams/scripts/hostHealth.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); diff --git a/plugins/SampleData/v3/dataStreams/scripts/hostPerformance.js b/plugins/SampleData/v3/dataStreams/scripts/hostPerformance.js index 31b87562..5ee57044 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/hostPerformance.js +++ b/plugins/SampleData/v3/dataStreams/scripts/hostPerformance.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); diff --git a/plugins/SampleData/v3/dataStreams/scripts/objects.js b/plugins/SampleData/v3/dataStreams/scripts/objects.js index 17d026f4..6b07e394 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/objects.js +++ b/plugins/SampleData/v3/dataStreams/scripts/objects.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -143,6 +152,7 @@ const services_ = model.services.map((s) => ({ region: regions[s.region].name, provider: s.provider, sloTarget: s.sloTarget, + calls: model.dependencies.filter((d) => d.from === s.id).map((d) => services[d.to].name), })); const hosts = model.hosts.map((h) => ({ id: h.id, @@ -171,5 +181,18 @@ const customers = model.customers.map((c) => ({ city: c.city, country: c.country, slaTarget: c.slaTarget, + uses: (c.services || []).map((id) => services[id].name), })); -result = [...services_, ...hosts, ...pipelines, ...customers]; +// Prefixed ids keep teams and regions apart from the service and host ids the streams scope on +const teams_ = model.teams.map((t) => ({ + id: `team-${t.id}`, + name: t.name, + type: "Team", +})); +const regions_ = model.regions.map((r) => ({ + id: `region-${r.id}`, + name: r.name, + type: "Region", + provider: r.provider, +})); +result = [...services_, ...hosts, ...pipelines, ...customers, ...teams_, ...regions_]; diff --git a/plugins/SampleData/v3/dataStreams/scripts/serviceDependencies.js b/plugins/SampleData/v3/dataStreams/scripts/serviceDependencies.js index 16349002..2b6c1f0f 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/serviceDependencies.js +++ b/plugins/SampleData/v3/dataStreams/scripts/serviceDependencies.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -134,7 +143,7 @@ const availability30d = (s) => { }; // --- End shared block --- -const ids = new Set(scoped(model.services).map((s) => s.id)); +const ids = new Set(scopedServices().map((s) => s.id)); result = model.dependencies .filter((d) => ids.has(d.from) || ids.has(d.to)) .map((d) => { diff --git a/plugins/SampleData/v3/dataStreams/scripts/serviceHealth.js b/plugins/SampleData/v3/dataStreams/scripts/serviceHealth.js index d3ba25ed..f8c664fe 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/serviceHealth.js +++ b/plugins/SampleData/v3/dataStreams/scripts/serviceHealth.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -134,7 +143,7 @@ const availability30d = (s) => { }; // --- End shared block --- -result = scoped(model.services).map((s) => { +result = scopedServices().map((s) => { const now = signals(s, NOW); const availability = availability30d(s); const budget = 100 - s.sloTarget; diff --git a/plugins/SampleData/v3/dataStreams/scripts/serviceMetrics.js b/plugins/SampleData/v3/dataStreams/scripts/serviceMetrics.js index 74e86164..1fab2db6 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/serviceMetrics.js +++ b/plugins/SampleData/v3/dataStreams/scripts/serviceMetrics.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -135,7 +144,7 @@ const availability30d = (s) => { // --- End shared block --- const rows = []; -for (const s of scoped(model.services)) { +for (const s of scopedServices()) { for (const t of buckets()) { rows.push({ timestamp: iso(t), serviceId: s.id, service: s.name, ...signals(s, t) }); } diff --git a/plugins/SampleData/v3/dataStreams/scripts/tickets.js b/plugins/SampleData/v3/dataStreams/scripts/tickets.js index 433aede4..03ed2a03 100644 --- a/plugins/SampleData/v3/dataStreams/scripts/tickets.js +++ b/plugins/SampleData/v3/dataStreams/scripts/tickets.js @@ -102,10 +102,19 @@ const services = byId(model.services); const regions = byId(model.regions); const teams = byId(model.teams); -// Host, deployment and ticket streams can also be scoped to services (the Service -// perspective); rows are then narrowed to those services -const serviceFilter = new Set((context.objects || []).map((o) => unwrap(o.rawId)).filter((id) => services[id])); +// Service, host, deployment and ticket streams can also be scoped to services, or to +// the team that owns them, the region that hosts them or a customer that uses them; +// rows are then narrowed to those services +const customersById = byId(model.customers); +const scopeIds = (context.objects || []).map((o) => unwrap(o.rawId)); +const usedBy = (id) => (customersById[id] && customersById[id].services) || []; +const serviceFilter = new Set( + model.services + .filter((s) => scopeIds.some((id) => id === s.id || id === `team-${s.team}` || id === `region-${s.region}` || usedBy(id).includes(s.id))) + .map((s) => s.id), +); const forService = (serviceId) => serviceFilter.size === 0 || serviceFilter.has(serviceId); +const scopedServices = () => model.services.filter((s) => forService(s.id)); // Golden signals for a service at time t const stress = (s, t) => Math.min(1, serviceImpact(s.id, t) + blip(s.id, t)); @@ -192,7 +201,8 @@ for (const c of scoped(model.customers)) { if (opened < windowStart || opened > Math.min(windowEnd, NOW)) continue; const priority = pick(rand(`${key}:p`), priorities); const category = categoryList[Math.floor(rand(`${key}:c`) * categoryList.length)]; - const service = servicePool[Math.floor(rand(`${key}:s`) * servicePool.length)]; + const pool = usedBy(c.id).length ? usedBy(c.id).map((id) => services[id]) : servicePool; + const service = pool[Math.floor(rand(`${key}:s`) * pool.length)]; if (!forService(service.id)) continue; rows.push(ticket(c, (day % 10000) * 200 + ci * 10 + n, key, opened, priority, category, service, 0.1 + Math.pow(rand(`${key}:res`), 2))); } diff --git a/plugins/SampleData/v3/dataStreams/serviceDependencies.json b/plugins/SampleData/v3/dataStreams/serviceDependencies.json index 01f1be6d..58012df0 100644 --- a/plugins/SampleData/v3/dataStreams/serviceDependencies.json +++ b/plugins/SampleData/v3/dataStreams/serviceDependencies.json @@ -15,7 +15,9 @@ "sourceType": { "type": "oneOf", "values": [ - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/serviceHealth.json b/plugins/SampleData/v3/dataStreams/serviceHealth.json index 40937b70..978872a0 100644 --- a/plugins/SampleData/v3/dataStreams/serviceHealth.json +++ b/plugins/SampleData/v3/dataStreams/serviceHealth.json @@ -16,7 +16,10 @@ "sourceType": { "type": "oneOf", "values": [ - "Service" + "Service", + "Team", + "Region", + "Customer" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/serviceMetrics.json b/plugins/SampleData/v3/dataStreams/serviceMetrics.json index 587a9736..418fb052 100644 --- a/plugins/SampleData/v3/dataStreams/serviceMetrics.json +++ b/plugins/SampleData/v3/dataStreams/serviceMetrics.json @@ -16,7 +16,9 @@ "sourceType": { "type": "oneOf", "values": [ - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/dataStreams/tickets.json b/plugins/SampleData/v3/dataStreams/tickets.json index 84dba063..e092ae74 100644 --- a/plugins/SampleData/v3/dataStreams/tickets.json +++ b/plugins/SampleData/v3/dataStreams/tickets.json @@ -17,7 +17,9 @@ "type": "oneOf", "values": [ "Customer", - "Service" + "Service", + "Team", + "Region" ] } }, diff --git a/plugins/SampleData/v3/defaultContent/Perspectives/customer.dash.json b/plugins/SampleData/v3/defaultContent/Perspectives/customer.dash.json index 9f5f69b9..7269f633 100644 --- a/plugins/SampleData/v3/defaultContent/Perspectives/customer.dash.json +++ b/plugins/SampleData/v3/defaultContent/Perspectives/customer.dash.json @@ -477,10 +477,74 @@ } }, { - "i": "b658fba4-80b9-4740-b8ad-d5f39fe7536b", + "i": "81345c47-37bd-4ae2-a51b-dc9a2a84e581", "x": 0, "y": 4, "w": 4, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Services Used", + "description": "Health of the services this customer uses", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "{{dataStreams.[serviceHealth]}}", + "name": "serviceHealth", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Customers]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Customer]}}" + }, + "variables": [ + "{{variables.[Customer]}}" + ], + "visualisation": { + "type": "data-stream-blocks", + "config": { + "data-stream-blocks": { + "labelColumn": "service", + "stateColumn": "state", + "linkColumn": "none", + "columns": 4 + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "statusGrid", + "encoding": { + "label": { + "field": "service", + "type": "nominal", + "title": "Service" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + } + }, + "style": { + "statusGridColumnsPerRow": 4 + } + } + } + } + }, + { + "i": "b658fba4-80b9-4740-b8ad-d5f39fe7536b", + "x": 0, + "y": 6, + "w": 4, "h": 5, "moved": false, "static": false, @@ -638,9 +702,9 @@ { "i": "7521ac27-e02a-491e-89e6-946c52e03248", "x": 0, - "y": 9, + "y": 11, "w": 4, - "h": 3, + "h": 1, "moved": false, "static": false, "z": 0, diff --git a/plugins/SampleData/v3/defaultContent/Perspectives/manifest.json b/plugins/SampleData/v3/defaultContent/Perspectives/manifest.json index 643fcb94..e20a20ce 100644 --- a/plugins/SampleData/v3/defaultContent/Perspectives/manifest.json +++ b/plugins/SampleData/v3/defaultContent/Perspectives/manifest.json @@ -15,6 +15,14 @@ { "name": "customer", "type": "dashboard" + }, + { + "name": "team", + "type": "dashboard" + }, + { + "name": "region", + "type": "dashboard" } ] } diff --git a/plugins/SampleData/v3/defaultContent/Perspectives/region.dash.json b/plugins/SampleData/v3/defaultContent/Perspectives/region.dash.json new file mode 100644 index 00000000..380eaf96 --- /dev/null +++ b/plugins/SampleData/v3/defaultContent/Perspectives/region.dash.json @@ -0,0 +1,422 @@ +{ + "name": "Region", + "schemaVersion": "1.5", + "timeframe": "last30days", + "variables": [ + "{{variables.[Region]}}" + ], + "dashboard": { + "_type": "layout/grid", + "columns": 4, + "version": 1, + "contents": [ + { + "i": "7f37dce0-669f-481f-b4e4-d7de4e73acef", + "x": 0, + "y": 0, + "w": 1, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Region Properties", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "datastream-properties", + "name": "properties", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Regions]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Region]}}" + }, + "variables": [ + "{{variables.[Region]}}" + ], + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": true, + "columnOrder": [ + "name", + "provider" + ], + "hiddenColumns": [ + "id", + "sourceId", + "sourceType", + "sourceName", + "team", + "tier", + "region", + "sloTarget", + "calls", + "serviceName", + "os", + "size", + "tool", + "plan", + "city", + "country", + "uses", + "slaTarget", + "rawId", + "link" + ] + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "richTable", + "encoding": { + "columns": [ + { + "field": "name", + "title": "Name", + "renderer": { + "type": "text" + } + }, + { + "field": "provider", + "title": "Cloud provider", + "renderer": { + "type": "text" + } + } + ] + }, + "style": { + "richTableTranspose": true + } + } + } + } + }, + { + "i": "249550f3-9342-49e2-94da-6747fa541884", + "x": 1, + "y": 0, + "w": 3, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Services", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "{{dataStreams.[serviceHealth]}}", + "name": "serviceHealth", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Regions]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Region]}}" + }, + "variables": [ + "{{variables.[Region]}}" + ], + "visualisation": { + "type": "data-stream-blocks", + "config": { + "data-stream-blocks": { + "labelColumn": "service", + "stateColumn": "state", + "linkColumn": "none", + "columns": 4 + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "statusGrid", + "encoding": { + "label": { + "field": "service", + "type": "nominal", + "title": "Service" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + } + }, + "style": { + "statusGridColumnsPerRow": 4 + } + } + } + } + }, + { + "i": "4d320bf0-6d1d-4170-a767-cf79ab024404", + "x": 0, + "y": 2, + "w": 4, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Hosts", + "description": "Hosts in this region", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "{{dataStreams.[hostHealth]}}", + "name": "hostHealth", + "pluginConfigId": "{{configId}}" + }, + "visualisation": { + "type": "data-stream-blocks", + "config": { + "data-stream-blocks": { + "labelColumn": "host", + "stateColumn": "state", + "linkColumn": "none", + "columns": 4 + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "statusGrid", + "encoding": { + "label": { + "field": "host", + "type": "nominal", + "title": "Host" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + }, + "group": { + "field": "region", + "type": "nominal", + "title": "Region" + }, + "value": { + "field": "diskPercent", + "type": "quantitative", + "title": "Disk used" + } + }, + "style": { + "statusGridColumnsPerRow": 8, + "statusGridMaxBlockHeight": 80 + } + } + }, + "variables": [ + "{{variables.[Region]}}" + ], + "scope": { + "scope": "{{scopes.[Regions]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Region]}}" + } + } + }, + { + "i": "a71d326c-de8f-45f2-8285-2ead3106caac", + "x": 0, + "y": 4, + "w": 4, + "h": 1, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Health History", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[serviceMetrics]}}", + "name": "serviceMetrics", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Regions]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Region]}}" + }, + "variables": [ + "{{variables.[Region]}}" + ], + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": false + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "healthHistory", + "encoding": { + "time": { + "field": "timestamp", + "type": "temporal", + "title": "Time" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + } + }, + "style": { + "historySlots": 96, + "historyBarHeight": 36, + "historyBarGap": 1 + } + } + } + } + }, + { + "i": "985d15cb-5fb4-4a2a-aa54-cea408a37b81", + "x": 0, + "y": 5, + "w": 4, + "h": 3, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Daily Cost by Category", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[cloudCost]}}", + "name": "cloudCost", + "pluginConfigId": "{{configId}}", + "group": { + "by": [ + [ + "date", + "byDay" + ], + [ + "category", + "uniqueValues" + ] + ], + "aggregate": [ + { + "type": "sum", + "names": [ + "costUsd" + ] + } + ] + }, + "sort": { + "by": [ + [ + "date_byDay", + "asc" + ] + ] + } + }, + "scope": { + "scope": "{{scopes.[Regions]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Region]}}" + }, + "variables": [ + "{{variables.[Region]}}" + ], + "visualisation": { + "type": "data-stream-bar-chart", + "config": { + "data-stream-bar-chart": { + "xAxisData": "date_byDay", + "yAxisData": [ + "costUsd_sum" + ], + "xAxisGroup": "category_uniqueValues", + "xAxisLabel": "", + "yAxisLabel": "", + "showXAxisLabel": false, + "showYAxisLabel": false, + "showLegend": true, + "legendPosition": "bottom", + "showGrid": true, + "horizontalLayout": "vertical", + "displayMode": "stacked", + "showTotals": false, + "showValue": false, + "grouping": true, + "range": { + "type": "auto" + } + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "bar", + "encoding": { + "x": { + "field": "date_byDay", + "type": "temporal", + "title": "Day" + }, + "y": { + "field": "costUsd_sum", + "type": "quantitative", + "title": "Cost" + }, + "series": { + "field": "category_uniqueValues", + "type": "nominal", + "title": "Category" + } + }, + "style": { + "cartesianStack": "on", + "legendPosition": "bottom" + } + } + } + } + } + ] + } +} diff --git a/plugins/SampleData/v3/defaultContent/Perspectives/team.dash.json b/plugins/SampleData/v3/defaultContent/Perspectives/team.dash.json new file mode 100644 index 00000000..e7169a7f --- /dev/null +++ b/plugins/SampleData/v3/defaultContent/Perspectives/team.dash.json @@ -0,0 +1,772 @@ +{ + "name": "Team", + "schemaVersion": "1.5", + "timeframe": "last30days", + "variables": [ + "{{variables.[Team]}}" + ], + "dashboard": { + "_type": "layout/grid", + "columns": 4, + "version": 1, + "contents": [ + { + "i": "4ae09141-a620-4b03-bdd8-cb6c15fd607a", + "x": 0, + "y": 0, + "w": 1, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Team Properties", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "datastream-properties", + "name": "properties", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + }, + "variables": [ + "{{variables.[Team]}}" + ], + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": true, + "columnOrder": [ + "name" + ], + "hiddenColumns": [ + "id", + "sourceId", + "sourceType", + "sourceName", + "team", + "tier", + "region", + "provider", + "sloTarget", + "calls", + "serviceName", + "os", + "size", + "tool", + "plan", + "city", + "country", + "uses", + "slaTarget", + "rawId", + "link" + ] + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "richTable", + "encoding": { + "columns": [ + { + "field": "name", + "title": "Name", + "renderer": { + "type": "text" + } + } + ] + }, + "style": { + "richTableTranspose": true + } + } + } + } + }, + { + "i": "aee2d243-1c9e-4348-9db0-de252c6eaff1", + "x": 1, + "y": 0, + "w": 3, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Services", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "{{dataStreams.[serviceHealth]}}", + "name": "serviceHealth", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + }, + "variables": [ + "{{variables.[Team]}}" + ], + "visualisation": { + "type": "data-stream-blocks", + "config": { + "data-stream-blocks": { + "labelColumn": "service", + "stateColumn": "state", + "linkColumn": "none", + "columns": 4 + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "statusGrid", + "encoding": { + "label": { + "field": "service", + "type": "nominal", + "title": "Service" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + } + }, + "style": { + "statusGridColumnsPerRow": 4 + } + } + } + } + }, + { + "i": "c80a490c-0a5f-4f0a-a386-65852bf06bcb", + "x": 0, + "y": 2, + "w": 4, + "h": 1, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Health History", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[serviceMetrics]}}", + "name": "serviceMetrics", + "pluginConfigId": "{{configId}}" + }, + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + }, + "variables": [ + "{{variables.[Team]}}" + ], + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": false + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "healthHistory", + "encoding": { + "time": { + "field": "timestamp", + "type": "temporal", + "title": "Time" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + } + }, + "style": { + "historySlots": 96, + "historyBarHeight": 36, + "historyBarGap": 1 + } + } + } + } + }, + { + "i": "a73d19d3-d344-43ed-a2f9-6cb4a52f090a", + "x": 0, + "y": 3, + "w": 4, + "h": 2, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Hosts", + "description": "Hosts running these services", + "activePluginConfigIds": [ + "{{configId}}" + ], + "timeframe": "none", + "dataStream": { + "id": "{{dataStreams.[hostHealth]}}", + "name": "hostHealth", + "pluginConfigId": "{{configId}}" + }, + "visualisation": { + "type": "data-stream-blocks", + "config": { + "data-stream-blocks": { + "labelColumn": "host", + "stateColumn": "state", + "linkColumn": "none", + "columns": 4 + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "statusGrid", + "encoding": { + "label": { + "field": "host", + "type": "nominal", + "title": "Host" + }, + "status": { + "field": "state", + "type": "nominal", + "title": "State" + }, + "group": { + "field": "region", + "type": "nominal", + "title": "Region" + }, + "value": { + "field": "diskPercent", + "type": "quantitative", + "title": "Disk used" + } + }, + "style": { + "statusGridColumnsPerRow": 8, + "statusGridMaxBlockHeight": 80 + } + } + }, + "variables": [ + "{{variables.[Team]}}" + ], + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + } + } + }, + { + "i": "a4d79541-861d-4ff5-897d-e81655ef90aa", + "x": 0, + "y": 5, + "w": 2, + "h": 4, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Recent Deployments", + "description": "Production deployments of these services", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[deployments]}}", + "name": "deployments", + "pluginConfigId": "{{configId}}", + "sort": { + "by": [ + [ + "timestamp", + "desc" + ] + ], + "top": 50 + } + }, + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": false, + "columnOrder": [ + "timestamp", + "pipeline", + "service", + "team", + "version", + "status", + "changeFailure", + "state", + "durationMinutes", + "leadTimeHours" + ], + "hiddenColumns": [ + "deploymentId", + "pipelineId", + "tool", + "timeToRestoreMinutes" + ] + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "richTable", + "encoding": { + "columns": [ + { + "field": "timestamp", + "title": "Finished", + "renderer": { + "type": "date", + "relative": true + } + }, + { + "field": "pipeline", + "title": "Pipeline", + "renderer": { + "type": "text" + } + }, + { + "field": "service", + "title": "Service", + "renderer": { + "type": "text" + } + }, + { + "field": "team", + "title": "Team", + "renderer": { + "type": "text" + } + }, + { + "field": "version", + "title": "Version", + "renderer": { + "type": "text" + } + }, + { + "field": "status", + "title": "Status", + "renderer": { + "type": "badge", + "colors": { + "Succeeded": "#2fb344", + "Failed": "#d63939" + } + } + }, + { + "field": "changeFailure", + "title": "Caused a failure", + "renderer": { + "type": "boolean", + "trueLabel": "Yes", + "falseLabel": "No", + "trueColor": "#d63939", + "falseColor": "#9ba3af" + } + }, + { + "field": "state", + "title": "State", + "renderer": { + "type": "status" + } + }, + { + "field": "durationMinutes", + "title": "Duration", + "align": "right", + "renderer": { + "type": "number", + "decimals": 1, + "suffix": " min" + } + }, + { + "field": "leadTimeHours", + "title": "Lead time", + "align": "right", + "renderer": { + "type": "number", + "decimals": 1, + "suffix": " h" + } + } + ] + }, + "style": { + "richTableRowHighlight": { + "field": "state", + "colors": { + "error": "rgba(214,57,57,0.15)", + "warning": "rgba(245,159,0,0.15)" + } + }, + "richTableSort": { + "field": "timestamp", + "direction": "desc" + } + } + } + }, + "variables": [ + "{{variables.[Team]}}" + ], + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + } + } + }, + { + "i": "3c772d0d-bed3-4852-a3ea-221821086f22", + "x": 2, + "y": 5, + "w": 2, + "h": 4, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Open and Breached Tickets", + "description": "Customer tickets raised against these services", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[tickets]}}", + "name": "tickets", + "pluginConfigId": "{{configId}}", + "filter": { + "multiOperation": "or", + "filters": [ + { + "column": "status", + "operation": "equals", + "value": "New" + }, + { + "column": "status", + "operation": "equals", + "value": "In Progress" + }, + { + "column": "slaState", + "operation": "equals", + "value": "error" + } + ] + }, + "sort": { + "by": [ + [ + "openedAt", + "desc" + ] + ] + } + }, + "visualisation": { + "type": "data-stream-table", + "config": { + "data-stream-table": { + "transpose": false, + "columnOrder": [ + "ticketId", + "openedAt", + "customer", + "priority", + "category", + "service", + "team", + "status", + "slaState" + ], + "hiddenColumns": [ + "customerId", + "plan", + "resolutionMinutes", + "slaTargetMinutes", + "slaBreached" + ] + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "richTable", + "encoding": { + "columns": [ + { + "field": "ticketId", + "title": "Ticket", + "renderer": { + "type": "text" + } + }, + { + "field": "openedAt", + "title": "Opened", + "renderer": { + "type": "date", + "relative": true + } + }, + { + "field": "customer", + "title": "Customer", + "renderer": { + "type": "text" + } + }, + { + "field": "priority", + "title": "Priority", + "renderer": { + "type": "badge", + "colors": { + "P1": "#d63939", + "P2": "#f59f00", + "P3": "#206bc4", + "P4": "#9ba3af" + } + } + }, + { + "field": "category", + "title": "Category", + "renderer": { + "type": "text" + } + }, + { + "field": "service", + "title": "Service", + "renderer": { + "type": "text" + } + }, + { + "field": "team", + "title": "Assigned team", + "renderer": { + "type": "text" + } + }, + { + "field": "status", + "title": "Status", + "renderer": { + "type": "badge", + "colors": { + "New": "#206bc4", + "In Progress": "#f59f00" + }, + "defaultColor": "#9ba3af" + } + }, + { + "field": "slaState", + "title": "SLA", + "renderer": { + "type": "status" + } + } + ] + }, + "style": { + "richTableRowHighlight": { + "field": "slaState", + "colors": { + "error": "rgba(214,57,57,0.15)", + "warning": "rgba(245,159,0,0.15)" + } + }, + "richTableSort": { + "field": "openedAt", + "direction": "desc" + } + } + } + }, + "variables": [ + "{{variables.[Team]}}" + ], + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + } + } + }, + { + "i": "9940a2ba-4634-4d15-ac0e-6a25d1f43f1e", + "x": 0, + "y": 9, + "w": 4, + "h": 3, + "moved": false, + "static": false, + "z": 0, + "config": { + "_type": "tile/data-stream", + "title": "Daily Cost by Category", + "description": "", + "activePluginConfigIds": [ + "{{configId}}" + ], + "dataStream": { + "id": "{{dataStreams.[cloudCost]}}", + "name": "cloudCost", + "pluginConfigId": "{{configId}}", + "group": { + "by": [ + [ + "date", + "byDay" + ], + [ + "category", + "uniqueValues" + ] + ], + "aggregate": [ + { + "type": "sum", + "names": [ + "costUsd" + ] + } + ] + }, + "sort": { + "by": [ + [ + "date_byDay", + "asc" + ] + ] + } + }, + "scope": { + "scope": "{{scopes.[Teams]}}", + "workspace": "{{workspaceId}}", + "variable": "{{variables.[Team]}}" + }, + "variables": [ + "{{variables.[Team]}}" + ], + "visualisation": { + "type": "data-stream-bar-chart", + "config": { + "data-stream-bar-chart": { + "xAxisData": "date_byDay", + "yAxisData": [ + "costUsd_sum" + ], + "xAxisGroup": "category_uniqueValues", + "xAxisLabel": "", + "yAxisLabel": "", + "showXAxisLabel": false, + "showYAxisLabel": false, + "showLegend": true, + "legendPosition": "bottom", + "showGrid": true, + "horizontalLayout": "vertical", + "displayMode": "stacked", + "showTotals": false, + "showValue": false, + "grouping": true, + "range": { + "type": "auto" + } + } + } + }, + "vizSpec": { + "version": "1.0", + "visualization": { + "chartType": "bar", + "encoding": { + "x": { + "field": "date_byDay", + "type": "temporal", + "title": "Day" + }, + "y": { + "field": "costUsd_sum", + "type": "quantitative", + "title": "Cost" + }, + "series": { + "field": "category_uniqueValues", + "type": "nominal", + "title": "Category" + } + }, + "style": { + "cartesianStack": "on", + "legendPosition": "bottom" + } + } + } + } + } + ] + } +} diff --git a/plugins/SampleData/v3/defaultContent/scopes.json b/plugins/SampleData/v3/defaultContent/scopes.json index 07723012..a6e1c0ec 100644 --- a/plugins/SampleData/v3/defaultContent/scopes.json +++ b/plugins/SampleData/v3/defaultContent/scopes.json @@ -66,5 +66,39 @@ "default": "none", "type": "object" } + }, + { + "name": "Teams", + "matches": { + "sourceType": { + "type": "oneOf", + "values": [ + "Team" + ] + } + }, + "variable": { + "name": "Team", + "allowMultipleSelection": false, + "default": "none", + "type": "object" + } + }, + { + "name": "Regions", + "matches": { + "sourceType": { + "type": "oneOf", + "values": [ + "Region" + ] + } + }, + "variable": { + "name": "Region", + "allowMultipleSelection": false, + "default": "none", + "type": "object" + } } ] diff --git a/plugins/SampleData/v3/docs/README.md b/plugins/SampleData/v3/docs/README.md index 4318a54b..303bd642 100644 --- a/plugins/SampleData/v3/docs/README.md +++ b/plugins/SampleData/v3/docs/README.md @@ -27,7 +27,7 @@ The data tells one story. A release to **Payments API** went out about two and a The incident moves with the clock, so it is always recent. Historical data stays the same between refreshes. -The out-of-the-box dashboards are **Executive Overview**, **Service Health (NOC)**, **SLOs & Error Budgets**, **DevOps · DORA**, **Cloud Cost · FinOps**, **Service Desk**, **Customers & SLAs** and **Business Metrics**. There is also a perspective for each **Service**, **Host**, **Pipeline** and **Customer**. +The out-of-the-box dashboards are **Executive Overview**, **Service Health (NOC)**, **SLOs & Error Budgets**, **DevOps · DORA**, **Cloud Cost · FinOps**, **Service Desk**, **Customers & SLAs** and **Business Metrics**. There is also a perspective for each **Service**, **Host**, **Pipeline**, **Customer**, **Team** and **Region**. ## Data streams @@ -51,8 +51,10 @@ The out-of-the-box dashboards are **Executive Overview**, **Service Health (NOC) | **Host** | The sample model (19) | A cloud virtual machine running a service. | | **Pipeline** | The sample model (6) | A release pipeline that deploys a service. | | **Customer** | The sample model (20) | A customer account with an SLA. | +| **Team** | The sample model (5) | An engineering team that owns services. | +| **Region** | The sample model (3) | A cloud region that hosts services. | -**Relationships:** each Host runs a Service, and each Pipeline deploys a Service. +**Relationships:** each Host runs a Service, each Pipeline deploys a Service, each Service calls the Services it depends on, each Customer uses Services, each Team owns its Services and Pipelines, and each Region hosts its Services and Hosts. ## Known limitations diff --git a/plugins/SampleData/v3/indexDefinitions/default.json b/plugins/SampleData/v3/indexDefinitions/default.json index 263680c8..6aaf3f0a 100644 --- a/plugins/SampleData/v3/indexDefinitions/default.json +++ b/plugins/SampleData/v3/indexDefinitions/default.json @@ -21,7 +21,9 @@ "plan", "city", "country", - "slaTarget" + "slaTarget", + "calls", + "uses" ] } } diff --git a/plugins/SampleData/v3/metadata.json b/plugins/SampleData/v3/metadata.json index 6a72def4..7eccbb9b 100644 --- a/plugins/SampleData/v3/metadata.json +++ b/plugins/SampleData/v3/metadata.json @@ -1,7 +1,7 @@ { "name": "sample-data", "displayName": "Sample Data", - "version": "3.0.0", + "version": "3.1.0", "author": { "name": "SquaredUp", "type": "firstParty" @@ -23,7 +23,9 @@ "Service", "Host", "Pipeline", - "Customer" + "Customer", + "Team", + "Region" ], "screenshots": [ "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/executive-overview.png", @@ -37,7 +39,9 @@ "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-service-payments-api.png", "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-host-pay-use-01.png", "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-pipeline-payments-release.png", - "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png" + "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png", + "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-team-payments.png", + "https://github.com/squaredup/plugins/blob/main/plugins/SampleData/v3/screenshots/perspective-region-us-east.png" ], "links": [ { diff --git a/plugins/SampleData/v3/model/model.json b/plugins/SampleData/v3/model/model.json index 5102d4a4..c8869505 100644 --- a/plugins/SampleData/v3/model/model.json +++ b/plugins/SampleData/v3/model/model.json @@ -79,25 +79,25 @@ { "id": "data-release", "name": "Data Release", "service": "analytics-pipeline", "team": "data", "tool": "Jenkins", "deploysPerDay": 0.7, "leadTimeHours": 52, "failureRate": 0.14, "durationMin": 41 } ], "customers": [ - { "id": "northpeak-retail", "name": "Northpeak Retail", "city": "Chicago", "country": "United States", "latitude": 41.88, "longitude": -87.63, "plan": "Enterprise", "mrr": 48000, "slaTarget": 99.9, "seats": 1200 }, - { "id": "harbor-financial", "name": "Harbor Financial", "city": "New York", "country": "United States", "latitude": 40.71, "longitude": -74.01, "plan": "Enterprise", "mrr": 62000, "slaTarget": 99.95, "seats": 2100 }, - { "id": "veltra-health", "name": "Veltra Health", "city": "Boston", "country": "United States", "latitude": 42.36, "longitude": -71.06, "plan": "Enterprise", "mrr": 39000, "slaTarget": 99.9, "seats": 950 }, - { "id": "brightline-logistics", "name": "Brightline Logistics", "city": "Dallas", "country": "United States", "latitude": 32.78, "longitude": -96.8, "plan": "Business", "mrr": 18500, "slaTarget": 99.5, "seats": 420 }, - { "id": "cobalt-games", "name": "Cobalt Games", "city": "Seattle", "country": "United States", "latitude": 47.61, "longitude": -122.33, "plan": "Business", "mrr": 14200, "slaTarget": 99.5, "seats": 310 }, - { "id": "summit-education", "name": "Summit Education", "city": "Denver", "country": "United States", "latitude": 39.74, "longitude": -104.99, "plan": "Business", "mrr": 9800, "slaTarget": 99.5, "seats": 600 }, - { "id": "maple-civic", "name": "Maple Civic Services", "city": "Toronto", "country": "Canada", "latitude": 43.65, "longitude": -79.38, "plan": "Enterprise", "mrr": 27000, "slaTarget": 99.9, "seats": 800 }, - { "id": "tidewater-energy", "name": "Tidewater Energy", "city": "Houston", "country": "United States", "latitude": 29.76, "longitude": -95.37, "plan": "Enterprise", "mrr": 33500, "slaTarget": 99.9, "seats": 700 }, - { "id": "orbit-media", "name": "Orbit Media Group", "city": "London", "country": "United Kingdom", "latitude": 51.51, "longitude": -0.13, "plan": "Enterprise", "mrr": 41000, "slaTarget": 99.9, "seats": 1100 }, - { "id": "fjord-mobility", "name": "Fjord Mobility", "city": "Oslo", "country": "Norway", "latitude": 59.91, "longitude": 10.75, "plan": "Business", "mrr": 12600, "slaTarget": 99.5, "seats": 280 }, - { "id": "kestrel-insurance", "name": "Kestrel Insurance", "city": "Edinburgh", "country": "United Kingdom", "latitude": 55.95, "longitude": -3.19, "plan": "Enterprise", "mrr": 36800, "slaTarget": 99.95, "seats": 900 }, - { "id": "lumen-pharma", "name": "Lumen Pharma", "city": "Basel", "country": "Switzerland", "latitude": 47.56, "longitude": 7.59, "plan": "Enterprise", "mrr": 52000, "slaTarget": 99.95, "seats": 1500 }, - { "id": "atelier-fashion", "name": "Atelier Fashion House", "city": "Paris", "country": "France", "latitude": 48.86, "longitude": 2.35, "plan": "Business", "mrr": 15800, "slaTarget": 99.5, "seats": 350 }, - { "id": "rhine-automotive", "name": "Rhine Automotive", "city": "Stuttgart", "country": "Germany", "latitude": 48.78, "longitude": 9.18, "plan": "Enterprise", "mrr": 44500, "slaTarget": 99.9, "seats": 1300 }, - { "id": "duna-telecom", "name": "Duna Telecom", "city": "Budapest", "country": "Hungary", "latitude": 47.5, "longitude": 19.04, "plan": "Starter", "mrr": 4200, "slaTarget": 99.0, "seats": 90 }, - { "id": "sakura-robotics", "name": "Sakura Robotics", "city": "Osaka", "country": "Japan", "latitude": 34.69, "longitude": 135.5, "plan": "Business", "mrr": 16900, "slaTarget": 99.5, "seats": 400 }, - { "id": "coral-travel", "name": "Coral Travel Group", "city": "Singapore", "country": "Singapore", "latitude": 1.35, "longitude": 103.82, "plan": "Business", "mrr": 13300, "slaTarget": 99.5, "seats": 330 }, - { "id": "southern-cross-bank", "name": "Southern Cross Bank", "city": "Sydney", "country": "Australia", "latitude": -33.87, "longitude": 151.21, "plan": "Enterprise", "mrr": 58000, "slaTarget": 99.95, "seats": 1700 }, - { "id": "kauri-agritech", "name": "Kauri Agritech", "city": "Auckland", "country": "New Zealand", "latitude": -36.85, "longitude": 174.76, "plan": "Starter", "mrr": 3600, "slaTarget": 99.0, "seats": 60 }, - { "id": "ipanema-retail", "name": "Ipanema Retail", "city": "São Paulo", "country": "Brazil", "latitude": -23.55, "longitude": -46.63, "plan": "Business", "mrr": 11200, "slaTarget": 99.5, "seats": 260 } + { "id": "northpeak-retail", "name": "Northpeak Retail", "city": "Chicago", "country": "United States", "latitude": 41.88, "longitude": -87.63, "plan": "Enterprise", "mrr": 48000, "slaTarget": 99.9, "seats": 1200, "services": ["payments-api","checkout-api"] }, + { "id": "harbor-financial", "name": "Harbor Financial", "city": "New York", "country": "United States", "latitude": 40.71, "longitude": -74.01, "plan": "Enterprise", "mrr": 62000, "slaTarget": 99.95, "seats": 2100, "services": ["payments-api","checkout-api"] }, + { "id": "veltra-health", "name": "Veltra Health", "city": "Boston", "country": "United States", "latitude": 42.36, "longitude": -71.06, "plan": "Enterprise", "mrr": 39000, "slaTarget": 99.9, "seats": 950, "services": ["payments-api","checkout-api"] }, + { "id": "brightline-logistics", "name": "Brightline Logistics", "city": "Dallas", "country": "United States", "latitude": 32.78, "longitude": -96.8, "plan": "Business", "mrr": 18500, "slaTarget": 99.5, "seats": 420, "services": ["checkout-api","orders-service"] }, + { "id": "cobalt-games", "name": "Cobalt Games", "city": "Seattle", "country": "United States", "latitude": 47.61, "longitude": -122.33, "plan": "Business", "mrr": 14200, "slaTarget": 99.5, "seats": 310, "services": ["web-frontend","search-service"] }, + { "id": "summit-education", "name": "Summit Education", "city": "Denver", "country": "United States", "latitude": 39.74, "longitude": -104.99, "plan": "Business", "mrr": 9800, "slaTarget": 99.5, "seats": 600, "services": ["web-frontend","search-service"] }, + { "id": "maple-civic", "name": "Maple Civic Services", "city": "Toronto", "country": "Canada", "latitude": 43.65, "longitude": -79.38, "plan": "Enterprise", "mrr": 27000, "slaTarget": 99.9, "seats": 800, "services": ["billing-service"] }, + { "id": "tidewater-energy", "name": "Tidewater Energy", "city": "Houston", "country": "United States", "latitude": 29.76, "longitude": -95.37, "plan": "Enterprise", "mrr": 33500, "slaTarget": 99.9, "seats": 700, "services": ["checkout-api","orders-service"] }, + { "id": "orbit-media", "name": "Orbit Media Group", "city": "London", "country": "United Kingdom", "latitude": 51.51, "longitude": -0.13, "plan": "Enterprise", "mrr": 41000, "slaTarget": 99.9, "seats": 1100, "services": ["web-frontend","search-service"] }, + { "id": "fjord-mobility", "name": "Fjord Mobility", "city": "Oslo", "country": "Norway", "latitude": 59.91, "longitude": 10.75, "plan": "Business", "mrr": 12600, "slaTarget": 99.5, "seats": 280, "services": ["web-frontend","search-service"] }, + { "id": "kestrel-insurance", "name": "Kestrel Insurance", "city": "Edinburgh", "country": "United Kingdom", "latitude": 55.95, "longitude": -3.19, "plan": "Enterprise", "mrr": 36800, "slaTarget": 99.95, "seats": 900, "services": ["billing-service"] }, + { "id": "lumen-pharma", "name": "Lumen Pharma", "city": "Basel", "country": "Switzerland", "latitude": 47.56, "longitude": 7.59, "plan": "Enterprise", "mrr": 52000, "slaTarget": 99.95, "seats": 1500, "services": ["billing-service"] }, + { "id": "atelier-fashion", "name": "Atelier Fashion House", "city": "Paris", "country": "France", "latitude": 48.86, "longitude": 2.35, "plan": "Business", "mrr": 15800, "slaTarget": 99.5, "seats": 350, "services": ["checkout-api","orders-service"] }, + { "id": "rhine-automotive", "name": "Rhine Automotive", "city": "Stuttgart", "country": "Germany", "latitude": 48.78, "longitude": 9.18, "plan": "Enterprise", "mrr": 44500, "slaTarget": 99.9, "seats": 1300, "services": ["billing-service"] }, + { "id": "duna-telecom", "name": "Duna Telecom", "city": "Budapest", "country": "Hungary", "latitude": 47.5, "longitude": 19.04, "plan": "Starter", "mrr": 4200, "slaTarget": 99.0, "seats": 90, "services": ["web-frontend","search-service"] }, + { "id": "sakura-robotics", "name": "Sakura Robotics", "city": "Osaka", "country": "Japan", "latitude": 34.69, "longitude": 135.5, "plan": "Business", "mrr": 16900, "slaTarget": 99.5, "seats": 400, "services": ["customer-portal"] }, + { "id": "coral-travel", "name": "Coral Travel Group", "city": "Singapore", "country": "Singapore", "latitude": 1.35, "longitude": 103.82, "plan": "Business", "mrr": 13300, "slaTarget": 99.5, "seats": 330, "services": ["customer-portal"] }, + { "id": "southern-cross-bank", "name": "Southern Cross Bank", "city": "Sydney", "country": "Australia", "latitude": -33.87, "longitude": 151.21, "plan": "Enterprise", "mrr": 58000, "slaTarget": 99.95, "seats": 1700, "services": ["customer-portal"] }, + { "id": "kauri-agritech", "name": "Kauri Agritech", "city": "Auckland", "country": "New Zealand", "latitude": -36.85, "longitude": 174.76, "plan": "Starter", "mrr": 3600, "slaTarget": 99.0, "seats": 60, "services": ["customer-portal"] }, + { "id": "ipanema-retail", "name": "Ipanema Retail", "city": "São Paulo", "country": "Brazil", "latitude": -23.55, "longitude": -46.63, "plan": "Business", "mrr": 11200, "slaTarget": 99.5, "seats": 260, "services": ["checkout-api","orders-service"] } ] } diff --git a/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png b/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png index 51762ed4..53b97ca7 100644 Binary files a/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png and b/plugins/SampleData/v3/screenshots/perspective-customer-harbor-financial.png differ diff --git a/plugins/SampleData/v3/screenshots/perspective-region-us-east.png b/plugins/SampleData/v3/screenshots/perspective-region-us-east.png new file mode 100644 index 00000000..89aa884c Binary files /dev/null and b/plugins/SampleData/v3/screenshots/perspective-region-us-east.png differ diff --git a/plugins/SampleData/v3/screenshots/perspective-team-payments.png b/plugins/SampleData/v3/screenshots/perspective-team-payments.png new file mode 100644 index 00000000..3c317aef Binary files /dev/null and b/plugins/SampleData/v3/screenshots/perspective-team-payments.png differ