Every well-known md/ stash key, the kind of entity whose stash holds it, its version, and the JSON Schema its value must match. See Well-Known Keys for how to set each key and what the UI shows.
Download every key's JSON Schema: widget-catalog.json.
md/v1/banner on an environmentโ
A message across the top of an environment.
| |
|---|
| Key | md/v1/banner |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.banner |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/banner.json |
| Input | Field | Type | Required | Description |
|---|
message | message | string | Yes | The message. |
level | level | string | No | info, warning, or error. The UI uses info when it is not set. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/banner.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"level": {
"enum": [
"info",
"warning",
"error"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
}
md/v1/changes/{step} on a deploymentโ
What a plan or apply in one step of a deployment changes.
| |
|---|
| Key | md/v1/changes/{step} |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.changes |
| Version | 1 |
| Format | JSON |
| Key segments | step |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/changes.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
add | add | integer | Yes | The number of resources to create. |
change | change | integer | Yes | The number of resources to update. |
destroy | destroy | integer | Yes | The number of resources to delete. |
replace | replace | integer | No | The number of resources to replace. |
no_op | no_op | integer | No | The number of resources with no change. |
resources | resources | array | No | Up to 50 changed resources, each with an address and an action: create, update, delete, or replace. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/changes.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"add": {
"minimum": 0,
"type": "integer"
},
"change": {
"minimum": 0,
"type": "integer"
},
"destroy": {
"minimum": 0,
"type": "integer"
},
"no_op": {
"minimum": 0,
"type": "integer"
},
"replace": {
"minimum": 0,
"type": "integer"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"create",
"update",
"delete",
"replace"
]
},
"address": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
"required": [
"address",
"action"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"add",
"change",
"destroy"
],
"type": "object"
}
md/v1/compliance/{step}/{tool} on a deploymentโ
The findings of an IaC or configuration scanner in one step of a deployment. The tool segment names the scanner, so each scanner in a step has its own entry.
| |
|---|
| Key | md/v1/compliance/{step}/{tool} |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.compliance |
| Version | 1 |
| Format | JSON |
| Key segments | step; tool |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/compliance.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
passed | passed | integer | Yes | The number of checks that passed. |
failed | failed | integer | Yes | The number of checks that failed. |
skipped | skipped | integer | No | The number of checks that were skipped. |
level | level | object | No | The number of findings by SARIF level: error, warning, and note. |
severity | severity | object | No | The number of findings by severity: critical, high, medium, and low. Only for scanners that report a security severity. |
blocking | blocking | boolean | No | True when the findings stop the deployment. |
report_url | report_url | string | No | An http or https link to the report. |
attestation | attestation | object | No | The signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/compliance.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"blocking": {
"type": "boolean"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"level": {
"additionalProperties": false,
"properties": {
"error": {
"minimum": 0,
"type": "integer"
},
"note": {
"minimum": 0,
"type": "integer"
},
"warning": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"error",
"warning",
"note"
],
"type": "object"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"report_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"severity": {
"additionalProperties": false,
"properties": {
"critical": {
"minimum": 0,
"type": "integer"
},
"high": {
"minimum": 0,
"type": "integer"
},
"low": {
"minimum": 0,
"type": "integer"
},
"medium": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"critical",
"high",
"medium",
"low"
],
"type": "object"
},
"skipped": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}
md/v1/cost_estimate on a deploymentโ
The estimated monthly cost of an instance before and after a deployment.
| |
|---|
| Key | md/v1/cost_estimate |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.cost_estimate |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/cost_estimate.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
currency | currency | string | Yes | The ISO 4217 currency code, for example USD. |
monthly_before | monthly_before | number | No | The monthly cost before the deployment. |
monthly_after | monthly_after | number | Yes | The monthly cost after the deployment. |
delta | delta | number | No | The change in monthly cost. Negative when the cost goes down. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/cost_estimate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"currency": {
"pattern": "^[A-Z]{3}$",
"type": "string"
},
"delta": {
"type": "number"
},
"monthly_after": {
"minimum": 0,
"type": "number"
},
"monthly_before": {
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"currency",
"monthly_after"
],
"type": "object"
}
md/v1/delivery on an instanceโ
How often an instance was deployed in a window of days, and how those deployments ended.
| |
|---|
| Key | md/v1/delivery |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.delivery |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/delivery.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
window_days | window_days | integer | Yes | The number of days, up to now, that the counts cover. |
deployments | deployments | integer | Yes | The number of deployments. |
failed | failed | integer | Yes | The number of deployments that failed. |
rolled_back | rolled_back | integer | Yes | The number of deployments that went back to an earlier version. |
failure_rate | failure_rate | number | No | The part of the deployments that failed, from 0 to 1. |
median_duration_seconds | median_duration_seconds | number | No | The median time a deployment ran, in seconds. |
last_status | last_status | string | No | How the last deployment ended: completed, failed, aborted, or rejected. |
last_completed_at | last_completed_at | string | No | When the last deployment that completed finished (RFC 3339). |
automated | automated | integer | Yes | The number of deployments that a service account started. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/delivery.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"automated": {
"minimum": 0,
"type": "integer"
},
"deployments": {
"minimum": 0,
"type": "integer"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"failure_rate": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"last_completed_at": {
"format": "date-time",
"type": "string"
},
"last_status": {
"enum": [
"completed",
"failed",
"aborted",
"rejected"
]
},
"median_duration_seconds": {
"minimum": 0,
"type": "number"
},
"rolled_back": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"window_days": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"window_days",
"deployments",
"failed",
"rolled_back",
"automated"
],
"type": "object"
}
md/v1/drift on an instanceโ
Whether an instance's real infrastructure matches its configuration.
| |
|---|
| Key | md/v1/drift |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.drift |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/drift.json |
| Input | Field | Type | Required | Description |
|---|
status | status | string | Yes | none, detected, or unknown. |
resources | resources | integer | No | The number of resources that drifted. |
checked_at | checked_at | string | No | When drift was checked (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/drift.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checked_at": {
"format": "date-time",
"type": "string"
},
"resources": {
"minimum": 0,
"type": "integer"
},
"status": {
"enum": [
"none",
"detected",
"unknown"
]
}
},
"required": [
"status"
],
"type": "object"
}
md/v1/eggs/{egg} on a projectโ
Turns a seasonal easter egg on or off in a project. The egg segment names the easter egg.
| |
|---|
| Key | md/v1/eggs/{egg} |
| Set on | Project |
| Shows on | Project |
| Widget | project.egg |
| Version | 1 |
| Format | TEXT |
| Key segments | egg: one of xmas, spooky, lanterns, fireworks, spring |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/eggs.json |
| Input | Field | Type | Required | Description |
|---|
state | The whole value | string | Yes | on or off. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/eggs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"enum": [
"on",
"off"
]
}
md/v1/freshness on an instanceโ
How far the bundle version of an instance is behind the latest version of its bundle.
| |
|---|
| Key | md/v1/freshness |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.freshness |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/freshness.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
version | version | string | Yes | The bundle version the instance runs. |
latest | latest | string | Yes | The latest version of the bundle. |
behind | behind | integer | Yes | The number of bundle versions between the two. 0 when the instance runs the latest. |
latest_published_at | latest_published_at | string | No | When the latest version was published (RFC 3339). |
days_behind | days_behind | integer | No | The number of days since the first version newer than the instance's was published. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/freshness.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"behind": {
"minimum": 0,
"type": "integer"
},
"days_behind": {
"minimum": 0,
"type": "integer"
},
"latest": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"latest_published_at": {
"format": "date-time",
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"version",
"latest",
"behind"
],
"type": "object"
}
md/v1/health on an instanceโ
A colored dot on an instance that shows its health.
| |
|---|
| Key | md/v1/health |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.status_dot |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/health.json |
| Input | Field | Type | Required | Description |
|---|
state | state | string | Yes | The word shown with the dot, up to 64 characters, for example Rolling out. |
color | color | string | No | The color of the dot: one of green, amber, red, blue, purple, gray, or a hex color such as #7C3AED. Without a color, the dot is green for healthy, ok, and up, amber for degraded, warning, and recovering, red for down, failed, and error, and gray for any other state. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/health.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"color": {
"anyOf": [
{
"enum": [
"green",
"amber",
"red",
"blue",
"purple",
"gray"
]
},
{
"pattern": "^#[0-9a-fA-F]{6}(?![\\s\\S])",
"type": "string"
}
]
},
"state": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"state"
],
"type": "object"
}
md/v1/inventory on an instanceโ
The cloud resources that an instance manages.
| |
|---|
| Key | md/v1/inventory |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.inventory |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/inventory.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that listed the resources, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
attestation | attestation | object | No | The signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer. |
deployment | deployment | string | No | The ID of the deployment that the resources come from. |
resources | resources | array | Yes | Up to 1,000 cloud resources. Each has a type, such as aws_s3_bucket, and a name, such as logs. A resource can also have its cloud id, such as an ARN, and its key: the for_each key or the count index that tells resources with the same type and name apart. It can also have the digest of its configuration, so two inventories show which resources changed. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"deployment": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
"type": "string"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"id": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"key": {
"maxLength": 255,
"minLength": 1,
"minimum": 0,
"type": [
"string",
"integer"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"type",
"name"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"resources"
],
"type": "object"
}
md/v1/inventory/{step} on a deploymentโ
The cloud resources that one step of a deployment manages after the step ran.
| |
|---|
| Key | md/v1/inventory/{step} |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.inventory |
| Version | 1 |
| Format | JSON |
| Key segments | step |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/inventory.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that listed the resources, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
attestation | attestation | object | No | The signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer. |
deployment | deployment | string | No | The ID of the deployment that the resources come from. |
resources | resources | array | Yes | Up to 1,000 cloud resources. Each has a type, such as aws_s3_bucket, and a name, such as logs. A resource can also have its cloud id, such as an ARN, and its key: the for_each key or the count index that tells resources with the same type and name apart. It can also have the digest of its configuration, so two inventories show which resources changed. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"deployment": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
"type": "string"
},
"resources": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"id": {
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"key": {
"maxLength": 255,
"minLength": 1,
"minimum": 0,
"type": [
"string",
"integer"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"type",
"name"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"resources"
],
"type": "object"
}
md/v1/leaderboard on an environmentโ
A leaderboard of people on an environment, best first, with an optional title.
| |
|---|
| Key | md/v1/leaderboard |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.leaderboard |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/leaderboard.json |
| Input | Field | Type | Required | Description |
|---|
title | title | string | No | The card's title, up to 64 characters. |
entries | entries | array | Yes | Up to 25 people, in order. Each has any of a name, an http or https image_url, an email, and handles such as slack:@jo or github:jo. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/leaderboard.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"entries": {
"items": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"email": {
"maxLength": 254,
"pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
"type": "string"
},
"handles": {
"items": {
"maxLength": 128,
"pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"image_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 64,
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
},
"title": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"entries"
],
"type": "object"
}
Links in the header of an environment, such as a dashboard or a runbook.
| |
|---|
| Key | md/v1/links |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.header_link |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/links.json |
| Input | Field | Type | Required | Description |
|---|
links | links | array | Yes | Up to 8 links, each with a label and an http or https url. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/links.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"links": {
"items": {
"additionalProperties": false,
"properties": {
"label": {
"maxLength": 40,
"minLength": 1,
"type": "string"
},
"url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"required": [
"label",
"url"
],
"type": "object"
},
"maxItems": 8,
"minItems": 1,
"type": "array"
}
},
"required": [
"links"
],
"type": "object"
}
md/v1/oncall on an environmentโ
Who is on call for an environment, in order, with an optional title.
| |
|---|
| Key | md/v1/oncall |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.oncall |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/oncall.json |
| Input | Field | Type | Required | Description |
|---|
title | title | string | No | The card's title, up to 64 characters. |
entries | entries | array | Yes | Up to 25 people, in order. Each has any of a name, an http or https image_url, an email, and handles such as slack:@jo or github:jo. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/oncall.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"entries": {
"items": {
"additionalProperties": false,
"minProperties": 1,
"properties": {
"email": {
"maxLength": 254,
"pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
"type": "string"
},
"handles": {
"items": {
"maxLength": 128,
"pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"image_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 64,
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
},
"title": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"entries"
],
"type": "object"
}
md/v1/ownership on an environmentโ
The groups that own an environment.
| |
|---|
| Key | md/v1/ownership |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.ownership |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/ownership.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
groups | groups | array | Yes | Up to 50 groups that own it, each with an id and a name. Empty when no group owns it. |
members | members | integer | Yes | The number of people in those groups. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"groups": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"members": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"groups",
"members"
],
"type": "object"
}
md/v1/ownership on a projectโ
The groups that own a project.
| |
|---|
| Key | md/v1/ownership |
| Set on | Project |
| Shows on | Project |
| Widget | project.ownership |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/ownership.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
groups | groups | array | Yes | Up to 50 groups that own it, each with an id and a name. Empty when no group owns it. |
members | members | integer | Yes | The number of people in those groups. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"groups": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"members": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"groups",
"members"
],
"type": "object"
}
md/v1/parity on an environmentโ
How the configuration of an environment differs from a reference environment.
| |
|---|
| Key | md/v1/parity |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.parity |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/parity.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
reference_environment | reference_environment | string | Yes | The ID of the environment this one is compared to, for example ecomm-prod. |
differences | differences | integer | Yes | The number of differences. |
checked_at | checked_at | string | Yes | When the check ran (RFC 3339). |
items | items | array | No | Up to 50 differences, each with the instance ID, the field that differs, and a message up to 280 characters. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/parity.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checked_at": {
"format": "date-time",
"type": "string"
},
"differences": {
"minimum": 0,
"type": "integer"
},
"items": {
"items": {
"additionalProperties": false,
"properties": {
"field": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"instance": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
}
},
"required": [
"instance",
"field",
"message"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"reference_environment": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"reference_environment",
"differences",
"checked_at"
],
"type": "object"
}
md/v1/pending on an instanceโ
Whether an instance has configuration changes that are not deployed.
| |
|---|
| Key | md/v1/pending |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.pending |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/pending.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
changed | changed | boolean | Yes | True when the configuration changed after the last deployment. |
changed_at | changed_at | string | No | When the configuration last changed (RFC 3339). |
deployed_at | deployed_at | string | No | When the instance was last deployed (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/pending.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"changed": {
"type": "boolean"
},
"changed_at": {
"format": "date-time",
"type": "string"
},
"deployed_at": {
"format": "date-time",
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"changed"
],
"type": "object"
}
md/v1/policy/{step} on a deploymentโ
The results of a policy engine in one step of a deployment.
| |
|---|
| Key | md/v1/policy/{step} |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.policy |
| Version | 1 |
| Format | JSON |
| Key segments | step |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/policy.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
passed | passed | integer | Yes | The number of policies that passed. |
failed | failed | integer | Yes | The number of policies that failed. |
warnings | warnings | integer | No | The number of warnings. |
denials | denials | array | No | Up to 50 denial messages, each up to 280 characters. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/policy.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"denials": {
"items": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"warnings": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}
md/v1/provenance on a deploymentโ
What a deployment was built from: its bundle, provisioners, and inputs, and whether its signed provenance was verified.
| |
|---|
| Key | md/v1/provenance |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.provenance |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/provenance.json |
| Input | Field | Type | Required | Description |
|---|
attestation | attestation | object | Yes | The signed attestation this value summarizes: its digest, whether Massdriver verified its signature, and its predicate_type, signed_at, and signer. |
bundle | bundle | object | Yes | The bundle that was deployed: its repo, version, and digest. |
provisioners | provisioners | array | Yes | The provisioner of each step of the deployment: the step, the provisioner image, and the image's digest. |
inputs | inputs | array | No | Up to 50 inputs of the deployment, such as its params, each with a name and the digest of its content. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/provenance.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"attestation": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"predicate_type": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"signed_at": {
"format": "date-time",
"type": "string"
},
"signer": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"required": [
"digest",
"verified"
],
"type": "object"
},
"bundle": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"repo": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"repo",
"version",
"digest"
],
"type": "object"
},
"inputs": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"digest"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"provisioners": {
"items": {
"additionalProperties": false,
"properties": {
"digest": {
"pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
"type": "string"
},
"image": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"step": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"step",
"image",
"digest"
],
"type": "object"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
}
},
"required": [
"attestation",
"bundle",
"provisioners"
],
"type": "object"
}
md/v1/release on an instanceโ
What runs on an instance now.
| |
|---|
| Key | md/v1/release |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.release |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/release.json |
| Input | Field | Type | Required | Description |
|---|
version | version | string | Yes | The version that runs. |
image | image | string | No | The image that runs. |
deployed_at | deployed_at | string | No | When it was deployed (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/release.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"deployed_at": {
"format": "date-time",
"type": "string"
},
"image": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"version": {
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"version"
],
"type": "object"
}
md/v1/reliability on an instanceโ
How often the alarms of an instance fired in a window of days, and how fast they recovered.
| |
|---|
| Key | md/v1/reliability |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.reliability |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/reliability.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
window_days | window_days | integer | Yes | The number of days, up to now, that the counts cover. |
alarms | alarms | integer | Yes | The number of alarms on the instance. |
firing | firing | integer | Yes | The number of alarms that fire now. |
incidents | incidents | integer | Yes | The number of times an alarm fired. |
seconds_in_alarm | seconds_in_alarm | number | Yes | The time that any alarm was firing, in seconds. |
median_recovery_seconds | median_recovery_seconds | number | No | The median time from an alarm firing to its recovery, in seconds. |
last_fired_at | last_fired_at | string | No | When an alarm last fired (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/reliability.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"alarms": {
"minimum": 0,
"type": "integer"
},
"firing": {
"minimum": 0,
"type": "integer"
},
"incidents": {
"minimum": 0,
"type": "integer"
},
"last_fired_at": {
"format": "date-time",
"type": "string"
},
"median_recovery_seconds": {
"minimum": 0,
"type": "number"
},
"seconds_in_alarm": {
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"window_days": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"window_days",
"alarms",
"firing",
"incidents",
"seconds_in_alarm"
],
"type": "object"
}
md/v1/scorecard/{scorecard} on an environmentโ
A scorecard rolled up over the instances of an environment: the number of instances at each level, and the lowest level. The scorecard segment names the scorecard.
| |
|---|
| Key | md/v1/scorecard/{scorecard} |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.scorecard |
| Version | 1 |
| Format | JSON |
| Key segments | scorecard |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
level | level | string | Yes | The level of the scorecard, up to 32 characters. |
score | score | number | No | The score, from 0 to 100. |
instances | instances | integer | Yes | The number of instances that were scored. |
levels | levels | object | Yes | The number of instances at each level, by level name, for up to 10 levels. |
lowest_level | lowest_level | string | Yes | The lowest level of any instance. |
evaluated_at | evaluated_at | string | Yes | When the scorecard was scored (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"instances": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"levels": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"maxProperties": 10,
"propertyNames": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"type": "object"
},
"lowest_level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"level",
"instances",
"levels",
"lowest_level",
"evaluated_at"
],
"type": "object"
}
md/v1/scorecard/{scorecard} on an instanceโ
The result of a scorecard's checks on an instance: its level, its score, and each check. The scorecard segment names the scorecard.
| |
|---|
| Key | md/v1/scorecard/{scorecard} |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.scorecard |
| Version | 1 |
| Format | JSON |
| Key segments | scorecard |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/scorecard.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
level | level | string | Yes | The level, up to 32 characters. |
score | score | number | Yes | The score, from 0 to 100. |
passed | passed | integer | Yes | The number of checks that passed. |
failed | failed | integer | Yes | The number of checks that failed. |
unknown | unknown | integer | Yes | The number of checks that could not be decided, for example because a fact is missing. |
checks | checks | array | Yes | Up to 50 checks, each with an id, a status of passed, failed, or unknown, and an optional message up to 280 characters. |
evaluated_at | evaluated_at | string | Yes | When the checks ran (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checks": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"unknown"
]
}
},
"required": [
"id",
"status"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"unknown": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"level",
"score",
"passed",
"failed",
"unknown",
"checks",
"evaluated_at"
],
"type": "object"
}
md/v1/scorecard/{scorecard} on a projectโ
A scorecard rolled up over the instances of a project: the number of instances at each level, and the lowest level. The scorecard segment names the scorecard.
| |
|---|
| Key | md/v1/scorecard/{scorecard} |
| Set on | Project |
| Shows on | Project |
| Widget | project.scorecard |
| Version | 1 |
| Format | JSON |
| Key segments | scorecard |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | No | The tool that wrote the value, for example scorecards. |
level | level | string | Yes | The level of the scorecard, up to 32 characters. |
score | score | number | No | The score, from 0 to 100. |
instances | instances | integer | Yes | The number of instances that were scored. |
levels | levels | object | Yes | The number of instances at each level, by level name, for up to 10 levels. |
lowest_level | lowest_level | string | Yes | The lowest level of any instance. |
evaluated_at | evaluated_at | string | Yes | When the scorecard was scored (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"evaluated_at": {
"format": "date-time",
"type": "string"
},
"instances": {
"minimum": 0,
"type": "integer"
},
"level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"levels": {
"additionalProperties": {
"minimum": 0,
"type": "integer"
},
"maxProperties": 10,
"propertyNames": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"type": "object"
},
"lowest_level": {
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"score": {
"maximum": 100,
"minimum": 0,
"type": "number"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"level",
"instances",
"levels",
"lowest_level",
"evaluated_at"
],
"type": "object"
}
md/v1/source on a deploymentโ
The code that a deployment deployed.
| |
|---|
| Key | md/v1/source |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.source |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/source.json |
| Input | Field | Type | Required | Description |
|---|
repo | repo | string | No | The repository, for example acme/api. |
ref | ref | string | No | The branch or tag. |
commit | commit | string | Yes | The commit. |
author | author | string | No | The commit's author. |
message | message | string | No | The commit message, up to 280 characters. |
url | url | string | No | An http or https link to the commit. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/source.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"author": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"commit": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"message": {
"maxLength": 280,
"type": "string"
},
"ref": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"repo": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"required": [
"commit"
],
"type": "object"
}
md/v1/state_lock on a deploymentโ
The state lock that a deployment held.
| |
|---|
| Key | md/v1/state_lock |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.state_lock |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/state_lock.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
status | status | string | Yes | acquired, released, or force_unlocked. |
holder | holder | string | No | Who holds the lock. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/state_lock.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"holder": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"status": {
"enum": [
"acquired",
"released",
"force_unlocked"
]
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"status"
],
"type": "object"
}
md/v1/step/{step} on a deploymentโ
How one step of a deployment ran.
| |
|---|
| Key | md/v1/step/{step} |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.step |
| Version | 1 |
| Format | JSON |
| Key segments | step |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/step.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
action | action | string | Yes | plan, apply, destroy, test, or scan. |
status | status | string | Yes | running, succeeded, failed, skipped, or canceled. |
started_at | started_at | string | No | When the step started (RFC 3339). |
finished_at | finished_at | string | No | When the step finished (RFC 3339). |
duration_s | duration_s | number | No | How long the step ran, in seconds. |
exit_code | exit_code | integer | No | The exit code of the tool. |
message | message | string | No | A short summary, up to 280 characters. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/step.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"plan",
"apply",
"destroy",
"test",
"scan"
]
},
"duration_s": {
"minimum": 0,
"type": "number"
},
"exit_code": {
"type": "integer"
},
"finished_at": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 280,
"type": "string"
},
"started_at": {
"format": "date-time",
"type": "string"
},
"status": {
"enum": [
"running",
"succeeded",
"failed",
"skipped",
"canceled"
]
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"action",
"status"
],
"type": "object"
}
md/v1/tests on a deploymentโ
The test results of a deployment.
| |
|---|
| Key | md/v1/tests |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.tests |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/tests.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
passed | passed | integer | Yes | The number of tests that passed. |
failed | failed | integer | Yes | The number of tests that failed. |
skipped | skipped | integer | No | The number of tests that were skipped. |
duration_s | duration_s | number | No | How long the tests ran, in seconds. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/tests.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"duration_s": {
"minimum": 0,
"type": "number"
},
"failed": {
"minimum": 0,
"type": "integer"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"skipped": {
"minimum": 0,
"type": "integer"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"passed",
"failed"
],
"type": "object"
}
md/v1/traffic on an instanceโ
The traffic on the links that leave an instance. The key is on the instance that sends the traffic.
| |
|---|
| Key | md/v1/traffic |
| Set on | Instance |
| Shows on | Link |
| Widget | link.traffic |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/traffic.json |
| Input | Field | Type | Required | Description |
|---|
rate | rps | number | Yes | Requests per second. |
errors | errors_5m | integer | Yes | Errors in the last five minutes. |
latency | p95_ms | number | No | The 95th percentile response time, in milliseconds. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/traffic.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"errors_5m": {
"minimum": 0,
"type": "integer"
},
"p95_ms": {
"minimum": 0,
"type": "number"
},
"rps": {
"minimum": 0,
"type": "number"
}
},
"required": [
"rps",
"errors_5m"
],
"type": "object"
}
md/v1/ui-ephemeral-notice on an environmentโ
A short notice that something happened to an environment. It is shown to everyone who can view the environment's stash until it expires. Massdriver sets it when an environment is created, and when a deployment in the environment is proposed, approved, started, or completed. A new notice replaces the one before it.
| |
|---|
| Key | md/v1/ui-ephemeral-notice |
| Set on | Environment |
| Shows on | Environment |
| Widget | environment.notice |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json |
| Input | Field | Type | Required | Description |
|---|
message | message | string | Yes | The notice, up to 280 characters. |
kind | kind | string | Yes | What happened: project.created, environment.created, or a deployment that was proposed, approved, started, or completed (deployment.proposed, deployment.approved, deployment.started, deployment.completed). |
entity | entity | object | Yes | The project, environment, or instance the notice is about: its kind, id, and name. A deployment notice is about the instance that is deployed. |
project | project | object | Yes | The project: its id and name. |
actor | actor | object | No | Who acted: a kind of user, service_account, or system, and a name. |
created_at | created_at | string | Yes | When it happened (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actor": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"user",
"service_account",
"system"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"entity": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"kind": {
"enum": [
"project",
"environment",
"instance"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"kind": {
"enum": [
"project.created",
"environment.created",
"deployment.proposed",
"deployment.approved",
"deployment.started",
"deployment.completed"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"project": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"message",
"kind",
"entity",
"project",
"created_at"
],
"type": "object"
}
md/v1/ui-ephemeral-notice on a projectโ
A short notice that something happened to a project. It is shown to everyone who can view the project's stash until it expires. Massdriver sets it when a project is created.
| |
|---|
| Key | md/v1/ui-ephemeral-notice |
| Set on | Project |
| Shows on | Project |
| Widget | project.notice |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json |
| Input | Field | Type | Required | Description |
|---|
message | message | string | Yes | The notice, up to 280 characters. |
kind | kind | string | Yes | What happened: project.created, environment.created, or a deployment that was proposed, approved, started, or completed (deployment.proposed, deployment.approved, deployment.started, deployment.completed). |
entity | entity | object | Yes | The project, environment, or instance the notice is about: its kind, id, and name. A deployment notice is about the instance that is deployed. |
project | project | object | Yes | The project: its id and name. |
actor | actor | object | No | Who acted: a kind of user, service_account, or system, and a name. |
created_at | created_at | string | Yes | When it happened (RFC 3339). |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"actor": {
"additionalProperties": false,
"properties": {
"kind": {
"enum": [
"user",
"service_account",
"system"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"entity": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"kind": {
"enum": [
"project",
"environment",
"instance"
]
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"kind": {
"enum": [
"project.created",
"environment.created",
"deployment.proposed",
"deployment.approved",
"deployment.started",
"deployment.completed"
]
},
"message": {
"maxLength": 280,
"minLength": 1,
"type": "string"
},
"project": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 255,
"minLength": 1,
"type": "string"
},
"name": {
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"message",
"kind",
"entity",
"project",
"created_at"
],
"type": "object"
}
md/v1/urls on an instanceโ
Links for an instance: its docs, its API, and its app.
| |
|---|
| Key | md/v1/urls |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.urls |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/urls.json |
| Input | Field | Type | Required | Description |
|---|
docs_url | docs_url | string | No | An http or https URL of its docs. |
api_url | api_url | string | No | An http or https URL of its API. |
app_url | app_url | string | No | An http or https URL of its app. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/urls.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"api_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"app_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
},
"docs_url": {
"maxLength": 2048,
"pattern": "^https?://[^\\s]+(?![\\s\\S])",
"type": "string"
}
},
"type": "object"
}
md/v1/usage on an instanceโ
A bar on an instance that shows how much of a limit is used.
| |
|---|
| Key | md/v1/usage |
| Set on | Instance |
| Shows on | Instance |
| Widget | instance.usage_bar |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/usage.json |
| Input | Field | Type | Required | Description |
|---|
value | value | number | Yes | The amount used. |
max | max | number | Yes | The limit. |
label | label | string | No | Text shown with the bar. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/usage.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"label": {
"maxLength": 64,
"type": "string"
},
"max": {
"exclusiveMinimum": 0,
"type": "number"
},
"value": {
"minimum": 0,
"type": "number"
}
},
"required": [
"value",
"max"
],
"type": "object"
}
md/v1/vulnerabilities on a deploymentโ
The findings of an image or package scan in a deployment.
| |
|---|
| Key | md/v1/vulnerabilities |
| Set on | Deployment |
| Shows on | Deployment |
| Widget | deployment.vulnerabilities |
| Version | 1 |
| Format | JSON |
| Key segments | None |
| Schema | https://schemas.massdriver.cloud/stash/md/v1/vulnerabilities.json |
| Input | Field | Type | Required | Description |
|---|
tool | tool | string | Yes | The tool, for example opentofu. |
tool_version | tool_version | string | No | The tool's version. |
target | target | string | No | The image or package that was scanned. |
severity | severity | object | Yes | The number of findings by severity: critical, high, medium, and low. |
fixable | fixable | integer | No | The number of findings with a fix. |
JSON Schema
{
"$id": "https://schemas.massdriver.cloud/stash/md/v1/vulnerabilities.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"fixable": {
"minimum": 0,
"type": "integer"
},
"severity": {
"additionalProperties": false,
"properties": {
"critical": {
"minimum": 0,
"type": "integer"
},
"high": {
"minimum": 0,
"type": "integer"
},
"low": {
"minimum": 0,
"type": "integer"
},
"medium": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"critical",
"high",
"medium",
"low"
],
"type": "object"
},
"target": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"tool": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"tool_version": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"tool",
"severity"
],
"type": "object"
}