Skip to main content

Well-Known Keys

Alpha

This feature is alpha. Names, fields, and behavior can change or be removed at any time without notice.

Keys that start with md/ are reserved. Each one shows a widget to everyone who can view the project.

KeySet onFormatWidget
md/healthInstanceTEXTStatus dot on the instance
md/usageInstanceJSONUsage bar on the instance
md/trafficInstanceJSONTraffic on the lines that leave the instance
md/bannerEnvironmentJSONBanner across the top of the environment
md/linksEnvironmentJSONLinks in the environment header

The server rejects a write to an md/ key when:

  • The key is not in this table.
  • The key is set on the wrong kind of entity.
  • The format is not the one in the table.
  • The value does not match the key's schema.
  • The entry is sensitive.

The alphaWidgetCatalog query returns these keys and their schemas. See GraphQL API.

md/health​

Set on an instance. Format: TEXT. Shows the status dot.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"minLength": 1,
"maxLength": 64,
"examples": ["healthy", "degraded", "down"]
}

The dot is green for healthy, ok, and up. It is amber for degraded, warning, and recovering. It is red for down, failed, and error. It is gray for any other value.

mass stash set billing-dev-app.md/health degraded

md/usage​

Set on an instance. Format: JSON. Shows the usage bar.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["value", "max"],
"additionalProperties": false,
"properties": {
"value": { "type": "number", "minimum": 0 },
"max": { "type": "number", "exclusiveMinimum": 0 },
"label": { "type": "string", "maxLength": 64 }
}
}
FieldMeaning
valueThe amount in use.
maxThe limit.
labelOptional. Text shown with the bar.
mass stash set billing-dev-app.md/usage '{"value": 37, "max": 100, "label": "connections"}' --format json

md/traffic​

Set on the instance that sends the traffic. Format: JSON. Shows traffic on every line that leaves the instance.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["rps", "errors_5m"],
"additionalProperties": false,
"properties": {
"rps": { "type": "number", "minimum": 0 },
"errors_5m": { "type": "integer", "minimum": 0 },
"p95_ms": { "type": "number", "minimum": 0 }
}
}
FieldMeaning
rpsRequests per second.
errors_5mErrors in the last 5 minutes.
p95_msOptional. The 95th percentile response time, in milliseconds.
mass stash set billing-dev-app.md/traffic '{"rps": 240, "errors_5m": 2, "p95_ms": 180}' --format json --ttl 600

md/banner​

Set on an environment. Format: JSON. Shows a banner.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["message"],
"additionalProperties": false,
"properties": {
"message": { "type": "string", "minLength": 1, "maxLength": 280 },
"level": { "enum": ["info", "warning", "error"] }
}
}
FieldMeaning
messageThe banner text.
levelOptional. info (the default), warning, or error.
mass stash set billing-dev.md/banner '{"message": "Deploy freeze until Friday", "level": "warning"}' --format json

Set on an environment. Format: JSON. Shows header links.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["links"],
"additionalProperties": false,
"properties": {
"links": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "object",
"required": ["label", "url"],
"additionalProperties": false,
"properties": {
"label": { "type": "string", "minLength": 1, "maxLength": 40 },
"url": { "type": "string", "maxLength": 2048, "pattern": "^https?://[^\\s]+(?![\\s\\S])" }
}
}
}
}
}
FieldMeaning
links[].labelThe button text.
links[].urlAn http or https URL with no spaces.
mass stash set billing-dev.md/links '{"links": [{"label": "Grafana", "url": "https://grafana.example.com/d/billing"}]}' --format json