{
    "openapi": "3.1.2",
    "info": {
        "title": "WatchTower15 REST API",
        "version": "1.0.0+sha.7d61644b8985",
        "description": "The WatchTower15 REST API lets a program read and act on an organisation's monitoring data: servers, domains, services, databases, logs, custom metrics, alarms, incidents and scans.\n\n**Authentication.** Every request carries an API key in the `Authorization` header: `Authorization: Bearer wt15ak_…`. A key belongs to one organisation\nand holds scopes; each operation lists the scopes it needs in `x-wt15-scopes`. See [Authentication](https://docs.watchtower15.com/api/authentication/).\n\n**This document.** This document is at https://developer.watchtower15.com/openapi/v1.json and, on the API host and without a key, at https://rest.watchtower15.com/v1/openapi.json. Every answer names it in a `Link` header (`rel=\"service-desc\"`), beside the index of the Markdown reference, https://developer.watchtower15.com/llms.txt (`rel=\"service-doc\"`). An operation ignores a query parameter it does not list; the reference lists every one it takes. A parameter that takes several values is sent repeated (`status=open&status=resolved`), as one value (`status=open`) or with brackets (`status[]=open&status[]=resolved`): the three read the same.\n\n**Errors.** A failure is an `application/problem+json` document with a stable `code`. See [Errors](https://docs.watchtower15.com/api/errors/).\n\n**Pagination.** A list answers one page, `{\"data\": […], \"current_page\": …, \"per_page\": …, \"last_page\": …, \"total\": …}`; send `page` for another.\nLog search, a custom metric's samples and a service's results and runs page by time instead: send their `next_cursor` back as `cursor`. See [Pagination](https://docs.watchtower15.com/api/pagination/).\n\n**Times.** Every instant is an integer, epoch milliseconds, UTC. A time window is a relative `period` or a pinned `from` and `to`. See [Times and windows](https://docs.watchtower15.com/api/times-and-windows/).\n\n**Rate limits.** See [Rate limits](https://docs.watchtower15.com/api/rate-limits/).\n\n**Writes.** An operation that changes data accepts an optional `Idempotency-Key` header: repeating the same key with the same body repeats the first answer.\n\n**Stability.** Once launched, `/v1` only grows: no operation, field or enum value is removed. Every enum is open, so a client must tolerate a value it does not know.\nThe one removal since the launch was the owner's decision: the page lists' `cursor` and `next_cursor`, replaced by `page` and their page fields. See [Versioning](https://docs.watchtower15.com/api/versioning/).\n\n**Marks for generators.** Beside the standard fields, operations and schemas carry five marks: `x-wt15-open-enum` (an enum a client must keep open), `x-wt15-instant` (an integer\nholding epoch milliseconds), `x-wt15-paged` (a paged list: by `page` when its answer has `current_page`, by `cursor` when it has `next_cursor`), `x-wt15-scopes` (the scopes the key needs) and `x-wt15-idempotent` (the operation honours `Idempotency-Key`).",
        "termsOfService": "https://watchtower15.com/terms",
        "contact": {
            "name": "WatchTower15",
            "url": "https://docs.watchtower15.com/api/",
            "email": "contact@watchtower15.com"
        },
        "license": {
            "name": "MIT",
            "identifier": "MIT"
        }
    },
    "servers": [
        {
            "url": "https://rest.watchtower15.com/v1",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "Me",
            "description": "The key making the request and the organisation it belongs to."
        },
        {
            "name": "Organisation",
            "description": "The organisation the key acts in: its account type, its limits and what is used, and, for a key that may see billing, its billing details."
        },
        {
            "name": "Health",
            "description": "The organisation's health at a glance: a summary and a map of what needs attention."
        },
        {
            "name": "Servers",
            "description": "Monitored servers: their state, metrics, processes, services, packages, security findings and the settings the agent reports against."
        },
        {
            "name": "SecurityImages",
            "description": "Container images running on the organisation's servers, with the servers that run them and the vulnerabilities found in them."
        },
        {
            "name": "ServerProfiles",
            "description": "Reusable server profiles: the checks and thresholds a group of servers share."
        },
        {
            "name": "Domains",
            "description": "Monitored domains: expiry, certificate, DNS, reachability and uptime, and the verification of ownership."
        },
        {
            "name": "Services",
            "description": "Monitored services: HTTP, TCP and API checks, their results, their scans and the parameters a check takes."
        },
        {
            "name": "Databases",
            "description": "Monitored databases: collectors, queries, findings, storage and the advice drawn from them."
        },
        {
            "name": "Logs",
            "description": "Search, count and facet the organisation's collected log lines over a time window."
        },
        {
            "name": "LogSources",
            "description": "The sources that send logs: their tokens, their settings and what they have sent."
        },
        {
            "name": "CustomMetrics",
            "description": "Custom metrics the organisation sends itself: their definitions, series and limits."
        },
        {
            "name": "MetricSources",
            "description": "The sources that send custom metrics: their tokens, their settings and the tags they apply."
        },
        {
            "name": "Tags",
            "description": "Tags: labels to group monitored resources."
        },
        {
            "name": "TagGroups",
            "description": "Tag groups: sets of tags that apply together."
        },
        {
            "name": "AlarmChannels",
            "description": "Alarm channels: the Slack, Microsoft Teams and webhook destinations alarms notify; their destinations are write-only."
        },
        {
            "name": "AlarmPolicies",
            "description": "Alarm policies: who and which channels an alarm notifies."
        },
        {
            "name": "Alarms",
            "description": "Alarm rules and the alarms they raised."
        },
        {
            "name": "AlarmRules",
            "description": "The alarm catalogue: the rules an alarm can be based on, with their defaults."
        },
        {
            "name": "Incidents",
            "description": "Incidents: what went wrong, its timeline and how to act on it."
        },
        {
            "name": "Scans",
            "description": "Scans: the checks run on domains and servers, their results and their changes over time."
        },
        {
            "name": "AuditActions",
            "description": "The organisation's audit trail: who did what to which resource, and when."
        },
        {
            "name": "AuditActors",
            "description": "The members and service accounts that can appear as the actor of an audit action."
        },
        {
            "name": "AuditCategories",
            "description": "The audit categories an audit action falls in, to filter the audit trail by."
        },
        {
            "name": "UserApiKeys",
            "description": "The calling user's own API keys in the key's organisation: status, scopes and today's calls."
        },
        {
            "name": "UserAiClients",
            "description": "The calling user's own AI-client connections in the key's organisation: status, access and today's calls."
        }
    ],
    "security": [
        {
            "apiKey": []
        }
    ],
    "paths": {
        "/alarm-channels": {
            "get": {
                "operationId": "public.alarmChannels.list",
                "description": "Returns the organisation's alarm channels. A channel's destination and signing secret are never returned. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List alarm channels",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's alarm channels.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's alarm channels.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The channel's uuid."
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The channel's type: `slack`, `teams` or `webhook`."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The channel's display name."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the channel is switched on."
                                                    },
                                                    "signing_secret_set": {
                                                        "type": "boolean",
                                                        "description": "Whether a webhook channel holds a signing secret; always false for the other types. The secret is never returned."
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the channel was created.",
                                                        "x-wt15-instant": true
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "type",
                                                    "name",
                                                    "active",
                                                    "signing_secret_set",
                                                    "created_at"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.alarmChannels.create",
                "description": "Creates a Slack, Microsoft Teams or regular webhook channel from its destination URL. The URL is write-only: it is never returned. A webhook channel is given a signing secret, which is never returned either.",
                "summary": "Create an alarm channel",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "description": "The channel's type: `slack`, `teams` or `webhook`. It cannot be changed afterwards.",
                                        "enum": [
                                            "slack",
                                            "teams",
                                            "webhook"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The channel's display name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "webhook_url": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "The destination: a public HTTPS URL (for Slack the incoming-webhook URL), up to 2048 characters. It is write-only: no answer returns it.",
                                        "maxLength": 2048
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the channel is switched on; defaults to on."
                                    }
                                },
                                "required": [
                                    "type",
                                    "name",
                                    "webhook_url"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created alarm channel.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created alarm channel.",
                                            "$ref": "#/components/schemas/AlarmChannelsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarm-channels/{channel_uuid}": {
            "get": {
                "operationId": "public.alarmChannels.view",
                "description": "Returns one alarm channel. The destination (the webhook URL) and the signing secret are never returned: only whether a signing secret is set.",
                "summary": "Get an alarm channel",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "channel_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm channel in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The alarm channel.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm channel.",
                                            "$ref": "#/components/schemas/AlarmChannelsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.view"
                ]
            },
            "put": {
                "operationId": "public.alarmChannels.update",
                "description": "Changes the fields sent: the name, a new destination URL and whether the channel is switched on. The type cannot be changed. Switching a channel on re-checks its saved destination.",
                "summary": "Update an alarm channel",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "channel_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm channel in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The channel's display name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "webhook_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "uri",
                                        "description": "A new destination: a public HTTPS URL, up to 2048 characters. It is write-only: omit it to keep the saved one.",
                                        "maxLength": 2048
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the channel is switched on. Switching a channel on re-checks its saved destination."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The alarm channel after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm channel after the update.",
                                            "$ref": "#/components/schemas/AlarmChannelsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.alarmChannels.delete",
                "description": "Deletes the channel. A channel an alarm policy still notifies is refused: remove it from the policy first. The answer has no body.",
                "summary": "Delete an alarm channel",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "channel_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm channel in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The alarm channel was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarm-channels/{channel_uuid}/test": {
            "post": {
                "operationId": "public.alarmChannels.sendTest",
                "description": "Sends one test message to the channel's saved destination. The call is refused when the saved destination is no longer allowed, and is limited to a few a minute.",
                "summary": "Send a test message to an alarm channel",
                "tags": [
                    "AlarmChannels"
                ],
                "parameters": [
                    {
                        "name": "channel_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm channel in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The test message was sent.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The test message was sent.",
                                            "$ref": "#/components/schemas/AlarmChannelsSendTestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "channels.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarm-policies": {
            "get": {
                "operationId": "public.alarmPolicies.list",
                "description": "Returns the organisation's alarm policies, with how many it notifies by name; read one policy for the list. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List alarm policies",
                "tags": [
                    "AlarmPolicies"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's alarm policies.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's alarm policies.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The policy's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The policy's name."
                                                    },
                                                    "default": {
                                                        "type": "boolean",
                                                        "description": "Whether this is the organisation's default policy, which cannot be deleted."
                                                    },
                                                    "all_users": {
                                                        "type": "boolean",
                                                        "description": "Whether every user of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                                    },
                                                    "all_channels": {
                                                        "type": "boolean",
                                                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                                    },
                                                    "all_groups": {
                                                        "type": "boolean",
                                                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                                    },
                                                    "notifies_count": {
                                                        "type": "integer",
                                                        "description": "How many users, alarm channels and contact groups the policy notifies by name for a warning incident (and for a critical one while `critical_uses_warning` is true)."
                                                    },
                                                    "critical_uses_warning": {
                                                        "type": "boolean",
                                                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                                                    },
                                                    "critical": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The routing for critical incidents, while `critical_uses_warning` is false: the three switches and how many users, alarm channels and contact groups it notifies by name for a critical incident.",
                                                        "properties": {
                                                            "all_users": {
                                                                "type": "boolean",
                                                                "description": "Whether every user of the organisation is notified for a critical incident."
                                                            },
                                                            "all_channels": {
                                                                "type": "boolean",
                                                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                                                            },
                                                            "all_groups": {
                                                                "type": "boolean",
                                                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                                                            },
                                                            "notifies_count": {
                                                                "type": "integer",
                                                                "description": "How many users, alarm channels and contact groups the policy notifies by name for a critical incident."
                                                            }
                                                        },
                                                        "required": [
                                                            "all_users",
                                                            "all_channels",
                                                            "all_groups",
                                                            "notifies_count"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "default",
                                                    "all_users",
                                                    "all_channels",
                                                    "all_groups",
                                                    "notifies_count",
                                                    "critical_uses_warning",
                                                    "critical"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "policies.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.alarmPolicies.create",
                "description": "Creates an alarm policy from a name and who it notifies: every user, every channel or every contact group by a switch, and individual users, alarm channels and contact groups in `notifies`. That is who a warning incident notifies, and a critical one too unless a `critical` object gives the critical incidents their own route (or `critical_uses_warning` is false, which starts it as a copy of the warning route).",
                "summary": "Create an alarm policy",
                "tags": [
                    "AlarmPolicies"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The policy's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "all_users": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every user of the organisation is notified, by the channels of `all_users_channels`, for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_channels": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_groups": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_users_channels": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The ways every user is reached when `all_users` is on for a warning incident (and a critical one while `critical_uses_warning` is true): `email`, `sms`, `whatsapp`.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "email",
                                                "sms",
                                                "whatsapp"
                                            ],
                                            "x-wt15-open-enum": true
                                        },
                                        "minItems": 1
                                    },
                                    "all_groups_channels": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The ways every group member is reached when `all_groups` is on for a warning incident (and a critical one while `critical_uses_warning` is true): `email`, `sms`, `whatsapp`.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "email",
                                                "sms",
                                                "whatsapp"
                                            ],
                                            "x-wt15-open-enum": true
                                        },
                                        "minItems": 1
                                    },
                                    "notifies": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Who the policy notifies for a warning incident (and a critical one while `critical_uses_warning` is true) besides its `all_…` switches, a full replacement of the saved ones: each a user, an alarm channel (`destination`) or a contact group. A kind whose `all_…` switch is on needs none.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "target_type": {
                                                    "type": "string",
                                                    "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`.",
                                                    "enum": [
                                                        "user",
                                                        "destination",
                                                        "contact_group"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "target_uuid": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "description": "The target's uuid, in this organisation."
                                                },
                                                "channels": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "For a user target, the ways the user is reached: `email`, `sms`, `whatsapp`; email when none is given.",
                                                    "items": {
                                                        "type": "string",
                                                        "enum": [
                                                            "email",
                                                            "sms",
                                                            "whatsapp"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "critical_uses_warning": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                                    },
                                    "critical": {
                                        "type": "object",
                                        "description": "The routing for critical incidents, while `critical_uses_warning` is false.",
                                        "properties": {
                                            "all_users": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every user of the organisation is notified for a critical incident, by the channels of `critical.all_users_channels`."
                                            },
                                            "all_channels": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                                            },
                                            "all_groups": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                                            },
                                            "all_users_channels": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The ways every user is reached for a critical incident when `critical.all_users` is on: `email`, `sms`, `whatsapp`.",
                                                "items": {
                                                    "type": "string",
                                                    "enum": [
                                                        "email",
                                                        "sms",
                                                        "whatsapp"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "minItems": 1
                                            },
                                            "all_groups_channels": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The ways every group member is reached for a critical incident when `critical.all_groups` is on: `email`, `sms`, `whatsapp`.",
                                                "items": {
                                                    "type": "string",
                                                    "enum": [
                                                        "email",
                                                        "sms",
                                                        "whatsapp"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "minItems": 1
                                            },
                                            "notifies": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Who the policy notifies for a critical incident besides its `critical.all_…` switches, a full replacement of the saved ones: each a user, an alarm channel (`destination`) or a contact group.",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "target_type": {
                                                            "type": "string",
                                                            "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`.",
                                                            "enum": [
                                                                "user",
                                                                "destination",
                                                                "contact_group"
                                                            ],
                                                            "x-wt15-open-enum": true
                                                        },
                                                        "target_uuid": {
                                                            "type": "string",
                                                            "format": "uuid",
                                                            "description": "The target's uuid, in this organisation."
                                                        },
                                                        "channels": {
                                                            "type": [
                                                                "array",
                                                                "null"
                                                            ],
                                                            "description": "For a user target, the ways the user is reached: `email`, `sms`, `whatsapp`; email when none is given.",
                                                            "items": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "email",
                                                                    "sms",
                                                                    "whatsapp"
                                                                ],
                                                                "x-wt15-open-enum": true
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created alarm policy.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created alarm policy.",
                                            "$ref": "#/components/schemas/AlarmPoliciesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "policies.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarm-policies/{policy_uuid}": {
            "get": {
                "operationId": "public.alarmPolicies.view",
                "description": "Returns one alarm policy: who and which channels an alarm that uses it notifies, with its targets.",
                "summary": "Get an alarm policy",
                "tags": [
                    "AlarmPolicies"
                ],
                "parameters": [
                    {
                        "name": "policy_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm policy in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The alarm policy.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm policy.",
                                            "$ref": "#/components/schemas/AlarmPoliciesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "policies.view"
                ]
            },
            "put": {
                "operationId": "public.alarmPolicies.update",
                "description": "Changes the fields sent. What is not sent keeps its value. `notifies`, when sent, replaces the list of who the policy notifies: send the whole list, including the ones to keep. A `critical` object, when sent, replaces the whole Critical route; `critical_uses_warning: true` clears it.",
                "summary": "Update an alarm policy",
                "tags": [
                    "AlarmPolicies"
                ],
                "parameters": [
                    {
                        "name": "policy_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm policy in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The policy's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "all_users": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every user of the organisation is notified, by the channels of `all_users_channels`, for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_channels": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_groups": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                                    },
                                    "all_users_channels": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The ways every user is reached when `all_users` is on for a warning incident (and a critical one while `critical_uses_warning` is true): `email`, `sms`, `whatsapp`.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "email",
                                                "sms",
                                                "whatsapp"
                                            ],
                                            "x-wt15-open-enum": true
                                        },
                                        "minItems": 1
                                    },
                                    "all_groups_channels": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The ways every group member is reached when `all_groups` is on for a warning incident (and a critical one while `critical_uses_warning` is true): `email`, `sms`, `whatsapp`.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "email",
                                                "sms",
                                                "whatsapp"
                                            ],
                                            "x-wt15-open-enum": true
                                        },
                                        "minItems": 1
                                    },
                                    "notifies": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Who the policy notifies for a warning incident (and a critical one while `critical_uses_warning` is true) besides its `all_…` switches, a full replacement of the saved ones: each a user, an alarm channel (`destination`) or a contact group. A kind whose `all_…` switch is on needs none.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "target_type": {
                                                    "type": "string",
                                                    "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`.",
                                                    "enum": [
                                                        "user",
                                                        "destination",
                                                        "contact_group"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "target_uuid": {
                                                    "type": "string",
                                                    "format": "uuid",
                                                    "description": "The target's uuid, in this organisation."
                                                },
                                                "channels": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "For a user target, the ways the user is reached: `email`, `sms`, `whatsapp`; email when none is given.",
                                                    "items": {
                                                        "type": "string",
                                                        "enum": [
                                                            "email",
                                                            "sms",
                                                            "whatsapp"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "critical_uses_warning": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                                    },
                                    "critical": {
                                        "type": "object",
                                        "description": "The routing for critical incidents, while `critical_uses_warning` is false.",
                                        "properties": {
                                            "all_users": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every user of the organisation is notified for a critical incident, by the channels of `critical.all_users_channels`."
                                            },
                                            "all_channels": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                                            },
                                            "all_groups": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                                            },
                                            "all_users_channels": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The ways every user is reached for a critical incident when `critical.all_users` is on: `email`, `sms`, `whatsapp`.",
                                                "items": {
                                                    "type": "string",
                                                    "enum": [
                                                        "email",
                                                        "sms",
                                                        "whatsapp"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "minItems": 1
                                            },
                                            "all_groups_channels": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The ways every group member is reached for a critical incident when `critical.all_groups` is on: `email`, `sms`, `whatsapp`.",
                                                "items": {
                                                    "type": "string",
                                                    "enum": [
                                                        "email",
                                                        "sms",
                                                        "whatsapp"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "minItems": 1
                                            },
                                            "notifies": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Who the policy notifies for a critical incident besides its `critical.all_…` switches, a full replacement of the saved ones: each a user, an alarm channel (`destination`) or a contact group.",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "target_type": {
                                                            "type": "string",
                                                            "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`.",
                                                            "enum": [
                                                                "user",
                                                                "destination",
                                                                "contact_group"
                                                            ],
                                                            "x-wt15-open-enum": true
                                                        },
                                                        "target_uuid": {
                                                            "type": "string",
                                                            "format": "uuid",
                                                            "description": "The target's uuid, in this organisation."
                                                        },
                                                        "channels": {
                                                            "type": [
                                                                "array",
                                                                "null"
                                                            ],
                                                            "description": "For a user target, the ways the user is reached: `email`, `sms`, `whatsapp`; email when none is given.",
                                                            "items": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "email",
                                                                    "sms",
                                                                    "whatsapp"
                                                                ],
                                                                "x-wt15-open-enum": true
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The alarm policy after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm policy after the update.",
                                            "$ref": "#/components/schemas/AlarmPoliciesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "policies.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.alarmPolicies.delete",
                "description": "Deletes the policy. The default policy, and a policy an alarm rule or a report still uses, are refused. The answer has no body.",
                "summary": "Delete an alarm policy",
                "tags": [
                    "AlarmPolicies"
                ],
                "parameters": [
                    {
                        "name": "policy_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm policy in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The alarm policy was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "policies.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarm-rules": {
            "get": {
                "operationId": "public.alarmRules.list",
                "description": "Lists the rules an alarm can be based on, for one `entity_type`, with each rule's slug, unit, comparison and default thresholds. Pass the slug as `rule_slug` when creating an alarm. `domain_type`, `protocol`, `engines` and `os` narrow the list to the rules a resource of that sub-type supports; without them every sub-type's rules are listed, so read the catalogue with the resource's sub-type before creating an alarm. `is_default` is true for a rule a new resource of the type gets by default when its server or profile has no alarm templates; it is false for every volume, port and unit rule, whose alarms are created by the agent's reports. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List the alarm rule catalogue",
                "tags": [
                    "AlarmRules"
                ],
                "parameters": [
                    {
                        "name": "entity_type",
                        "in": "query",
                        "required": true,
                        "description": "The type of resource whose catalogue is read; required. The same nine values `GET /v1/alarms` takes.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "domain",
                                "service",
                                "server",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "server_port",
                                "server_system_service",
                                "server_volume"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "domain_type",
                        "in": "query",
                        "description": "For `entity_type=domain`, narrows the catalogue to the rules a domain of this type supports: `apex`, `wildcard` or `subdomain`. Left out, every domain type's rules are listed.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "apex",
                                "wildcard",
                                "subdomain",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "protocol",
                        "in": "query",
                        "description": "For `entity_type=service`, narrows the catalogue to the rules a service of this protocol supports. Left out, every protocol's rules are listed.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "http",
                                "https",
                                "tcp",
                                "udp",
                                "smtp",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "engines",
                        "in": "query",
                        "description": "For `entity_type=database_instance`, the database's engines: narrows the catalogue to the rules those engines support. A list: repeat the parameter (`engines=mysql&engines=mariadb`) or send one value (`engines=mysql`); `engines[]=mysql` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "mysql",
                                    "mariadb",
                                    "postgresql"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "os",
                        "in": "query",
                        "description": "For a server's rules and its volumes', units' and ports': `linux` or `windows`, narrows the catalogue to the rules a server of that operating system supports. Left out, both operating systems' rules are listed.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "linux",
                                "windows",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The rules of the entity type.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "The rules of the entity type.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "rule_slug": {
                                                        "type": "string",
                                                        "description": "The rule's slug: pass it as `rule_slug` to create an alarm."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The rule's name."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The rule's description; null when it has none."
                                                    },
                                                    "entity_type": {
                                                        "type": "string",
                                                        "description": "The type of resource the rule is for."
                                                    },
                                                    "alarm_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`boolean` or `threshold`."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "The rule's classification: one of `operations`, `security`, `monitoring`."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit of the thresholds; null when the rule has none."
                                                    },
                                                    "comparison_operator": {
                                                        "type": "string",
                                                        "description": "How a reading is compared with the thresholds by default."
                                                    },
                                                    "warning_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The default warning threshold; null when the rule has none."
                                                    },
                                                    "critical_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The default critical threshold; null when the rule has none."
                                                    },
                                                    "warning_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "The default number of consecutive evaluations before a warning."
                                                    },
                                                    "critical_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "The default number of consecutive evaluations before a critical."
                                                    },
                                                    "consecutive_configurable": {
                                                        "type": "boolean",
                                                        "description": "Whether an alarm on this rule may set its own consecutive counts."
                                                    },
                                                    "supported_aggregations": {
                                                        "type": "array",
                                                        "description": "The aggregations an alarm on this rule may use; empty when the rule takes none.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "supports_window": {
                                                        "type": "boolean",
                                                        "description": "Whether an alarm on this rule may set a window."
                                                    },
                                                    "self_resolving": {
                                                        "type": "boolean",
                                                        "description": "Whether an alarm on this rule clears itself when the condition ends (it sends no resolve notification)."
                                                    },
                                                    "notify_on_acknowledge": {
                                                        "type": "boolean",
                                                        "description": "Whether an alarm on this rule notifies when acknowledged, by default."
                                                    },
                                                    "notify_on_resolve": {
                                                        "type": "boolean",
                                                        "description": "Whether an alarm on this rule notifies when resolved, by default."
                                                    },
                                                    "applies_to_os": {
                                                        "type": "string",
                                                        "description": "The operating system a server must run for this rule to apply: `linux`, `windows`, or `any` for both and for every rule that is not a server's."
                                                    },
                                                    "is_default": {
                                                        "type": "boolean",
                                                        "description": "Whether a new resource of this type gets an alarm on this rule by default, when its server or profile has no alarm templates. False for every volume, port and unit rule."
                                                    }
                                                },
                                                "required": [
                                                    "rule_slug",
                                                    "name",
                                                    "description",
                                                    "entity_type",
                                                    "alarm_type",
                                                    "classification",
                                                    "unit",
                                                    "comparison_operator",
                                                    "warning_threshold",
                                                    "critical_threshold",
                                                    "warning_consecutive_failures_count",
                                                    "critical_consecutive_failures_count",
                                                    "consecutive_configurable",
                                                    "supported_aggregations",
                                                    "supports_window",
                                                    "self_resolving",
                                                    "notify_on_acknowledge",
                                                    "notify_on_resolve",
                                                    "applies_to_os",
                                                    "is_default"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/alarms": {
            "get": {
                "operationId": "public.alarms.list",
                "description": "Lists the alarms set on one resource, named by `entity_type` and `entity_uuid`, both required, with each alarm's thresholds and live state. The state and the time it began are read from the alarm's open incident, if any. For every alarm of the organisation in one call use `GET /v1/organisation/alarms`; for a server with its volumes, ports and units, `GET /v1/servers/{server_uuid}/alarms`. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List alarms of a resource",
                "tags": [
                    "Alarms"
                ],
                "parameters": [
                    {
                        "name": "entity_type",
                        "in": "query",
                        "required": true,
                        "description": "The type of resource whose alarms are listed; required.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "domain",
                                "service",
                                "server",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "server_port",
                                "server_system_service",
                                "server_volume"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "entity_uuid",
                        "in": "query",
                        "required": true,
                        "description": "The uuid of the resource whose alarms are listed; required.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many alarms to return in one page, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the resource's alarms.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the resource's alarms.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The alarm's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The alarm's own name, else its rule's."
                                                    },
                                                    "rule_slug": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's slug."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                                                    },
                                                    "metric_name": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's name."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The catalogue rule's description; null when it has none."
                                                    },
                                                    "alarm_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit of the thresholds; null when the rule has none."
                                                    },
                                                    "comparison_operator": {
                                                        "type": "string",
                                                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                                                    },
                                                    "aggregation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                                                    },
                                                    "warning_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "critical_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "warning_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                                                    },
                                                    "critical_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                                                    },
                                                    "warning_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                                                    },
                                                    "critical_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                                                    },
                                                    "self_resolving": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm is switched on."
                                                    },
                                                    "notify_on_acknowledge": {
                                                        "type": "boolean",
                                                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "notify_on_resolve": {
                                                        "type": "boolean",
                                                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "entity": {
                                                        "type": "object",
                                                        "description": "The resource the alarm is on, of any type that has alarms.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the resource, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The uuid of the resource; null when it no longer resolves."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the resource; null when it no longer resolves."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "parent_entity": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server of a volume, port or unit; null for every other resource.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the server, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid"
                                                        ]
                                                    },
                                                    "alarm_policies": {
                                                        "type": "array",
                                                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The policy's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid"
                                                            ]
                                                        }
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                                                        "enum": [
                                                            "critical",
                                                            "warning",
                                                            "ok",
                                                            "inactive"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "inactive_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                                                    },
                                                    "state_since": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged": {
                                                        "type": "boolean",
                                                        "description": "Whether the open incident has been acknowledged."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "rule_slug",
                                                    "classification",
                                                    "metric_name",
                                                    "description",
                                                    "alarm_type",
                                                    "unit",
                                                    "comparison_operator",
                                                    "aggregation",
                                                    "warning_threshold",
                                                    "critical_threshold",
                                                    "warning_window_minutes",
                                                    "critical_window_minutes",
                                                    "warning_consecutive_failures_count",
                                                    "critical_consecutive_failures_count",
                                                    "self_resolving",
                                                    "active",
                                                    "notify_on_acknowledge",
                                                    "notify_on_resolve",
                                                    "entity",
                                                    "parent_entity",
                                                    "alarm_policies",
                                                    "state",
                                                    "inactive_reason",
                                                    "state_since",
                                                    "acknowledged"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Details of the resource the alarms belong to.",
                                            "properties": {
                                                "entity": {
                                                    "type": "object",
                                                    "description": "The resource whose alarms these are.",
                                                    "properties": {
                                                        "type": {
                                                            "type": "string",
                                                            "description": "One of the types that have alarms."
                                                        },
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The resource's uuid."
                                                        },
                                                        "name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "The resource's name; null when it has none."
                                                        }
                                                    },
                                                    "required": [
                                                        "type",
                                                        "uuid",
                                                        "name"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "entity"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.alarms.create",
                "description": "Creates an alarm on a resource, named by `entity_type` and `entity_uuid`, from a catalogue rule named by `rule_slug` (read the catalogue with `GET /v1/alarm-rules`, narrowed by the resource's sub-type, since the catalogue holds rules a resource of another sub-type does not support). Every other field is optional and falls back to the rule's default. A second alarm on the same rule and resource is allowed, for two sensitivities of one metric. A resource holds at most 40 alarms, and an alarm that a profile left deleted still counts: it is refused with 422 when the resource is full. `active` and `alarm_policy_uuids` cannot be null; an empty `alarm_policy_uuids` means no policies.",
                "summary": "Create an alarm",
                "tags": [
                    "Alarms"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "entity_type": {
                                        "type": "string",
                                        "description": "The type of resource the alarm is on; required. The same values `GET /v1/alarms` takes.",
                                        "enum": [
                                            "domain",
                                            "service",
                                            "server",
                                            "log_source",
                                            "custom_metric",
                                            "database_instance",
                                            "server_port",
                                            "server_system_service",
                                            "server_volume"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "entity_uuid": {
                                        "type": "string",
                                        "format": "uuid",
                                        "description": "The uuid of the resource the alarm is on; required. A resource of another organisation answers 404."
                                    },
                                    "rule_slug": {
                                        "type": "string",
                                        "description": "The slug of the catalogue rule the alarm is based on, from `GET /v1/alarm-rules`; required. A slug that does not exist for the entity type is refused."
                                    },
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The alarm's own name, up to 255 characters; it tells apart two alarms on one metric. Left out, the alarm takes its rule's name.",
                                        "maxLength": 255
                                    },
                                    "aggregation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the readings in a window are combined before the comparison: `sum`, `count`, `avg`, `min`, `max` or `last`. Left out, the rule's default applies.",
                                        "enum": [
                                            "sum",
                                            "count",
                                            "avg",
                                            "min",
                                            "max",
                                            "last",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "comparison_operator": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a reading is compared with the thresholds: `lt`, `lte`, `gt`, `gte` or `eq`. Left out, the rule's default applies.",
                                        "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte",
                                            "eq",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "warning_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The warning threshold, a number; negatives and fractions are allowed. Left out, the rule's default applies."
                                    },
                                    "critical_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The critical threshold, a number; negatives and fractions are allowed. A warning threshold past the critical one, in the direction the comparison goes, is refused. Left out, the rule's default applies."
                                    },
                                    "warning_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "critical_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "warning_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a warning, from 1 to 100. Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "critical_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a critical, from 1 to 100; a warning count above it is refused. Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the alarm starts switched on; `true` when left out. `null` is refused."
                                    },
                                    "notify_on_acknowledge": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether acknowledging an incident of the alarm notifies. Left out, the catalogue rule's flag applies."
                                    },
                                    "notify_on_resolve": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether resolving an incident of the alarm notifies. Left out, the catalogue rule's flag applies."
                                    },
                                    "alarm_policy_uuids": {
                                        "type": "array",
                                        "description": "The alarm policies the alarm notifies; an empty list or none means no policies, and `null` is refused. Each uuid is a policy of this organisation.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "entity_type",
                                    "entity_uuid",
                                    "rule_slug"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created alarm.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created alarm.",
                                            "$ref": "#/components/schemas/AlarmsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/alarms/{alarm_uuid}": {
            "get": {
                "operationId": "public.alarms.view",
                "description": "Returns one alarm by its uuid, as the alarm list gives it: its thresholds, live state, resource and the policies it notifies. An alarm that was deleted answers 404, whether it was removed or left as a tombstone by a profile.",
                "summary": "Get one alarm",
                "tags": [
                    "Alarms"
                ],
                "parameters": [
                    {
                        "name": "alarm_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm in the path. A soft-deleted alarm and a deleted inherited alarm's tombstone answer 404.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The alarm.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm.",
                                            "$ref": "#/components/schemas/AlarmsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.view"
                ]
            },
            "put": {
                "operationId": "public.alarms.update",
                "description": "Changes the fields sent; what is not sent keeps its value. `active: false` switches the alarm off and resolves its open incidents at once; `active: true` switches it back on. A `null` returns a threshold, window, consecutive count, `aggregation` or `comparison_operator` to the catalogue rule's default, `name` to the rule's name and a notify flag to the catalogue's; `active` and `alarm_policy_uuids` cannot be null, and `alarm_policy_uuids: []` clears the policies. `alarm_policy_uuids`, when sent, replaces the list. Thresholds out of order are refused with 422. Editing an alarm that came from a profile template makes it overridden, so a later propagation of the template leaves it alone: an alarm switched off here is no longer changed by its profile. An alarm that was deleted answers 404.",
                "summary": "Update an alarm",
                "tags": [
                    "Alarms"
                ],
                "parameters": [
                    {
                        "name": "alarm_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm in the path. A soft-deleted alarm and a deleted inherited alarm's tombstone answer 404.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The alarm's own name, up to 255 characters; it tells apart two alarms on one metric. Send `null` to return it to the catalogue rule's name.",
                                        "maxLength": 255
                                    },
                                    "aggregation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the readings in a window are combined before the comparison: `sum`, `count`, `avg`, `min`, `max` or `last`. Send `null` to return it to the rule's default.",
                                        "enum": [
                                            "sum",
                                            "count",
                                            "avg",
                                            "min",
                                            "max",
                                            "last",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "comparison_operator": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a reading is compared with the thresholds: `lt`, `lte`, `gt`, `gte` or `eq`. Send `null` to return it to the rule's default.",
                                        "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte",
                                            "eq",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "warning_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The warning threshold, a number; negatives and fractions are allowed. Send `null` to return it to the rule's default."
                                    },
                                    "critical_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The critical threshold, a number; negatives and fractions are allowed. A warning threshold past the critical one, in the direction the comparison goes, is refused. Send `null` to return it to the rule's default."
                                    },
                                    "warning_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "critical_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "warning_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a warning, from 1 to 100. Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "critical_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a critical, from 1 to 100; a warning count above it is refused. Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the alarm is switched on. `false` switches it off and resolves its open incidents at once; `null` is refused. An alarm that came from a profile template becomes `overridden` when it is edited, so a later propagation leaves it alone."
                                    },
                                    "notify_on_acknowledge": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether acknowledging an incident of the alarm notifies. Send `null` to return it to the catalogue rule's flag."
                                    },
                                    "notify_on_resolve": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether resolving an incident of the alarm notifies. Send `null` to return it to the catalogue rule's flag."
                                    },
                                    "alarm_policy_uuids": {
                                        "type": "array",
                                        "description": "The alarm policies the alarm notifies, a full replacement of the saved ones; `[]` detaches every policy and `null` is refused. Each uuid is a policy of this organisation.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The alarm after the change.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm after the change.",
                                            "$ref": "#/components/schemas/AlarmsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.alarms.delete",
                "description": "Deletes an alarm. Its open incidents resolve silently and its incident history stays. A deleted alarm does not come back by itself: not when its profile propagates its templates and not at the next deploy. To keep an alarm and turn it back on later, switch it off with `PUT /v1/alarms/{alarm_uuid}` instead. A second delete answers 404.",
                "summary": "Delete an alarm",
                "tags": [
                    "Alarms"
                ],
                "parameters": [
                    {
                        "name": "alarm_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the alarm in the path. A soft-deleted alarm and a deleted inherited alarm's tombstone answer 404.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Nothing: the answer is 204."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/audit-actions": {
            "get": {
                "operationId": "public.auditActions.list",
                "description": "Returns the organisation's audit trail, newest first by default (by date, then the order recorded), as the console's Audit page shows it to a member holding `audit.view`: who or what did each action, to which resource, through which channel, the fields it changed with their old and new values, what else it recorded, the lane it belongs to and the IP address it came from. Filter by resource (`entity_type` and `entity_uuid`, a deleted resource's too, or `resource`, a search of resource names), by actor (`actor_uuid`), by exact action code, by category (`GET /v1/audit-categories`), by lane and by time window, and order with `direction`. The user agent, the request URL and the raw metadata are never answered, nor are the identifiers the console hides. The key needs the `audit.view` scope, and its issuer must hold that permission. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List audit actions",
                "tags": [
                    "AuditActions"
                ],
                "parameters": [
                    {
                        "name": "entity_type",
                        "in": "query",
                        "description": "The type of the resource whose audit actions to list, such as `server`, `database_instance` or `log_source`; required with `entity_uuid`. More types may be added.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "server",
                                "domain",
                                "service",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "metric_source",
                                "server_profile",
                                "report",
                                "server_port",
                                "server_volume",
                                "server_system_service",
                                "dashboard",
                                "tag",
                                "tag_group",
                                "alarm_policy",
                                "alarm_channel",
                                "contact_group",
                                "role",
                                "user",
                                "organisation",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "entity_uuid",
                        "in": "query",
                        "description": "The uuid of the resource whose audit actions to list, a deleted one too; required with `entity_type`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "actor_uuid",
                        "in": "query",
                        "description": "Only the actions of this person or service account, by user uuid; a removed member's too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "description": "Only the actions of this category, by its `slug` (`GET /v1/audit-categories`).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "auth",
                                "sso",
                                "mfa",
                                "domain",
                                "service",
                                "server",
                                "server_profile",
                                "log_source",
                                "tag",
                                "dashboard",
                                "custom_metric",
                                "metric_source",
                                "database_instance",
                                "report",
                                "alarm_rule",
                                "alarm_policy",
                                "alarm_incident",
                                "health",
                                "alarm_channel",
                                "contact_group",
                                "organisation",
                                "user",
                                "role",
                                "invitation",
                                "ai_access",
                                "billing",
                                "email",
                                "api_token",
                                "system",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "lane",
                        "in": "query",
                        "description": "Only the actions of this lane of the Audit page: `changes`, `alarms`, `incidents`, `health` or `lifecycle`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "changes",
                                "alarms",
                                "incidents",
                                "health",
                                "lifecycle",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "resource",
                        "in": "query",
                        "description": "Only the actions about a resource whose name contains this text (the Audit page's resource search, not case sensitive, at most 100 characters).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The order by time: `desc` (newest first) when omitted, or `asc`. A cursor is tied to the order that made it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "action",
                        "in": "query",
                        "description": "Only the actions with this exact action code, such as `database_instance.update`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many audit actions to return in one page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's audit actions.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's audit actions.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The audit action's uuid."
                                                    },
                                                    "at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the action was recorded.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "action": {
                                                        "type": "string",
                                                        "description": "The action's code, such as `database_instance.update`. More codes may be added."
                                                    },
                                                    "action_label": {
                                                        "type": "string",
                                                        "description": "The action's label, as the console shows it."
                                                    },
                                                    "category": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The action's category; null when it has none.",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string",
                                                                "description": "The category's key, such as `database`."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The category's name."
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "name"
                                                        ]
                                                    },
                                                    "subject": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The resource the action is about; null when it is about none, or the resource is no longer known.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The resource's type, such as `server` or `database_instance`. More types may be added."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The resource's uuid."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The resource's name."
                                                            },
                                                            "deleted": {
                                                                "type": "boolean",
                                                                "description": "Whether the resource has since been deleted."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name",
                                                            "deleted"
                                                        ]
                                                    },
                                                    "lane": {
                                                        "type": "string",
                                                        "description": "The Audit page's lane the action belongs to: `changes`, `alarms`, `incidents`, `health` or `lifecycle`."
                                                    },
                                                    "actor": {
                                                        "type": "object",
                                                        "description": "Who or what did the action.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "`user` (a person), `service_account` (a service account, through its API key), `agent` (a server's agent), `support` (a change WatchTower15 support made) or `system` (WatchTower15 itself). More types may be added."
                                                            },
                                                            "uuid": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The user uuid of the person or service account; null for an agent, the system or WatchTower15 support."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the person or service account, or \"WatchTower15 support\" for a change WatchTower15 support made; null for an agent or the system."
                                                            },
                                                            "email": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The email of the person, as the Audit page shows it to a member holding `audit.view`; null for a service account, an agent or the system."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name",
                                                            "email"
                                                        ]
                                                    },
                                                    "origin": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "What caused an action nobody did by hand: `agent`, `scheduler`, `scan`, `ingest` or `system`; null otherwise, and on a row recorded without it. An open set."
                                                    },
                                                    "via": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The channel the action came through: `api` (an API key) or `mcp` (an AI client); null for the console or WatchTower15 itself."
                                                    },
                                                    "changes": {
                                                        "type": "array",
                                                        "description": "The fields the action changed, with the values the Audit page shows: `old` and `new` for a value change, `added` and `removed` for a change of a set, `changed` true for a masked value (a secret, whose value is never recorded). A key that does not apply to a change is null (`changed`: false).",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "field": {
                                                                    "type": "string",
                                                                    "description": "The changed field's key."
                                                                },
                                                                "label": {
                                                                    "type": "string",
                                                                    "description": "The changed field's label, as the console shows it."
                                                                },
                                                                "old": {
                                                                    "description": "The value before the change, as recorded; null when none was recorded or the change is not a value change."
                                                                },
                                                                "new": {
                                                                    "description": "The value after the change, as recorded; null when none was recorded or the change is not a value change."
                                                                },
                                                                "added": {
                                                                    "description": "What a change of a set added; null for any other change."
                                                                },
                                                                "removed": {
                                                                    "description": "What a change of a set removed; null for any other change."
                                                                },
                                                                "changed": {
                                                                    "type": "boolean",
                                                                    "description": "True when the field changed and its value is masked, never recorded."
                                                                }
                                                            },
                                                            "required": [
                                                                "field",
                                                                "label",
                                                                "old",
                                                                "new",
                                                                "added",
                                                                "removed",
                                                                "changed"
                                                            ]
                                                        }
                                                    },
                                                    "changes_count": {
                                                        "type": "integer",
                                                        "description": "The number of fields the action changed."
                                                    },
                                                    "context": {
                                                        "type": "array",
                                                        "description": "What else the action recorded, as the Audit page lists it under the row.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "key": {
                                                                    "type": "string",
                                                                    "description": "The pair's key; a nested value is `parent.child`."
                                                                },
                                                                "label": {
                                                                    "type": "string",
                                                                    "description": "The pair's label, as the console shows it."
                                                                },
                                                                "value": {
                                                                    "description": "The pair's value, by its `type`."
                                                                },
                                                                "type": {
                                                                    "type": "string",
                                                                    "description": "One of `text`, `number`, `boolean`, `instant` (epoch milliseconds) or `list` (strings)."
                                                                }
                                                            },
                                                            "required": [
                                                                "key",
                                                                "label",
                                                                "value",
                                                                "type"
                                                            ]
                                                        }
                                                    },
                                                    "ip_address": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The IP address the action came from, as recorded; null when none was."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "at",
                                                    "action",
                                                    "action_label",
                                                    "category",
                                                    "subject",
                                                    "lane",
                                                    "actor",
                                                    "origin",
                                                    "via",
                                                    "changes",
                                                    "changes_count",
                                                    "context",
                                                    "ip_address"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "audit.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/audit-actors": {
            "get": {
                "operationId": "public.auditActors.list",
                "description": "Returns the people and service accounts that can appear as the actor of an audit action, as the console's Audit page lists them for its user filter. Use an actor's `uuid` as the `actor_uuid` filter of the audit actions. The email is answered for a person only. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List audit actors",
                "tags": [
                    "AuditActors"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many actors to return in one page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the audit actors.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the audit actors.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "type": {
                                                        "type": "string",
                                                        "description": "`user` (a person) or `service_account`."
                                                    },
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The user uuid, the `actor_uuid` of an audit action."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name; a removed member's or a deleted service account's name is marked as the console marks it."
                                                    },
                                                    "email": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The email of a person; null for a service account."
                                                    }
                                                },
                                                "required": [
                                                    "type",
                                                    "uuid",
                                                    "name",
                                                    "email"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "audit.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/audit-categories": {
            "get": {
                "operationId": "public.auditCategories.list",
                "description": "Returns the categories an audit action can have, grouped as the console's Audit page lists its resource types. Use a category's `slug` as the `category` filter of the audit actions. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List audit categories",
                "tags": [
                    "AuditCategories"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The audit categories.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "The audit categories.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "slug": {
                                                        "type": "string",
                                                        "description": "The category's key, the `category` filter of the audit actions, such as `database_instance`."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The category's name."
                                                    },
                                                    "group": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The group the console lists the category under, such as `Monitoring`; null when it has none."
                                                    }
                                                },
                                                "required": [
                                                    "slug",
                                                    "name",
                                                    "group"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "audit.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/custom-metrics": {
            "get": {
                "operationId": "public.customMetrics.list",
                "description": "Returns the organisation's custom metrics, filtered by name or key, health, type, source and tags, and sorted as asked. `alarms_count` says which metrics carry alarms. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List custom metrics",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Matches the metric's name or key.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "health",
                        "in": "query",
                        "description": "Only metrics in one of these health states: `unknown`, `healthy`, `warning` or `critical`. A list: repeat the parameter (`health=unknown&health=healthy`) or send one value (`health=unknown`); `health[]=unknown` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "unknown",
                                    "healthy",
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "metric_type",
                        "in": "query",
                        "description": "Only metrics of one of these types: `count` or `level`. A list: repeat the parameter (`metric_type=count&metric_type=level`) or send one value (`metric_type=count`); `metric_type[]=count` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "count",
                                    "level"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "metric_source_uuids",
                        "in": "query",
                        "description": "Only metrics that belong to one of these sources, by uuid. A list: repeat the parameter (`metric_source_uuids=<uuid>&metric_source_uuids=<uuid>`) or send one value (`metric_source_uuids=<uuid>`); `metric_source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only metrics carrying one of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The field to order by: `name`, `metric_key`, `last_received_at` or `health_status`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "metric_key",
                                "last_received_at",
                                "health_status",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction: `asc` or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's custom metrics.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's custom metrics.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The metric's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The metric's name."
                                                    },
                                                    "metric_key": {
                                                        "type": "string",
                                                        "description": "The key a publisher sends the metric under."
                                                    },
                                                    "metric_type": {
                                                        "type": "string",
                                                        "description": "`count` sums events per step, `level` is a gauge."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit the metric's values are measured in; null for none."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                                                    },
                                                    "alarms_count": {
                                                        "type": "integer",
                                                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                                                    },
                                                    "last_received_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the metric is switched on."
                                                    },
                                                    "approved_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "auto_created": {
                                                        "type": "boolean",
                                                        "description": "Whether it appeared from a push rather than being declared."
                                                    },
                                                    "metric_source": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The source the metric belongs to; null for none.",
                                                        "properties": {
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The source's uuid."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The source's name."
                                                            }
                                                        },
                                                        "required": [
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The metric's own tags.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The metric's page in the console."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "metric_key",
                                                    "metric_type",
                                                    "unit",
                                                    "health_status",
                                                    "alarms_count",
                                                    "last_received_at",
                                                    "active",
                                                    "approved_at",
                                                    "auto_created",
                                                    "metric_source",
                                                    "tags",
                                                    "console_url"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.customMetrics.create",
                "description": "Declares a custom metric under a key, in one of the organisation's metric sources. The key and the source are set here and never change. The metric counts against the organisation's metric limit, and the call is refused when the plan does not allow it.",
                "summary": "Create a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "metric_key": {
                                        "type": "string",
                                        "description": "The key a publisher sends the metric under; required, and fixed once the metric exists.",
                                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                                        "maxLength": 100
                                    },
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The metric's display name.",
                                        "maxLength": 255
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the metric, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "unit": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The unit the metric's values are measured in, a free display string such as `files`, `%` or `orders`; null for none.",
                                        "maxLength": 32
                                    },
                                    "metric_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a point is read: `count` sums events per step, `level` is a gauge.",
                                        "enum": [
                                            "count",
                                            "level",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "metric_source_uuid": {
                                        "type": "string",
                                        "format": "uuid",
                                        "description": "The source the metric belongs to."
                                    },
                                    "max_points_per_day": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Points accepted a day on the live tier, as the metric's own limit; the ceiling stated, 86,400,000 points a day, is the platform default and an organisation's override may differ.",
                                        "minimum": 1,
                                        "maximum": 86400000
                                    },
                                    "max_backfill_points_per_day": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Points accepted a day on the backfill tier, as the metric's own limit; the ceiling stated, 86,400,000 points a day, is the platform default and an organisation's override may differ.",
                                        "minimum": 1,
                                        "maximum": 86400000
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the metric is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags to put on the metric.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "linked_server_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the servers the metric is shown on, at most 100; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "linked_server_all_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must ALL carry for the metric to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "linked_server_any_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must carry at least ONE of for the metric to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    }
                                },
                                "required": [
                                    "metric_key",
                                    "metric_source_uuid"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created custom metric.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created custom metric.",
                                            "$ref": "#/components/schemas/CustomMetricsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/custom-metrics/{custom_metric_uuid}": {
            "get": {
                "operationId": "public.customMetrics.view",
                "description": "Returns one custom metric with its source, tags, linked servers and the limits in force. Linked server names are given only to a key holding `servers.view`; without it `linked_servers` is null and the count is kept.",
                "summary": "Get a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The custom metric.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The custom metric.",
                                            "$ref": "#/components/schemas/CustomMetricsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ]
            },
            "put": {
                "operationId": "public.customMetrics.update",
                "description": "Changes the fields sent: name, description, unit, type, per-day point limits, whether it is switched on, tags and linked servers. A limit equal to the one in force is not stored, so the metric keeps following the organisation's. A metric awaiting approval cannot be switched on or off.",
                "summary": "Update a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The metric's display name.",
                                        "maxLength": 255
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the metric, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "unit": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The unit the metric's values are measured in, a free display string such as `files`, `%` or `orders`; null for none.",
                                        "maxLength": 32
                                    },
                                    "metric_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a point is read: `count` sums events per step, `level` is a gauge.",
                                        "enum": [
                                            "count",
                                            "level",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "max_points_per_day": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Points accepted a day on the live tier, as the metric's own limit; the ceiling stated, 86,400,000 points a day, is the platform default and an organisation's override may differ.",
                                        "minimum": 1,
                                        "maximum": 86400000
                                    },
                                    "max_backfill_points_per_day": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Points accepted a day on the backfill tier, as the metric's own limit; the ceiling stated, 86,400,000 points a day, is the platform default and an organisation's override may differ.",
                                        "minimum": 1,
                                        "maximum": 86400000
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the metric is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags to put on the metric.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "linked_server_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the servers the metric is shown on, at most 100; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "linked_server_all_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must ALL carry for the metric to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "linked_server_any_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must carry at least ONE of for the metric to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The custom metric after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The custom metric after the update.",
                                            "$ref": "#/components/schemas/CustomMetricsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.customMetrics.delete",
                "description": "Deletes the custom metric and resolves its open incidents. The answer has no body.",
                "summary": "Delete a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The custom metric was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/custom-metrics/{custom_metric_uuid}/series": {
            "get": {
                "operationId": "public.customMetrics.series",
                "description": "Returns the metric's points over a window, which defaults to the last day and reaches back as far as the metric is kept (1,095 days). Each point summarises the step that ends at its time: with `step=1d` the point at a day's 00:00 UTC holds the day before. `tz`, an IANA time zone name such as `Europe/London`, puts the `1d` points at the zone's local midnights and the `1w` points on its Mondays, each still holding the step that ends at it; a day with a clock change is 23 or 25 hours long, so read each point's own time rather than multiples of `step_seconds`, and know that `tz=UTC` is not the same as no `tz` (a `1w` point sits on Mondays 00:00 UTC, without `tz` on Thursdays); with any other step `tz` changes nothing, and the answer gives the `tz` sent. `aggregation` chooses how: `avg`, `min`, `max` or `last` for a `level` metric, `sum` for a `count` one; omitted, a level reads its value at each step and a count its sum. `step` chooses the width, `30s` to `1w`, and is refused when it cuts the window into more than 720 points; omitted, it follows the window's length. A step with no value is a missing point, not a zero. The store reads at most 30,000,000 samples of one metric in a query, so a dense metric's longest window is shorter (about 300 days at the default 100,000 points a day); beyond it the answer is 422 asking for a shorter window. A metric awaiting approval stores no points, so the answer is `available: false` with `reason: awaiting_approval` and an empty series.",
                "summary": "Get a custom metric's series",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "aggregation",
                        "in": "query",
                        "description": "How each step summarises the samples inside it: `avg`, `min`, `max` or `last` for a `level` metric, `sum` for a `count` one\n(the metric's `supported_aggregations`). Omitted, a level reads its value at each step and a count its sum.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "avg",
                                "min",
                                "max",
                                "last",
                                "sum",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "step",
                        "in": "query",
                        "description": "The width of one step: `30s`, `1m`, `5m`, `30m`, `2h`, `6h`, `1d` or `1w`, refused when it cuts the window into more than 720\npoints. Omitted, the step follows the window's length.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "30s",
                                "1m",
                                "5m",
                                "30m",
                                "2h",
                                "6h",
                                "1d",
                                "1w",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "tz",
                        "in": "query",
                        "description": "An IANA time zone name such as `Europe/London`. With a `1d` or `1w` step (sent, or chosen by the window's length) each point sits at a\nlocal midnight of the zone, and a `1w` point on a Monday's; with any other step it changes nothing. Omitted, the steps are aligned\nto UTC as before.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The metric's points over the window.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The metric's points over the window.",
                                            "$ref": "#/components/schemas/CustomMetricsSeriesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ]
            }
        },
        "/custom-metrics/{custom_metric_uuid}/samples": {
            "get": {
                "operationId": "public.customMetrics.samples",
                "description": "Returns each value pushed for the metric with its own time in epoch milliseconds, oldest first, over a window that defaults to the last hour and spans at most one day. Two samples at one time are both returned. Pages hold up to `per_page` samples (`limit` is the same; 1,000 by default, at most 10,000); pass `next_cursor` back as `cursor` for the next page, which keeps the first page's window. Each page first counts the samples left in its window: more than 100,000 is refused with 422 naming the count, and so is a window the store refuses for its own sample limit; ask for a shorter window. A metric awaiting approval stores no samples, so the answer is `available: false` with `reason: awaiting_approval` and no samples.",
                "summary": "Get a custom metric's raw samples",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 10000
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "The `next_cursor` of the previous page; omit it for the first page.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 512
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of samples in a page, from 1 to 10,000; 1,000 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 10000
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the metric's raw samples.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "One page of the metric's raw samples.",
                                            "$ref": "#/components/schemas/CustomMetricsSamplesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ]
            }
        },
        "/custom-metrics/{custom_metric_uuid}/summary": {
            "get": {
                "operationId": "public.customMetrics.summary",
                "description": "Returns statistics of the metric's samples over a window, which defaults to the last day and reaches back as far as the metric is kept (1,095 days; an earlier start is served from it): the number of samples, their sum, minimum, maximum, average, median (`p50`) and 95th percentile (`p95`), the times of the first and the last sample, and the last value. Each is null when the window holds no sample. A window of 31 days or less reads the samples themselves, and the answer says `rolled_up: false`; a longer one reads the daily summaries the platform keeps for the whole UTC days up to the start of yesterday and the samples for the rest, and says `rolled_up: true`: `p50` and `p95` are then approximated from a histogram of the values, within about 14% of the exact value, and are null when the window holds a negative value, and every other statistic is exact. A metric whose history is not summarised yet answers `available: false` with `reason: rollup_pending`; a backfilled value, or a reset, reaches the longer windows within about an hour. A window of 31 days or less that the store refuses because it holds more samples than one query reads (30,000,000 of one metric) answers 422 asking for a shorter window; data denser than the default 100,000 points a day can also end at the read budget with 503 `store_unavailable`. A metric awaiting approval stores no samples, so the answer is `available: false` with `reason: awaiting_approval` and every statistic null.",
                "summary": "Get a custom metric's summary",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The metric's statistics over the window.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The metric's statistics over the window.",
                                            "$ref": "#/components/schemas/CustomMetricsSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ]
            }
        },
        "/custom-metrics/{custom_metric_uuid}/approve": {
            "post": {
                "operationId": "public.customMetrics.approve",
                "description": "Accepts a metric that appeared from a push, so that its points are stored from then on. The call is refused when the plan does not allow it or the organisation's metric limit is reached.",
                "summary": "Approve a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The approved custom metric.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The approved custom metric.",
                                            "$ref": "#/components/schemas/CustomMetricsApproveResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/custom-metrics/{custom_metric_uuid}/reset-series": {
            "post": {
                "operationId": "public.customMetrics.resetSeries",
                "description": "Deletes all stored points of an approved metric from the metrics store before answering; the metric itself stays. A metric awaiting approval is refused.",
                "summary": "Reset a custom metric's series",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The custom metric after its points were deleted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The custom metric after its points were deleted.",
                                            "$ref": "#/components/schemas/CustomMetricsResetSeriesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/custom-metrics/{custom_metric_uuid}/discard": {
            "post": {
                "operationId": "public.customMetrics.discard",
                "description": "Permanently deletes a metric that still awaits approval, which never stored any points. The answer has no body.",
                "summary": "Discard a custom metric",
                "tags": [
                    "CustomMetrics"
                ],
                "parameters": [
                    {
                        "name": "custom_metric_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the custom metric in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The custom metric was discarded; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/collector-preview": {
            "post": {
                "operationId": "public.databases.collectorPreview",
                "description": "Lists the servers that a collector selection would make candidates for a database, by hand-picked servers or by tags, with the role each would get and why a server is left out. Read-only: nothing is saved and no database is changed. Also warns about weak pools, such as a pool of one that never fails over.",
                "summary": "Preview a collector pool",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "selection": {
                                        "type": "string",
                                        "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                        "enum": [
                                            "servers",
                                            "tags"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "servers": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the servers to preview, with `selection` `servers`.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 50
                                    },
                                    "all": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Servers must carry ALL of these tags.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "any": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Servers must carry ANY of these tags.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    }
                                },
                                "required": [
                                    "selection"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The candidate servers and the warnings for the selection.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The candidate servers and the warnings for the selection.",
                                            "$ref": "#/components/schemas/DatabasesCollectorPreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases": {
            "post": {
                "operationId": "public.databases.create",
                "description": "Creates a database in the draft state with its default alarms, from a name, a description and a provider. Finish its connection, collectors and tags with `databases.update`, which also completes the setup. Refused when the organisation's database limit is reached or its payment status does not allow it. Answers the database as `databases.view` does.",
                "summary": "Create a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The database's name.",
                                        "maxLength": 120
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the database; null for none.",
                                        "maxLength": 2000
                                    },
                                    "provider": {
                                        "type": "string",
                                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                                    }
                                },
                                "required": [
                                    "name",
                                    "provider"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The database that was created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database that was created.",
                                            "$ref": "#/components/schemas/DatabasesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            },
            "get": {
                "operationId": "public.databases.list",
                "description": "Lists the organisation's databases, worst health first unless `sort` says otherwise, one page at a time. Filter by name or endpoint, status, provider, health or tags. The current queries per second and connection use are null when the database sent no report in the last 2 minutes. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List databases",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only databases whose name or endpoint host contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only databases in one of these statuses: `draft`, `awaiting_collector`, `verifying`, `active`, `failing` or `paused`. A list: repeat the parameter (`status=draft&status=awaiting_collector`) or send one value (`status=draft`); `status[]=draft` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "draft",
                                    "awaiting_collector",
                                    "verifying",
                                    "active",
                                    "failing",
                                    "paused"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "provider",
                        "in": "query",
                        "description": "Only databases of one of these providers, by the provider's key. A list: repeat the parameter (`provider=<value>&provider=<value>`) or send one value (`provider=<value>`); `provider[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 40
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "health",
                        "in": "query",
                        "description": "Only databases with one of these health statuses: `unknown`, `healthy`, `warning` or `critical`. A list: repeat the parameter (`health=unknown&health=healthy`) or send one value (`health=unknown`); `health[]=unknown` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "unknown",
                                    "healthy",
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only databases carrying all of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The field to sort by: `name`, `health_status`, `status` or `last_received_at`; the worst health first when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "health_status",
                                "status",
                                "last_received_at",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction: `asc` or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of items in a page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's databases.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's databases.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The database's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The database's name."
                                                    },
                                                    "engine": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The database engine, such as `mysql`; null until it is known."
                                                    },
                                                    "engine_version": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The engine's version as the collector reported it; null until a report arrives."
                                                    },
                                                    "provider": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                                                    },
                                                    "status_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether monitoring is switched on."
                                                    },
                                                    "privacy_mode": {
                                                        "type": "string",
                                                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                                                    },
                                                    "qps": {
                                                        "description": "Queries per second, the latest value; null without a report in the last 2 minutes.",
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ]
                                                    },
                                                    "connections_percent": {
                                                        "description": "Connections in use as a percentage of the maximum; null without a report in the last 2 minutes.",
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ]
                                                    },
                                                    "storage_size_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The database's size in bytes; null before the first measurement."
                                                    },
                                                    "storage_growth_30d_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The 30-day projection less the size, while the forecast is `ok`."
                                                    },
                                                    "storage_days_to_full": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                                                    },
                                                    "storage_forecast_status": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The forecast's status; null before the first forecast."
                                                    },
                                                    "over_privileged": {
                                                        "type": "boolean",
                                                        "description": "Whether a collector holds more privilege than it needs."
                                                    },
                                                    "last_received_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The tags set on the database.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The database's page in the console."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "engine",
                                                    "engine_version",
                                                    "provider",
                                                    "health_status",
                                                    "status",
                                                    "status_reason",
                                                    "active",
                                                    "privacy_mode",
                                                    "qps",
                                                    "connections_percent",
                                                    "storage_size_bytes",
                                                    "storage_growth_30d_bytes",
                                                    "storage_days_to_full",
                                                    "storage_forecast_status",
                                                    "over_privileged",
                                                    "last_received_at",
                                                    "tags",
                                                    "console_url"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/databases/{database_uuid}": {
            "put": {
                "operationId": "public.databases.update",
                "description": "Changes a database's name, description, provider, connection, TLS and credential references, privacy mode, collector pool, host server, tags and storage ceiling; only the fields sent change. `setup_complete` leaves the draft state. The connection fields, credential references and TLS server name are accepted and never returned. Answers the database as `databases.view` does.",
                "summary": "Update a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The database's name.",
                                        "maxLength": 120
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the database; null clears it.",
                                        "maxLength": 2000
                                    },
                                    "provider": {
                                        "type": "string",
                                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                                    },
                                    "provider_edition": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The provider's edition of the service, by its catalogue key; it must belong to the provider. Null clears it.",
                                        "maxLength": 40
                                    },
                                    "connection_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the collector reaches the database: `socket`, `loopback`, `private_network` or `public_endpoint`.",
                                        "enum": [
                                            "socket",
                                            "loopback",
                                            "private_network",
                                            "public_endpoint",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "endpoint_host": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The host name the collector connects to. Accepted, never returned.",
                                        "pattern": "^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$",
                                        "maxLength": 255,
                                        "writeOnly": true
                                    },
                                    "endpoint_port": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The TCP port the collector connects to, from 1 to 65535. Accepted, never returned.",
                                        "minimum": 1,
                                        "maximum": 65535,
                                        "writeOnly": true
                                    },
                                    "socket_path": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The absolute path of the Unix socket the collector connects to. Accepted, never returned.",
                                        "pattern": "^\\/[A-Za-z0-9_.\\/-]+$",
                                        "maxLength": 255,
                                        "writeOnly": true
                                    },
                                    "tls_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the collector secures its connection with TLS; one of the modes the database's engine supports.",
                                        "enum": [
                                            "none",
                                            "verify_identity",
                                            "verify_ca",
                                            "skip_verify",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "tls_server_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The server name the collector expects in the database's TLS certificate. Accepted, never returned.",
                                        "pattern": "^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$",
                                        "maxLength": 255,
                                        "writeOnly": true
                                    },
                                    "ca_source": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Where the certificate authority for the connection comes from; one of the sources the database's engine supports.",
                                        "enum": [
                                            "system",
                                            "rds_bundle",
                                            "file",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "auth_method": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the collector signs in to the database; one of the methods the database's engine supports.",
                                        "enum": [
                                            "password",
                                            "socket",
                                            "aws_iam",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "credential_ref": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "A reference to the credential the collector uses, in the shape the authentication method needs; identifiers only, never a secret. Accepted; the view answers it as `credentials`.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "writeOnly": true
                                    },
                                    "redaction_key_ref": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "A reference to the key that redacts the database's text, in the shape the privacy mode needs; identifiers only, never a secret. Accepted, never returned.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "writeOnly": true
                                    },
                                    "privacy_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`.",
                                        "enum": [
                                            "hashed",
                                            "identifiers",
                                            "counts",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "collectors": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "The rule that picks the servers running the database's collectors: explicit servers in order of preference, or a tag rule.",
                                        "properties": {
                                            "selection": {
                                                "type": "string",
                                                "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                                "enum": [
                                                    "servers",
                                                    "tags"
                                                ],
                                                "x-wt15-open-enum": true
                                            },
                                            "servers": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The uuids of the servers, in order of preference, with `selection` `servers`.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 50
                                            },
                                            "all": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry all of these tags, by uuid, with `selection` `tags`.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            },
                                            "any": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry any of these tags, by uuid, with `selection` `tags`.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            }
                                        }
                                    },
                                    "host_server_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "uuid",
                                        "description": "The uuid of the monitored server that runs the database, for a self-managed database reached over the network; null clears it."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags to set on the database.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "setup_complete": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the setup is complete; true leaves the draft state, after the payment status and the organisation's database limit are checked."
                                    },
                                    "storage": {
                                        "type": "object",
                                        "description": "The database's storage settings.",
                                        "properties": {
                                            "ceiling_gib": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "description": "The storage ceiling in whole GiB, or null to clear it. Accepted only for `aws_rds_mysql` and `aws_rds_mariadb` databases; the days to full are recomputed at once.",
                                                "minimum": 1,
                                                "maximum": 65536
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The database after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database after the update.",
                                            "$ref": "#/components/schemas/DatabasesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.databases.delete",
                "description": "Deletes a database. Its collectors are told to stop, its open incidents resolve, and its stored storage inventory is removed. The answer has no body.",
                "summary": "Delete a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The database was deleted."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.delete"
                ],
                "x-wt15-idempotent": true
            },
            "get": {
                "operationId": "public.databases.view",
                "description": "Returns one database with its engine, storage and forecast, schema pass state, tags and the key check values its collectors report. Reading a database also adds any default alarm the catalogue gained since it was created, as opening it in the console does.",
                "summary": "Get a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database.",
                                            "$ref": "#/components/schemas/DatabasesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/verify": {
            "post": {
                "operationId": "public.databases.verify",
                "description": "Asks every collector that can currently collect to probe the database again. The probes run when each agent next checks in, about 15 to 35 seconds later, and their results appear on the database. Refused for a draft and for a paused database. Answers the database as `databases.view` does.",
                "summary": "Verify a database's collectors",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database as it stands while the collectors probe again.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database as it stands while the collectors probe again.",
                                            "$ref": "#/components/schemas/DatabasesVerifyResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/reassign": {
            "post": {
                "operationId": "public.databases.reassign",
                "description": "Moves collection to the warm standby collector at once, and the old active collector becomes the standby. Expect one gap of about 15 seconds in the rates. Refused when there is no eligible standby. Answers the database as `databases.view` does.",
                "summary": "Reassign a database's collector",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database after collection was moved.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database after collection was moved.",
                                            "$ref": "#/components/schemas/DatabasesReassignResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/accept-key": {
            "post": {
                "operationId": "public.databases.acceptKey",
                "description": "Makes one of the key check values the collectors report (`reported_key_fingerprints`) the database's reference, as a deliberate key rotation. Collectors that report it become eligible again, collectors still on the old key are flagged until they hold the new one, every collector probes again, and the advisor's per-object findings are evaluated afresh. Answers the database as `databases.view` does.",
                "summary": "Accept a new key check value",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "fingerprint": {
                                        "type": "string",
                                        "description": "One of the database's `reported_key_fingerprints`: a key check value (an HMAC cut to 16 hex characters), never the key.",
                                        "pattern": "^[0-9a-f]{16}$",
                                        "writeOnly": true
                                    }
                                },
                                "required": [
                                    "fingerprint"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The database after the new key was accepted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database after the new key was accepted.",
                                            "$ref": "#/components/schemas/DatabasesAcceptKeyResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/pause": {
            "post": {
                "operationId": "public.databases.pause",
                "description": "Pauses a database: nothing is collected, no alarm evaluates and nothing is billed until it is resumed, and its setup is kept. Refused for a draft and for a database that is already paused. Answers the database as `databases.view` does.",
                "summary": "Pause a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database after it was paused.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database after it was paused.",
                                            "$ref": "#/components/schemas/DatabasesPauseResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/resume": {
            "post": {
                "operationId": "public.databases.resume",
                "description": "Resumes a paused database: collection and billing start again and the payment status is checked first. The time of the last report is cleared, so nothing alarms until the first report after the resume. Refused when the database is not paused. Answers the database as `databases.view` does.",
                "summary": "Resume a database",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database after it was resumed.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database after it was resumed.",
                                            "$ref": "#/components/schemas/DatabasesResumeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/schema-refresh": {
            "post": {
                "operationId": "public.databases.refreshSchema",
                "description": "Queues one schema pass on the database's active collector, to run now. The pass runs when the collector's agent next checks in, so the answer is the database as it stands, not the result. Refused while a refresh was requested in the last 10 minutes or when the collector cannot run it. Answers the database as `databases.view` does.",
                "summary": "Refresh a database's schema",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The schema refresh was queued; the body is the database as it stands.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The schema refresh was queued; the body is the database as it stands.",
                                            "$ref": "#/components/schemas/DatabasesRefreshSchemaResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/advisor-run": {
            "post": {
                "operationId": "public.databases.runAdvisor",
                "description": "Queues one advisor pass on the database's active collector, to run now. The pass runs when the collector's agent next checks in, so the answer is the database as it stands, not the findings. Refused when the advisor cannot run it now. Answers the database as `databases.view` does.",
                "summary": "Run a database's advisor",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The advisor run was queued; the body is the database as it stands.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The advisor run was queued; the body is the database as it stands.",
                                            "$ref": "#/components/schemas/DatabasesRunAdvisorResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/findings/{finding_uuid}/dismiss": {
            "post": {
                "operationId": "public.databases.dismissFinding",
                "description": "Dismisses an open advisor finding with a reason. It stays dismissed while it keeps firing and is resolved when it stops applying. Refused when the finding belongs to another database or is not open. Answers the finding as `databases.findings` lists it.",
                "summary": "Dismiss an advisor finding",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "finding_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the finding.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "description": "Why the finding is dismissed.",
                                        "minLength": 1,
                                        "maxLength": 500
                                    }
                                },
                                "required": [
                                    "reason"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The finding after it was dismissed.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The finding after it was dismissed.",
                                            "$ref": "#/components/schemas/DatabasesDismissFindingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/findings/{finding_uuid}/restore": {
            "post": {
                "operationId": "public.databases.restoreFinding",
                "description": "Restores a dismissed advisor finding, so it counts again while it keeps firing. Refused when the finding belongs to another database or is not dismissed. Answers the finding as `databases.findings` lists it.",
                "summary": "Restore a dismissed advisor finding",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "finding_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the finding.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The finding after it was restored.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The finding after it was restored.",
                                            "$ref": "#/components/schemas/DatabasesRestoreFindingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/databases/{database_uuid}/storage": {
            "get": {
                "operationId": "public.databases.storage",
                "description": "Returns a database's size, growth and forecast, the projected size after 30, 90, 180 and 365 days, its ceiling, and its current schemas and tables by size, largest first. Schemas and tables are empty for a database that keeps counts only, and names are returned only when the database shows identifiers.",
                "summary": "Get a database's storage",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's storage, forecast, schemas and tables.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's storage, forecast, schemas and tables.",
                                            "$ref": "#/components/schemas/DatabasesStorageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/queries": {
            "get": {
                "operationId": "public.databases.queries",
                "description": "Returns the top 50 statements of a database in a time window, ranked by the chosen sort, with the totals of all the other statements and of the whole window. The window defaults to the last day and spans at most 7 days. A database that keeps counts only answers `available: false` with `reason: counts_only` and no statements. Statement texts and schema names are returned only when the database shows identifiers.",
                "summary": "List a database's top queries",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "What the top 50 statements are ranked by: `total_time`, `calls`, `avg_time`, `rows_examined`, `no_index`, `errors` or `impact`; `total_time` when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "total_time",
                                "calls",
                                "avg_time",
                                "rows_examined",
                                "no_index",
                                "errors",
                                "impact",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "description": "The ranking direction: `asc` for the lowest first or `desc` for the highest first; `desc` when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The top statements of the window, the other statements and the totals.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The top statements of the window, the other statements and the totals.",
                                            "$ref": "#/components/schemas/DatabasesQueriesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/findings": {
            "get": {
                "operationId": "public.databases.findings",
                "description": "Lists the advisor's findings on one database, one page at a time. Without a `status` filter only the open findings are returned. Filter by severity, rule group or rule. Object names and statement texts are returned only when the database shows identifiers. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List advisor findings",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only findings in this status: `open`, `resolved` or `dismissed`; the open findings when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "open",
                                "resolved",
                                "dismissed",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "description": "Only findings of this severity: `critical`, `warning` or `info`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "critical",
                                "warning",
                                "info",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "group",
                        "in": "query",
                        "description": "Only findings of rules in this group: `config`, `schema`, `workload` or `hardening`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "configuration",
                                "schema",
                                "workload",
                                "hardening",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "rule",
                        "in": "query",
                        "description": "Only findings of this advisor rule, by its key.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "config.buffer_pool_small",
                                "config.connections_headroom",
                                "config.tmp_disk_tables_high",
                                "config.redo_capacity_low",
                                "config.binlog_retention_short",
                                "config.durability_relaxed",
                                "config.table_open_cache_small",
                                "schema.no_primary_key",
                                "schema.redundant_index",
                                "schema.unused_index",
                                "schema.row_versions_near_limit",
                                "schema.digest_table_full",
                                "workload.no_index_statements",
                                "workload.examined_vs_sent",
                                "workload.full_joins",
                                "hardening.secure_transport_off",
                                "hardening.local_infile_on",
                                "hardening.secure_file_priv_empty",
                                "hardening.replica_writable",
                                "hardening.open_accounts",
                                "hardening.tls_certificate_expiring",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of items in a page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the database's advisor findings.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the database's advisor findings.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The finding's uuid."
                                                    },
                                                    "rule_key": {
                                                        "type": "string",
                                                        "description": "The advisor rule's key, such as `schema.no_primary_key`."
                                                    },
                                                    "group": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The rule's group: `config`, `schema`, `workload` or `hardening`."
                                                    },
                                                    "object_kind": {
                                                        "type": "string",
                                                        "description": "What the finding is about: `instance`, `table`, `index`, `statement`, `account` and so on."
                                                    },
                                                    "object_key": {
                                                        "type": "string",
                                                        "description": "The object's key, which tells objects apart when their names are hidden."
                                                    },
                                                    "object_names": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The object's names; null unless the database shows identifiers.",
                                                        "additionalProperties": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "severity": {
                                                        "type": "string",
                                                        "description": "One of `critical`, `warning`, `info`."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `open`, `resolved`, `dismissed`."
                                                    },
                                                    "statement_text": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "A statement's text; null unless the database shows identifiers."
                                                    },
                                                    "first_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the item was first seen.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the item was last seen.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "resolved_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When it stopped applying; null while it is open.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "dismissed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When it was dismissed; null otherwise.",
                                                        "x-wt15-instant": true
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "rule_key",
                                                    "group",
                                                    "object_kind",
                                                    "object_key",
                                                    "object_names",
                                                    "severity",
                                                    "status",
                                                    "statement_text",
                                                    "first_seen_at",
                                                    "last_seen_at",
                                                    "resolved_at",
                                                    "dismissed_at"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/databases/{database_uuid}/schema-changes": {
            "get": {
                "operationId": "public.databases.schemaChanges",
                "description": "Lists the changes detected in a database's schema, newest first, one page at a time. Filter by kind, action or schema, and by a time window; without a window every change is listed. Object names are returned only when the database shows identifiers; the keys always tell objects apart. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a database's schema changes",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "description": "Only changes to this kind of object: `table`, `view` or `routine`; without it the history markers are listed too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "table",
                                "view",
                                "routine",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "action",
                        "in": "query",
                        "description": "Only changes of this action: `created`, `altered`, `renamed` or `dropped`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "created",
                                "altered",
                                "renamed",
                                "dropped",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "schema_key",
                        "in": "query",
                        "description": "Only changes in the schema with this key, as `databases.storage` and a change's `schema_key` give it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^[0-9a-f]{16}$"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of items in a page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the database's schema changes.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the database's schema changes.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "detected_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the pass detected the change.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "kind": {
                                                        "type": "string",
                                                        "description": "What changed: `table`, `view` or `routine`; `marker` for a history marker, listed only without a filter."
                                                    },
                                                    "action": {
                                                        "type": "string",
                                                        "description": "What happened to it: `created`, `altered`, `renamed` or `dropped`; a marker's own action otherwise."
                                                    },
                                                    "object_key": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The changed object's key, which tells objects apart when their names are hidden; null on a marker."
                                                    },
                                                    "previous_object_key": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The key the object had before a rename; null otherwise."
                                                    },
                                                    "schema_key": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The key of the object's schema; null on a marker."
                                                    },
                                                    "names": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The names of the keys involved; null unless the database shows identifiers.",
                                                        "additionalProperties": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "details_unavailable": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the change's details could not be kept; null when not applicable."
                                                    }
                                                },
                                                "required": [
                                                    "detected_at",
                                                    "kind",
                                                    "action",
                                                    "object_key",
                                                    "previous_object_key",
                                                    "schema_key",
                                                    "names",
                                                    "details_unavailable"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/databases/{database_uuid}/collectors": {
            "get": {
                "operationId": "public.databases.collectors",
                "description": "Returns the servers that collect a database: the lease epoch, and for each server its role (active, standby or cold), whether it is eligible, when it last probed the database and what the probe found, and why it cannot collect right now when it cannot. The active collector comes first, then the standby, then the other candidates. A server's name is returned only to a key that also holds the servers.view scope; its uuid always.",
                "summary": "Get a database's collectors",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's lease epoch and its collectors.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's lease epoch and its collectors.",
                                            "$ref": "#/components/schemas/DatabasesCollectorsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/collectors/history": {
            "get": {
                "operationId": "public.databases.collectorHistory",
                "description": "Lists the moves of a database's collector lease, newest first, one page at a time, over an optional time window; without a window every move is listed. A server is identified by its uuid only. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a database's collector history",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of items in a page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the lease's moves.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the lease's moves.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the move was recorded, to the second.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "action": {
                                                        "type": "string",
                                                        "description": "What happened: `promoted` (a standby became the active collector), `assigned` (a server was given a role), `demoted` (the active collector stopped) or `none` (the database was left with no collector)."
                                                    },
                                                    "server_uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The uuid of the server the row is about; null when the row has none, as on every `none` row and on rows recorded before the uuid was kept."
                                                    },
                                                    "role": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`active` or `standby` on an `assigned` row; null on every other."
                                                    },
                                                    "epoch": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The lease epoch the row carries: on `promoted` and on `assigned` as `active`; null otherwise."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why the lease moved, in a fixed sentence; null where the row has none."
                                                    }
                                                },
                                                "required": [
                                                    "at",
                                                    "action",
                                                    "server_uuid",
                                                    "role",
                                                    "epoch",
                                                    "reason"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/databases/{database_uuid}/metrics": {
            "get": {
                "operationId": "public.databases.metrics",
                "description": "Returns the series of a database's telemetry over a time window, in the one shape every series read answers: each series has its name, unit, labels, what a point means and `[t, value]` points, with `t` in epoch milliseconds. Every series of the database's engine is present, with no points when the window holds none. The window defaults to one day and is at most 31 days. Fails with a 503 when the metric store does not answer.",
                "summary": "Get a database's metric series",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "set",
                        "in": "query",
                        "description": "`cloud` reads the cloud provider's series of the database's host (for a database that runs on a cloud service); omit it for the database's own series.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "cloud",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's series for the window.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's series for the window.",
                                            "$ref": "#/components/schemas/DatabasesMetricsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/coverage": {
            "get": {
                "operationId": "public.databases.coverage",
                "description": "Returns how much of the time a database should have reported it did over a window, as a share, and every band where data is missing or accounted for, each with its cause: monitoring paused, no collector, database unreachable, a collector handover, a WatchTower15 outage, no report from the collector, and the collector-side causes. The window defaults to the last 30 days, which is also how far back coverage reaches, and is at most 31 days. When the data store does not answer, the answer says coverage is unavailable instead of failing.",
                "summary": "Get a database's data coverage",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's coverage share and bands for the window.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's coverage share and bands for the window.",
                                            "$ref": "#/components/schemas/DatabasesCoverageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/cloud": {
            "get": {
                "operationId": "public.databases.cloud",
                "description": "Returns the state of the cloud section the database's collector reports and the facts it holds about the cloud instance: its role, class, storage, whether it is Multi-AZ and when the facts were stored. It never returns what identifies the cloud account or the instance. A database with no cloud section yet answers every field null.",
                "summary": "Get a database's cloud section",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's cloud section.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's cloud section.",
                                            "$ref": "#/components/schemas/DatabasesCloudResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/capabilities": {
            "get": {
                "operationId": "public.databases.capabilities",
                "description": "Returns, for each monitoring layer of a database, whether it is available, not applicable or not collected, with the scope of a not applicable layer and the remedy of a layer that is not collected. Reading a database's layers also adds any default alarm the catalogue gained since the database was created, as opening it in the console does.",
                "summary": "Get a database's capabilities",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The database's monitoring layers.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The database's monitoring layers.",
                                            "$ref": "#/components/schemas/DatabasesCapabilitiesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ]
            }
        },
        "/databases/{database_uuid}/failovers": {
            "get": {
                "operationId": "public.databases.failovers",
                "description": "Lists the failovers detected on a database, newest first, one page at a time, over an optional time window; without a window every failover is listed. A server is identified by its uuid only. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a database's failovers",
                "tags": [
                    "Databases"
                ],
                "parameters": [
                    {
                        "name": "database_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the database.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of items in a page, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the database's failovers.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the database's failovers.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the failover was recorded, to the second; the window and the order follow it.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "observed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the collector's snapshot that showed the failover was taken; null on a failover whose snapshot did not carry it.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "server_uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The uuid of the server whose collector reported the failover; null when the row has none."
                                                    }
                                                },
                                                "required": [
                                                    "at",
                                                    "observed_at",
                                                    "server_uuid"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "database.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/domains": {
            "get": {
                "operationId": "public.domains.list",
                "description": "Returns the organisation's domains, filtered by search text, status, health, registrar or tags and sorted by name, health, expiry dates or uptime. Each row summarises the domain's status, registration and certificate expiry, last DNS change and 7-day uptime. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List domains",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only domains whose name contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only domains with this status: `active`, `expired`, `pending` (no expiry scan yet) or `suspended` (switched off).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "active",
                                "expired",
                                "pending",
                                "suspended",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "health",
                        "in": "query",
                        "description": "Only domains with one of these health statuses: `unknown`, `healthy`, `warning` or `critical`. A list: repeat the parameter (`health=unknown&health=healthy`) or send one value (`health=unknown`); `health[]=unknown` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "unknown",
                                    "healthy",
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "registrar",
                        "in": "query",
                        "description": "Only domains whose registrar, as the latest expiry scan reports it, starts with this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only domains carrying at least one of these tags, as tag UUIDs. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `name`, `health`, `registration_expiry`, `ssl_expiry`, `dns_last_change` or `uptime`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "health",
                                "registration_expiry",
                                "ssl_expiry",
                                "dns_last_change",
                                "uptime",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's domains.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's domains.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The domain's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The domain name."
                                                    },
                                                    "domain_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`apex`, `subdomain` or `wildcard`."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `active`, `expired`, `pending` (no expiry scan yet) and `suspended` (switched off).",
                                                        "enum": [
                                                            "suspended",
                                                            "pending",
                                                            "expired",
                                                            "active"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether monitoring is switched on."
                                                    },
                                                    "registrar": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registrar of the latest expiry scan."
                                                    },
                                                    "expiry_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`YYYY-MM-DD`: the registration expiry of the latest expiry scan."
                                                    },
                                                    "ssl_status": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "One of `valid`, `warn` (30 days or fewer left), `expired`; null with no certificate scan."
                                                    },
                                                    "ssl_expiry_date": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the latest certificate expires; null with no certificate scan.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "dns_last_changed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the DNS records last changed; null when the last scan was the baseline or there is none.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "uptime_7d_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The last 7 days' reachability, one decimal; null with no data."
                                                    },
                                                    "scans_enabled": {
                                                        "type": "object",
                                                        "description": "Which scan types are switched on.",
                                                        "properties": {
                                                            "expiry": {
                                                                "type": "boolean",
                                                                "description": "Whether the registration expiry scan is on."
                                                            },
                                                            "dns": {
                                                                "type": "boolean",
                                                                "description": "Whether the DNS change scan is on."
                                                            },
                                                            "ssl": {
                                                                "type": "boolean",
                                                                "description": "Whether the SSL certificate expiry scan is on."
                                                            },
                                                            "whois": {
                                                                "type": "boolean",
                                                                "description": "Whether the WHOIS change scan is on."
                                                            },
                                                            "reachability": {
                                                                "type": "boolean",
                                                                "description": "Whether the reachability scan is on."
                                                            }
                                                        },
                                                        "required": [
                                                            "expiry",
                                                            "dns",
                                                            "ssl",
                                                            "whois",
                                                            "reachability"
                                                        ]
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The domain's page in the console."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "domain_type",
                                                    "status",
                                                    "health_status",
                                                    "active",
                                                    "registrar",
                                                    "expiry_date",
                                                    "ssl_status",
                                                    "ssl_expiry_date",
                                                    "dns_last_changed_at",
                                                    "uptime_7d_percent",
                                                    "scans_enabled",
                                                    "console_url"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.domains.create",
                "description": "Adds a domain to monitor under the organisation, with optional notes, monitoring switch, reachability endpoints, scan switches and tags; the hostname cannot be changed afterwards. Refuses a name already monitored by the organisation, an organisation over its domain limit, and an organisation that needs a payment method. Default alarms are created as in the console.",
                "summary": "Create a domain",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The hostname to monitor; an optional `*.` wildcard prefix is allowed. It cannot be changed afterwards.",
                                        "pattern": "^([*]\\.)?([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$",
                                        "maxLength": 255
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the domain; null or omitted stores none."
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether monitoring is switched on."
                                    },
                                    "checks": {
                                        "type": "object",
                                        "description": "Which reachability endpoints are checked.",
                                        "properties": {
                                            "http_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `http://www.` is checked for reachability. Omit to use the default."
                                            },
                                            "http_non_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `http://` on the bare domain is checked for reachability. Omit to use the default."
                                            },
                                            "https_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `https://www.` is checked for reachability. Omit to use the default."
                                            },
                                            "https_non_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `https://` on the bare domain is checked for reachability. Omit to use the default."
                                            }
                                        }
                                    },
                                    "scans_enabled": {
                                        "type": "object",
                                        "description": "Which scan types are switched on.",
                                        "properties": {
                                            "expiry": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the registration expiry scan is on. Omit to use the default."
                                            },
                                            "dns": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the DNS change scan is on. Omit to use the default."
                                            },
                                            "ssl": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the SSL certificate expiry scan is on. Omit to use the default."
                                            },
                                            "whois": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the WHOIS change scan is on. Omit to use the default."
                                            },
                                            "reachability": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the reachability scan is on; at least one reachability endpoint must stay checked while it is. Omit to use the default. A wildcard domain never runs it."
                                            }
                                        }
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the domain carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The domain that was created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The domain that was created.",
                                            "$ref": "#/components/schemas/DomainsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/domains/{domain_uuid}": {
            "get": {
                "operationId": "public.domains.view",
                "description": "Returns one domain with its latest completed expiry and SSL certificate scans, its newest completed DNS scan, when each scan type runs next, and its tags. Opening a domain may also add any default alarms the catalogue gained since the domain was created, as the console's page does.",
                "summary": "Get a domain",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The domain.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The domain.",
                                            "$ref": "#/components/schemas/DomainsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ]
            },
            "put": {
                "operationId": "public.domains.update",
                "description": "Changes a domain's monitoring switch, notes, reachability endpoints, scan switches and tags; the monitoring switch is required, and the other fields change only when sent. Alarm rules are not edited here. Answers the domain as the single-domain read does.",
                "summary": "Update a domain",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the domain; send null to clear them. Omit to keep the current notes."
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether monitoring is switched on."
                                    },
                                    "checks": {
                                        "type": "object",
                                        "description": "Which reachability endpoints are checked.",
                                        "properties": {
                                            "http_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `http://www.` is checked for reachability. Omit to keep the current value."
                                            },
                                            "http_non_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `http://` on the bare domain is checked for reachability. Omit to keep the current value."
                                            },
                                            "https_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `https://www.` is checked for reachability. Omit to keep the current value."
                                            },
                                            "https_non_www": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether `https://` on the bare domain is checked for reachability. Omit to keep the current value."
                                            }
                                        }
                                    },
                                    "scans_enabled": {
                                        "type": "object",
                                        "description": "Which scan types are switched on.",
                                        "properties": {
                                            "expiry": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the registration expiry scan is on. Omit to keep the current value."
                                            },
                                            "dns": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the DNS change scan is on. Omit to keep the current value."
                                            },
                                            "ssl": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the SSL certificate expiry scan is on. Omit to keep the current value."
                                            },
                                            "whois": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the WHOIS change scan is on. Omit to keep the current value."
                                            },
                                            "reachability": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "Whether the reachability scan is on; at least one reachability endpoint must stay checked while it is. Omit to keep the current value. A wildcard domain never runs it."
                                            }
                                        }
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the domain carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "active"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The domain after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The domain after the update.",
                                            "$ref": "#/components/schemas/DomainsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.domains.delete",
                "description": "Deletes the domain and stops monitoring it.",
                "summary": "Delete a domain",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The domain was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/domains/{domain_uuid}/scans": {
            "get": {
                "operationId": "public.domains.scans",
                "description": "Returns the domain's completed scans of one type (`dns`, `expiry` or `ssl`), newest first. Only the newest 20 completed scans of the type are available. Each row has the scan's common fields and those of its type. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a domain's scans",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "description": "The scan type to list: `dns`, `expiry` or `ssl`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dns",
                                "expiry",
                                "ssl"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the domain's completed scans of the requested type.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the domain's completed scans of the requested type.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The scan's uuid."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "The scan's state: `queued`, `running`, `completed`, `failed` or `timeout`."
                                                    },
                                                    "outcome": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The scanner's verdict on a completed scan: `data_found`, `no_data`, `target_not_found`, `blocked` or `lookup_unavailable`; null when the scan did not get that far."
                                                    },
                                                    "completed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the scan completed; null while it has not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "execution_time_ms": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How long the scan took, in milliseconds; null when it did not complete."
                                                    },
                                                    "error_message": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The error that ended a failed scan; null otherwise."
                                                    },
                                                    "has_changes": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the scan found a change against the previous one; null when the scan has not completed or its outcome kept it out of change detection."
                                                    },
                                                    "records": {
                                                        "type": "object",
                                                        "description": "The DNS records the scan found, by record type.",
                                                        "properties": {
                                                            "a": {
                                                                "type": "array",
                                                                "description": "The A records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "aaaa": {
                                                                "type": "array",
                                                                "description": "The AAAA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "mx": {
                                                                "type": "array",
                                                                "description": "The MX records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "txt": {
                                                                "type": "array",
                                                                "description": "The TXT records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "cname": {
                                                                "type": "array",
                                                                "description": "The CNAME records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "ns": {
                                                                "type": "array",
                                                                "description": "The NS records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "soa": {
                                                                "type": "array",
                                                                "description": "The SOA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "caa": {
                                                                "type": "array",
                                                                "description": "The CAA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "a",
                                                            "aaaa",
                                                            "mx",
                                                            "txt",
                                                            "cname",
                                                            "ns",
                                                            "soa",
                                                            "caa"
                                                        ]
                                                    },
                                                    "registrar": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registrar of the domain; null when the registry does not publish it."
                                                    },
                                                    "registration_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registration date as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "expiry_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registration expiry date as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "updated_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The date the registration was last updated, as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "days_until_expiry": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Whole days left until the expiry; negative once expired, null when unknown."
                                                    },
                                                    "is_expired": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the registration or the certificate has expired; null when unknown."
                                                    },
                                                    "nameservers": {
                                                        "type": "array",
                                                        "description": "The domain's name servers, one per item.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "status_codes": {
                                                        "type": "array",
                                                        "description": "The registry status codes of the domain, one per item.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "common_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The common name of the certificate; null when it has none."
                                                    },
                                                    "issuer_cn": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The common name of the certificate's issuer; null when unknown."
                                                    },
                                                    "issuer_org": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The organisation of the certificate's issuer; null when unknown."
                                                    },
                                                    "valid_from": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the certificate becomes valid; null when unknown.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "valid_until": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the certificate stops being valid; null when unknown.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "is_self_signed": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the certificate is self-signed; null when unknown."
                                                    },
                                                    "chain_valid": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the certificate chain validates; null when unknown."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "status",
                                                    "outcome",
                                                    "completed_at",
                                                    "execution_time_ms",
                                                    "error_message"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/domains/{domain_uuid}/changes": {
            "get": {
                "operationId": "public.domains.changes",
                "description": "Returns the scans of one type (`dns`, `expiry` or `ssl`) that changed something, newest first. Only the newest 20 changed scans of the type are available. Each row maps the changed fields to their old and new values; the first scan is a baseline. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a domain's changes",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "description": "The scan type to list: `dns`, `expiry` or `ssl`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dns",
                                "expiry",
                                "ssl"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the domain's scans of the requested type that changed something.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the domain's scans of the requested type that changed something.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The uuid of the scan that changed something."
                                                    },
                                                    "completed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the scan completed; null when it has not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "is_baseline": {
                                                        "type": "boolean",
                                                        "description": "Whether this is the first scan, or one whose previous scan was pruned, so nothing was compared."
                                                    },
                                                    "changes": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Each changed field mapped to its old and new value; null when there is nothing to show.",
                                                        "additionalProperties": {
                                                            "type": "object",
                                                            "properties": {
                                                                "old": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "The value before the change, as stored text; null for a baseline scan or a field that had no value."
                                                                },
                                                                "new": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "The value after the change, as stored text; null when the field no longer has a value."
                                                                }
                                                            },
                                                            "required": [
                                                                "old",
                                                                "new"
                                                            ]
                                                        }
                                                    },
                                                    "has_changes": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the scan found a change against the previous one; null when the scan has not completed or its outcome kept it out of change detection."
                                                    },
                                                    "records": {
                                                        "type": "object",
                                                        "description": "The DNS records the scan found, by record type.",
                                                        "properties": {
                                                            "a": {
                                                                "type": "array",
                                                                "description": "The A records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "aaaa": {
                                                                "type": "array",
                                                                "description": "The AAAA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "mx": {
                                                                "type": "array",
                                                                "description": "The MX records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "txt": {
                                                                "type": "array",
                                                                "description": "The TXT records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "cname": {
                                                                "type": "array",
                                                                "description": "The CNAME records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "ns": {
                                                                "type": "array",
                                                                "description": "The NS records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "soa": {
                                                                "type": "array",
                                                                "description": "The SOA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "caa": {
                                                                "type": "array",
                                                                "description": "The CAA records, as text lines.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "a",
                                                            "aaaa",
                                                            "mx",
                                                            "txt",
                                                            "cname",
                                                            "ns",
                                                            "soa",
                                                            "caa"
                                                        ]
                                                    },
                                                    "registrar": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registrar of the domain; null when the registry does not publish it."
                                                    },
                                                    "registration_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registration date as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "expiry_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The registration expiry date as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "updated_date": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The date the registration was last updated, as `YYYY-MM-DD`; null when the registry does not publish it."
                                                    },
                                                    "days_until_expiry": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Whole days left until the expiry; negative once expired, null when unknown."
                                                    },
                                                    "is_expired": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the registration or the certificate has expired; null when unknown."
                                                    },
                                                    "nameservers": {
                                                        "type": "array",
                                                        "description": "The domain's name servers, one per item.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "status_codes": {
                                                        "type": "array",
                                                        "description": "The registry status codes of the domain, one per item.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "common_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The common name of the certificate; null when it has none."
                                                    },
                                                    "issuer_cn": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The common name of the certificate's issuer; null when unknown."
                                                    },
                                                    "issuer_org": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The organisation of the certificate's issuer; null when unknown."
                                                    },
                                                    "valid_from": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the certificate becomes valid; null when unknown.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "valid_until": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the certificate stops being valid; null when unknown.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "is_self_signed": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the certificate is self-signed; null when unknown."
                                                    },
                                                    "chain_valid": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the certificate chain validates; null when unknown."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "completed_at",
                                                    "is_baseline",
                                                    "changes"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/domains/{domain_uuid}/timeline": {
            "get": {
                "operationId": "public.domains.timeline",
                "description": "Returns why a domain failed or changed, newest first, one cursor page at a time, kept as long as its uptime (ten years): an endpoint gone down with the reason it gave and the HTTP status that came back, an endpoint that is still down, a recovery with how long it was down, a scan of any type that failed or recovered, and every change the DNS, SSL, registration and WHOIS scans flagged, with what changed. Failures are recorded from the date in `recorded_from`; changes go back to the domain's first scan. WHOIS contact details are never kept: a contact change says only that it changed. Send no window for the whole history, `period` for a relative window, or `from` and `to` for a pinned one.",
                "summary": "List a domain's timeline",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "description": "Only events of these kinds: `domain_endpoint_down`, `domain_endpoint_still_down`, `domain_endpoint_up`, `domain_scan_failed`, `domain_scan_recovered` or `domain_change`. Repeat the parameter (`kind[]=domain_endpoint_down&kind[]=domain_endpoint_up`) for several. A list: repeat the parameter (`kind=domain_endpoint_down&kind=domain_endpoint_still_down`) or send one value (`kind=domain_endpoint_down`); `kind[]=domain_endpoint_down` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "domain_endpoint_down",
                                    "domain_endpoint_still_down",
                                    "domain_endpoint_up",
                                    "domain_scan_failed",
                                    "domain_scan_recovered",
                                    "domain_change"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "maxItems": 6
                        },
                        "explode": true
                    },
                    {
                        "name": "endpoint",
                        "in": "query",
                        "description": "Only events of this endpoint: `http_www`, `http_non_www`, `https_www` or `https_non_www`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "http_www",
                                "http_non_www",
                                "https_www",
                                "https_non_www",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "The `next_cursor` of the previous page; omit it for the first page.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 512
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many events one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the domain's timeline.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the domain's timeline.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "event_uuid": {
                                                        "type": "string",
                                                        "description": "The event's uuid."
                                                    },
                                                    "kind": {
                                                        "type": "string",
                                                        "description": "One of `domain_endpoint_down` (an endpoint failed its scans in a row), `domain_endpoint_still_down` (it is still down, written at most hourly), `domain_endpoint_up` (it answered again), `domain_scan_failed` and `domain_scan_recovered` (a scan of any type failed, and passed again), and `domain_change` (a scan flagged a change)."
                                                    },
                                                    "at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds: when the scan that caused the event ran.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "scan_type": {
                                                        "type": "string",
                                                        "description": "The scan the event came from: `domain_reachability`, `domain_dns`, `domain_ssl`, `domain_expiry` or `domain_information`."
                                                    },
                                                    "scan_uuid": {
                                                        "type": "string",
                                                        "description": "The uuid of that scan."
                                                    },
                                                    "endpoint": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The endpoint of an endpoint event: `http_www`, `http_non_www`, `https_www` or `https_non_www`; null for the others."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why an endpoint went down (`dns`, `blocked_destination`, `refused`, `timeout`, `tls_expired`, `tls_hostname`, `tls_untrusted` or `no_reply`) or a scan failed (`scanner_failed`, `reaped_running`, `reaped_queued`, `blocked` or `lookup_unavailable`); null otherwise."
                                                    },
                                                    "http_status": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The HTTP status the endpoint answered with, when one came back; null otherwise."
                                                    },
                                                    "response_ms": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How long a recovered endpoint took to answer, in milliseconds; null otherwise."
                                                    },
                                                    "since": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the failure began; null for a change.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "down_for_seconds": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How long the endpoint was down, in seconds, on a recovery; null otherwise."
                                                    },
                                                    "failed_for_seconds": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How long the scan type kept failing, in seconds, on a scan recovery; null otherwise."
                                                    },
                                                    "status": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The failed scan's status, `failed` or `completed`; null for other events."
                                                    },
                                                    "outcome": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The failed scan's outcome, such as `blocked` or `lookup_unavailable`; null otherwise."
                                                    },
                                                    "flags": {
                                                        "type": "array",
                                                        "description": "On a change, the names of the change flags the scan set; an empty list otherwise.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "summary": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "On a change, what changed: `changes` maps each field to its `old` and `new` values (lists of text, at most 20 values of 256 characters in all, WHOIS contacts reduced to one line), and `truncated` says a cap cut something; null otherwise.",
                                                        "additionalProperties": {}
                                                    },
                                                    "baseline": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "On a change, true when it is the domain's first scan of that type, which establishes the baseline; null otherwise."
                                                    }
                                                },
                                                "required": [
                                                    "event_uuid",
                                                    "kind",
                                                    "at",
                                                    "scan_type",
                                                    "scan_uuid",
                                                    "endpoint",
                                                    "reason",
                                                    "http_status",
                                                    "response_ms",
                                                    "since",
                                                    "down_for_seconds",
                                                    "failed_for_seconds",
                                                    "status",
                                                    "outcome",
                                                    "flags",
                                                    "summary",
                                                    "baseline"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The cursor for the next page; null on the last page."
                                        },
                                        "total": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "Always null: the timeline is not counted."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "The date failures are recorded from.",
                                            "properties": {
                                                "recorded_from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Epoch milliseconds: the date this organisation's failures are recorded from; null when it has none yet. Failures before it are not in the timeline.",
                                                    "x-wt15-instant": true
                                                }
                                            },
                                            "required": [
                                                "recorded_from"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/domains/{domain_uuid}/uptime": {
            "get": {
                "operationId": "public.domains.uptime",
                "description": "Returns the reachability uptime of each configured endpoint over the last 24 hours, 7 days and 30 days, weighted by the number of checks in each hour. With `include_buckets=true` it also returns the hourly buckets the figures come from, oldest first.",
                "summary": "Get a domain's uptime",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "include_buckets",
                        "in": "query",
                        "description": "Absent or false answers the figures only; true adds the hourly buckets they come from (`true`, `false`, `1` or `0`).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The domain's uptime figures per endpoint, and the hourly buckets when asked for.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The domain's uptime figures per endpoint, and the hourly buckets when asked for.",
                                            "$ref": "#/components/schemas/DomainsUptimeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ]
            }
        },
        "/domains/{domain_uuid}/scans/{scan_type}": {
            "post": {
                "operationId": "public.domains.runScan",
                "description": "Queues a scan of one type (`dns`, `expiry`, `information` or `ssl`) on the domain now and returns a receipt; follow it with `GET /v1/scans/{scan_uuid}` until it ends. A scan of the same type and domain is refused during the cooldown, with the seconds left.",
                "summary": "Run a domain scan",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "scan_type",
                        "in": "path",
                        "required": true,
                        "description": "The scan to queue: `dns`, `expiry`, `information` or `ssl`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dns",
                                "expiry",
                                "information",
                                "ssl"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The scan was queued; the receipt names it.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The scan was queued; the receipt names it.",
                                            "$ref": "#/components/schemas/DomainsRunScanResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/domains/{domain_uuid}/verification": {
            "post": {
                "operationId": "public.domains.startVerification",
                "description": "Starts the ownership verification of the domain's apex. It records the key's owner as the authorising user, with the time and the Terms version, and answers the TXT record to publish. `authorised` must be true, confirming control of the domain.",
                "summary": "Start domain verification",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "authorised": {
                                        "description": "Must be true: confirms that the organisation controls the domain and authorises WatchTower15 to scan it, as the Terms require.",
                                        "enum": [
                                            "yes",
                                            "on",
                                            "1",
                                            1,
                                            "true",
                                            true
                                        ],
                                        "x-wt15-open-enum": true
                                    }
                                },
                                "required": [
                                    "authorised"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The apex's verification state and the TXT record to publish.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The apex's verification state and the TXT record to publish.",
                                            "$ref": "#/components/schemas/DomainsStartVerificationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view",
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/domains/{domain_uuid}/verification/check": {
            "post": {
                "operationId": "public.domains.checkVerification",
                "description": "Looks up the verification TXT record of the domain's apex now and answers the verification state with the result of the lookup. Within the cooldown after a lookup, the stored result is returned instead of a new lookup.",
                "summary": "Check domain verification",
                "tags": [
                    "Domains"
                ],
                "parameters": [
                    {
                        "name": "domain_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The apex's verification state and the result of the lookup.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The apex's verification state and the result of the lookup.",
                                            "$ref": "#/components/schemas/DomainsCheckVerificationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view",
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/health/summary": {
            "get": {
                "operationId": "public.health.summary",
                "description": "Returns the counts the console's dashboard opens with: active, warning and critical resources for servers, domains, services and log sources, and how many domain and service scans ran recently. A section the key may not view comes back as `available: false` and nothing else, so the call never answers 403.",
                "summary": "Get the health summary",
                "tags": [
                    "Health"
                ],
                "responses": {
                    "200": {
                        "description": "The health counts, one section per resource type.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The health counts, one section per resource type.",
                                            "$ref": "#/components/schemas/HealthSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": []
            }
        },
        "/health/map": {
            "get": {
                "operationId": "public.health.map",
                "description": "Returns the console's heat map: for each requested resource type, the counts per health bucket and the cells themselves, worst first. A type the key may not view comes back as `available: false` and nothing else; incidents on a cell are left empty unless the key may also view incidents.",
                "summary": "Get the health map",
                "tags": [
                    "Health"
                ],
                "parameters": [
                    {
                        "name": "types",
                        "in": "query",
                        "description": "The resource types to include: any of `servers`, `domains`, `services`, `log_sources`, `custom_metrics` and `databases`; with none, all of them. A list: repeat the parameter (`types=servers&types=domains`) or send one value (`types=servers`); `types[]=servers` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "servers",
                                    "domains",
                                    "services",
                                    "log_sources",
                                    "custom_metrics",
                                    "databases"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "uniqueItems": true
                        },
                        "explode": true
                    },
                    {
                        "name": "include_healthy",
                        "in": "query",
                        "description": "Whether healthy resources are returned as rows (`true` or `false`); they are left out by default. They still count in `counts`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "How many rows to return for each type, from 1 to 100; 50 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The health map, one section per resource type.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The health map, one section per resource type.",
                                            "$ref": "#/components/schemas/HealthMapResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": []
            }
        },
        "/incidents": {
            "get": {
                "operationId": "public.incidents.list",
                "description": "Lists the organisation's incidents by when they were triggered, newest first unless `direction` is `asc`. Filter by `status`, by one resource with `entity_type` and `entity_uuid`, by metric source with `metric_source_uuids` (the incidents of those sources' custom metrics), and by a time window; an incident is listed when it was open at any point inside the window. With no window, every incident is listed. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List incidents",
                "tags": [
                    "Incidents"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only incidents in these statuses: any of `open`, `acknowledged` and `resolved`; with none, every status. A bare value is read as a one-item list. A list: repeat the parameter (`status=open&status=acknowledged`) or send one value (`status=open`); `status[]=open` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "open",
                                    "acknowledged",
                                    "resolved"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "entity_type",
                        "in": "query",
                        "description": "The type of resource to list incidents of; required with `entity_uuid`. Alone, the incidents of every resource of that type. `server` includes each server's volumes, ports and systemd units, with or without `entity_uuid` (on `GET /v1/organisation/alarms`, `entity_type=server` is the servers' own alarms only).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "domain",
                                "service",
                                "server",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "server_port",
                                "server_system_service",
                                "server_volume",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "entity_uuid",
                        "in": "query",
                        "description": "The uuid of the resource to list incidents of; it needs its `entity_type`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The order by trigger time: `desc` (the default) is the newest first, `asc` the oldest first.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "metric_source_uuids",
                        "in": "query",
                        "description": "Only the incidents of these metric sources' custom metrics, by source uuid, at most 100; a single uuid may be sent bare. A list: repeat the parameter (`metric_source_uuids=<uuid>&metric_source_uuids=<uuid>`) or send one value (`metric_source_uuids=<uuid>`); `metric_source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            },
                            "maxItems": 100
                        },
                        "explode": true
                    },
                    {
                        "name": "rule_slug",
                        "in": "query",
                        "description": "Only incidents of alarms on these catalogue rules, by `rule_slug`; every rule when omitted. A bare value is read as a one-item list. An incident of an alarm that was since deleted is still listed. A list: repeat the parameter (`rule_slug=<value>&rule_slug=<value>`) or send one value (`rule_slug=<value>`); `rule_slug[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 128
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "description": "Only incidents of these severities: `warning` or `critical`; every severity when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`severity=warning&severity=critical`) or send one value (`severity=warning`); `severity[]=warning` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many incidents to return in one page, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's incidents.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's incidents.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The incident's uuid."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `open`, `acknowledged`, `resolved`."
                                                    },
                                                    "severity": {
                                                        "type": "string",
                                                        "description": "One of `warning`, `critical`."
                                                    },
                                                    "message": {
                                                        "type": "string",
                                                        "description": "The incident's message, as the alarm worded it when it fired."
                                                    },
                                                    "rule_name": {
                                                        "type": "string",
                                                        "description": "The alarm's own name, which tells apart two alarms on one metric."
                                                    },
                                                    "rule_slug": {
                                                        "description": "The slug of the catalogue rule behind the alarm; null once the alarm is gone."
                                                    },
                                                    "alarm_uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The uuid of the alarm that raised the incident; null when the alarm no longer resolves. The alarm may since have been deleted: `GET /v1/alarms/{alarm_uuid}` then answers 404."
                                                    },
                                                    "metric_name": {
                                                        "description": "The catalogue rule's name; null once the alarm is gone."
                                                    },
                                                    "scan_type": {
                                                        "description": "The kind of scan that raises the incident, for a rule that is raised by scans; null otherwise."
                                                    },
                                                    "entity": {
                                                        "type": "object",
                                                        "description": "The resource the incident is about, of any type that has alarms.",
                                                        "properties": {
                                                            "type": {
                                                                "description": "The type of the resource, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "description": "The uuid of the resource."
                                                            },
                                                            "name": {
                                                                "description": "The name of the resource."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "parent_entity": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server of a volume, port or unit; null for every other entity.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the server, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the server."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "server": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server the incident is about: the entity itself for a server incident, its server for a volume, port or unit; null for every other type, which has no server.",
                                                        "properties": {
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the server."
                                                            }
                                                        },
                                                        "required": [
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "triggered_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was triggered.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was acknowledged; null while it has not been.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged_by": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Who acknowledged the incident; null while it has not been.",
                                                        "properties": {
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The person's display name; null when it is not known."
                                                            }
                                                        },
                                                        "required": [
                                                            "name"
                                                        ]
                                                    },
                                                    "resolved_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was resolved; null while it is open.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "resolved_by": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Who resolved the incident; null while it is open or when the system resolved it.",
                                                        "properties": {
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The person's display name; null when it is not known."
                                                            }
                                                        },
                                                        "required": [
                                                            "name"
                                                        ]
                                                    },
                                                    "resolved_by_system": {
                                                        "type": "boolean",
                                                        "description": "Whether the system resolved it (the condition cleared), not a person."
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The address of the incident's page in the WatchTower15 console."
                                                    },
                                                    "notifications": {
                                                        "type": "array",
                                                        "description": "The notifications sent for the incident, one for each channel.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "channel": {
                                                                    "type": "string",
                                                                    "description": "The channel it went out on, such as `email` or `slack`: an open set."
                                                                },
                                                                "status": {
                                                                    "type": "string",
                                                                    "description": "How it went: `sent`, `failed`, `skipped` or `queued`, as the notifier records it; an open set."
                                                                },
                                                                "sent_at": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ],
                                                                    "description": "Epoch milliseconds. When the notification was sent; null when it was not sent.",
                                                                    "x-wt15-instant": true
                                                                }
                                                            },
                                                            "required": [
                                                                "channel",
                                                                "status",
                                                                "sent_at"
                                                            ]
                                                        }
                                                    },
                                                    "unit_state": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The state of the systemd unit when the incident opened, so what it was doing is known after it recovers; null for an incident on anything else and for one opened before this was recorded.",
                                                        "properties": {
                                                            "active_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `ActiveState` of the unit when the incident opened."
                                                            },
                                                            "sub_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `SubState` of the unit when the incident opened."
                                                            },
                                                            "result": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `Result` of the unit when the incident opened; null when it was not reported (the unit was active or had not run)."
                                                            },
                                                            "exit_code": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The unit's exit status when the incident opened (systemd's `ExecMainStatus`, or the signal number when `result` is `signal` or `core-dump`); null when not reported."
                                                            },
                                                            "state_changed_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the unit's state last changed, as it stood when the incident opened; null when not known.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "active_entered_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the unit last entered `active`, as it stood when the incident opened; null when it has not since it was loaded.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "inventory_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the agent reported the inventory this state was read from, at most one system-info interval before the incident opened.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "active_state",
                                                            "sub_state",
                                                            "result",
                                                            "exit_code",
                                                            "state_changed_at",
                                                            "active_entered_at",
                                                            "inventory_at"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "status",
                                                    "severity",
                                                    "message",
                                                    "rule_name",
                                                    "rule_slug",
                                                    "alarm_uuid",
                                                    "metric_name",
                                                    "scan_type",
                                                    "entity",
                                                    "parent_entity",
                                                    "server",
                                                    "triggered_at",
                                                    "acknowledged_at",
                                                    "acknowledged_by",
                                                    "resolved_at",
                                                    "resolved_by",
                                                    "resolved_by_system",
                                                    "console_url",
                                                    "notifications",
                                                    "unit_state"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "incidents.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/incidents/{incident_uuid}": {
            "get": {
                "operationId": "public.incidents.view",
                "description": "Returns one incident with what changed when it fired, the alarm it belongs to, the scans that raised and cleared it, and the notifications sent for it.",
                "summary": "Get an incident",
                "tags": [
                    "Incidents"
                ],
                "parameters": [
                    {
                        "name": "incident_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the incident.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The incident.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The incident.",
                                            "$ref": "#/components/schemas/IncidentsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "incidents.view"
                ]
            }
        },
        "/incidents/{incident_uuid}/acknowledge": {
            "post": {
                "operationId": "public.incidents.acknowledge",
                "description": "Acknowledges an open incident, as the console's Acknowledge does, and records the key's user as who acknowledged it. The call is safe to repeat: `changed` says whether it changed anything, and is false for an incident that was no longer open.",
                "summary": "Acknowledge an incident",
                "tags": [
                    "Incidents"
                ],
                "parameters": [
                    {
                        "name": "incident_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the incident.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The incident after the call, with whether the call changed it.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The incident after the call, with whether the call changed it.",
                                            "$ref": "#/components/schemas/IncidentsAcknowledgeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "incidents.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/incidents/{incident_uuid}/resolve": {
            "post": {
                "operationId": "public.incidents.resolve",
                "description": "Resolves an incident by hand, as the console's Resolve does, and records the key's user as who resolved it. `changed` says whether the call changed anything, and `resolution` says how WatchTower15 will treat the condition afterwards. Repeating the call on a resolved incident changes nothing.",
                "summary": "Resolve an incident",
                "tags": [
                    "Incidents"
                ],
                "parameters": [
                    {
                        "name": "incident_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the incident.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The incident after the call, with whether the call changed it and how the condition is treated.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The incident after the call, with whether the call changed it and how the condition is treated.",
                                            "$ref": "#/components/schemas/IncidentsResolveResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "incidents.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/log-sources": {
            "get": {
                "operationId": "public.logSources.list",
                "description": "Returns the organisation's log sources. A source's token is never returned, only whether one is set and its last four characters. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List log sources",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's log sources.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's log sources.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The source's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The source's name."
                                                    },
                                                    "slug": {
                                                        "type": "string",
                                                        "description": "The source's slug, its identifier within the organisation."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The source's description; null for none."
                                                    },
                                                    "source_type": {
                                                        "type": "string",
                                                        "description": "The source's type: `custom_source`; an open set."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "last_received_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a line last arrived; null if none ever did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the source is switched on."
                                                    },
                                                    "has_ingest_token": {
                                                        "type": "boolean",
                                                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no lines."
                                                    },
                                                    "ingest_token_last_four": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The last four characters of the token; never the token."
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The source's own tags.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "slug",
                                                    "description",
                                                    "source_type",
                                                    "health_status",
                                                    "last_received_at",
                                                    "active",
                                                    "has_ingest_token",
                                                    "ingest_token_last_four",
                                                    "tags"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.logSources.create",
                "description": "Creates a log source with no ingest token; mint one with the rotate-token operation. The slug defaults to a slug of the name and cannot be changed afterwards. The call is refused when the plan or the organisation's log source limit does not allow it.",
                "summary": "Create a log source",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The source's display name.",
                                        "maxLength": 255
                                    },
                                    "slug": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's slug, a lowercase identifier of letters, digits, `.`, `_` and `-` up to 100 characters; defaults to a slug of the name and cannot be changed afterwards.",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*$",
                                        "maxLength": 100
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the source, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "source_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's type: `custom_source`, the one type that can be created.",
                                        "enum": [
                                            "custom_source",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "silence_warning_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Minutes without a log line before a warning, from 1 to 10080 (one week); null for the platform default.",
                                        "minimum": 1,
                                        "maximum": 10080
                                    },
                                    "silence_critical_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Minutes without a log line before a critical alarm, from 1 to 10080 (one week); null for the platform default.",
                                        "minimum": 1,
                                        "maximum": 10080
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the source is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags to put on the source.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created log source.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created log source.",
                                            "$ref": "#/components/schemas/LogSourcesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/log-sources/{log_source_uuid}": {
            "get": {
                "operationId": "public.logSources.view",
                "description": "Returns one log source with its tags and silence thresholds. The token is never returned. Reading a source also adds any default alarm the platform has introduced since it was created, as opening it in the console does.",
                "summary": "Get a log source",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "log_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the log source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The log source.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The log source.",
                                            "$ref": "#/components/schemas/LogSourcesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.view"
                ]
            },
            "put": {
                "operationId": "public.logSources.update",
                "description": "Changes the fields sent: name, description, silence thresholds, whether it is switched on and tags. Switching a source on is refused when the plan does not allow it.",
                "summary": "Update a log source",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "log_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the log source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's display name.",
                                        "maxLength": 255
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the source, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "silence_warning_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Minutes without a log line before a warning, from 1 to 10080 (one week); null for the platform default.",
                                        "minimum": 1,
                                        "maximum": 10080
                                    },
                                    "silence_critical_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Minutes without a log line before a critical alarm, from 1 to 10080 (one week); null for the platform default.",
                                        "minimum": 1,
                                        "maximum": 10080
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the source is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags to put on the source.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The log source after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The log source after the update.",
                                            "$ref": "#/components/schemas/LogSourcesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.logSources.delete",
                "description": "Deletes the log source. The answer has no body.",
                "summary": "Delete a log source",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "log_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the log source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The log source was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/log-sources/{log_source_uuid}/rotate-token": {
            "post": {
                "operationId": "public.logSources.rotateToken",
                "description": "Mints a new ingest token for the source, replacing any earlier one. The token is returned once, in this answer; a replay under the same `Idempotency-Key` answers it as null, so a caller that lost it rotates again under a new key.",
                "summary": "Rotate a log source's token",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "log_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the log source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The new ingest token, shown once.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new ingest token, shown once.",
                                            "$ref": "#/components/schemas/LogSourcesRotateTokenResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/log-sources/{log_source_uuid}/revoke-token": {
            "post": {
                "operationId": "public.logSources.revokeToken",
                "description": "Revokes the source's ingest token, so the source accepts no lines until a new token is minted.",
                "summary": "Revoke a log source's token",
                "tags": [
                    "LogSources"
                ],
                "parameters": [
                    {
                        "name": "log_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the log source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The log source after its token was revoked.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The log source after its token was revoked.",
                                            "$ref": "#/components/schemas/LogSourcesRevokeTokenResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "log_sources.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/logs": {
            "get": {
                "operationId": "public.logs.search",
                "description": "Searches the organisation's server and log source lines, newest first, one page at a time. The window defaults to the last hour and reaches back to retention (30 days); a window that ends in the future ends now, and `meta.window` says the window read. Later pages keep the first page's window. Filter by source, level, stream, tag and text. Its `total` is always null: the lines are not counted.",
                "summary": "Search logs",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "source_uuids",
                        "in": "query",
                        "description": "Only lines from these servers or log sources, by uuid (a server's uuid gives that server's lines); a deleted one's lines stay searchable for the retention. A list: repeat the parameter (`source_uuids=<uuid>&source_uuids=<uuid>`) or send one value (`source_uuids=<uuid>`); `source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "levels",
                        "in": "query",
                        "description": "Only lines at one of these levels: `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert` or `emergency`; `unknown` selects the lines with no level (their `level` is null). A list: repeat the parameter (`levels=debug&levels=info`) or send one value (`levels=debug`); `levels[]=debug` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "debug",
                                    "info",
                                    "notice",
                                    "warning",
                                    "error",
                                    "critical",
                                    "alert",
                                    "emergency",
                                    "unknown"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "streams",
                        "in": "query",
                        "description": "Only lines in one of these streams. A list: repeat the parameter (`streams=<value>&streams=<value>`) or send one value (`streams=<value>`); `streams[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only lines whose text contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 500
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only lines from servers and log sources carrying any of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept is refused; one that ends in the future ends now, and the answer's window says so.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2000
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "The `next_cursor` of the previous page; omit it for the first page.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 512
                        }
                    },
                    {
                        "name": "exclude",
                        "in": "query",
                        "description": "Only lines that contain none of these texts: at most 5, each at most 200 characters. `search_case` applies to them; `search_mode` does not, they are always literal text. A list: repeat the parameter (`exclude=<value>&exclude=<value>`) or send one value (`exclude=<value>`); `exclude[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "maxItems": 5
                        },
                        "explode": true
                    },
                    {
                        "name": "search_mode",
                        "in": "query",
                        "description": "How `search` is read: `substring` (the default) or `regex`, an RE2 pattern of at most 500 characters with no lookahead, lookbehind, backreference, possessive quantifier or atomic group.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "substring",
                                "regex",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "search_case",
                        "in": "query",
                        "description": "Whether `search` and `exclude` ignore case: `sensitive` (the default) or `insensitive`. It sets the case of every include and exclude list too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "sensitive",
                                "insensitive",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "units",
                        "in": "query",
                        "description": "Only lines from these systemd units, exactly (`cloudflared.service`): at most 20. Null on lines that did not come from a journal, and on lines from an agent too old to report the unit. A list: repeat the parameter (`units=<value>&units=<value>`) or send one value (`units=<value>`); `units[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "identifiers",
                        "in": "query",
                        "description": "Only lines with these journal identifiers (`SYSLOG_IDENTIFIER`, such as `sshd`), exactly: at most 20. A list: repeat the parameter (`identifiers=<value>&identifiers=<value>`) or send one value (`identifiers=<value>`); `identifiers[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "http_statuses",
                        "in": "query",
                        "description": "Only lines whose parsed HTTP status is one of these: a code (`502`) or a class (`5xx`), at most 10. Only access log lines the backend parsed (a file entry with a `format`) have a status. A list: repeat the parameter (`http_statuses=<value>&http_statuses=<value>`) or send one value (`http_statuses=<value>`); `http_statuses[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "pattern": "^(?:[1-5][0-9]{2}|[1-5]xx)$"
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "description": "Only lines that contain each of these texts (or any of them, with `match=any`): literal text of 1 to 500 characters. A search holds at most 10 terms: `search`, `exclude` and every include and exclude list count together. A list: repeat the parameter (`include=<value>&include=<value>`) or send one value (`include=<value>`); `include[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_words",
                        "in": "query",
                        "description": "Only lines that contain each of these whole words: a word is bounded where its first and last characters are letters, digits or underscores (ASCII only, so `café` is bounded at `caf`). A list: repeat the parameter (`include_words=<value>&include_words=<value>`) or send one value (`include_words=<value>`); `include_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_regex",
                        "in": "query",
                        "description": "Only lines that match each of these RE2 regular expressions: no lookahead, lookbehind, backreference, possessive quantifier or atomic group. At most 5 regex terms, with `exclude_regex` and a `search` with `search_mode=regex`. Start one with `(?i)` to ignore case in that term alone. A list: repeat the parameter (`include_regex=<value>&include_regex=<value>`) or send one value (`include_regex=<value>`); `include_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_words",
                        "in": "query",
                        "description": "Only lines that contain none of these whole words. A list: repeat the parameter (`exclude_words=<value>&exclude_words=<value>`) or send one value (`exclude_words=<value>`); `exclude_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_regex",
                        "in": "query",
                        "description": "Only lines that match none of these RE2 regular expressions, as `include_regex` takes them. A list: repeat the parameter (`exclude_regex=<value>&exclude_regex=<value>`) or send one value (`exclude_regex=<value>`); `exclude_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "match",
                        "in": "query",
                        "description": "How the included terms combine: `all` (the default), a line matches every one, or `any`, at least one; the excluded terms always apply. Needs an included term (`search`, `include`, `include_words` or `include_regex`). `search_case` sets the case of every term.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "all",
                                "any",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of lines in a page, from 1 to 2,000; 100 when omitted. A page of long lines can be shorter: it stops once the lines' text passes 10 MB, and `next_cursor` continues after the last line returned.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2000
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the matching log lines.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the matching log lines.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The line's uuid, which `GET /v1/logs/context` takes to read the lines around it."
                                                    },
                                                    "logged_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the line was logged.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "time": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The exact time the line is stored at: RFC 3339 UTC with nine fraction digits, so lines inside one millisecond are ordered. Take it with `uuid` to read the line (`GET /v1/logs/{line_uuid}`)."
                                                    },
                                                    "console_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The console's page of this line (`/logs/<uuid>?at=<time>`); null for a line with no uuid."
                                                    },
                                                    "time_source": {
                                                        "type": "string",
                                                        "description": "Where `logged_at` and `time` come from: `read` (the moment the agent read the line from its file, up to its 15-second collection interval after the event: not the event's time), `parsed` or `late` (the time written in the line's text), `journal` (the journal's event time), `event_log` (the Windows event's own time), `sender` (the time a Log Source's sender gave) or `received` (the backend's receipt time, because the sender gave none that could be used)."
                                                    },
                                                    "received_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the backend received the batch the line came in; null for a line stored without it.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "level": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "One of `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`; null for a line with no level."
                                                    },
                                                    "stream": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The stream the line belongs to; null for a line with no stream."
                                                    },
                                                    "message": {
                                                        "type": "string",
                                                        "description": "The line's text."
                                                    },
                                                    "source": {
                                                        "type": "object",
                                                        "description": "Where the line came from.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "`server` or `log_source`."
                                                            },
                                                            "uuid": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The source's uuid."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The source's name; a deleted source reads as the console labels it."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The systemd unit that wrote the line (`cloudflared.service`); null for a line that did not come from a journal and for a line from an agent too old to report the unit."
                                                    },
                                                    "identifier": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The journal identifier (`SYSLOG_IDENTIFIER`, such as `sshd`); null as `unit` is."
                                                    },
                                                    "http": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The access line's parsed fields; null for a line the backend did not parse: only a server file entry with a `format` is.",
                                                        "properties": {
                                                            "status": {
                                                                "type": "integer",
                                                                "description": "The HTTP status code."
                                                            },
                                                            "method": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The request method; null when the request line could not be read."
                                                            },
                                                            "path": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The request path without its query string; null when the request line could not be read."
                                                            },
                                                            "upstream_status": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The upstream's status as nginx wrote it (`502, 502` when it tried twice); null when there was none, and for every format but `wt15_relay`."
                                                            },
                                                            "duration_ms": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "How long the request took, in milliseconds; null for the `nginx_combined` format."
                                                            }
                                                        },
                                                        "required": [
                                                            "status",
                                                            "method",
                                                            "path",
                                                            "upstream_status",
                                                            "duration_ms"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "logged_at",
                                                    "time",
                                                    "console_url",
                                                    "time_source",
                                                    "received_at",
                                                    "level",
                                                    "stream",
                                                    "message",
                                                    "source",
                                                    "unit",
                                                    "identifier",
                                                    "http"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The cursor of the next page, sent back as `cursor`; null on the last page."
                                        },
                                        "total": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "Always null: log search is not counted."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Details of the search.",
                                            "properties": {
                                                "window": {
                                                    "type": "object",
                                                    "description": "The time window the lines were read in; a later page reports the first page's; a window that ended in the future ends now.",
                                                    "properties": {
                                                        "from": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The start of the window.",
                                                            "x-wt15-instant": true
                                                        },
                                                        "to": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The end of the window: now when the window asked ended in the future.",
                                                            "x-wt15-instant": true
                                                        }
                                                    },
                                                    "required": [
                                                        "from",
                                                        "to"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "window"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/logs/histogram": {
            "get": {
                "operationId": "public.logs.histogram",
                "description": "Counts the lines the search filters match per time bucket, split by level. The window defaults to the last day and reaches back to retention (30 days); a window that ends in the future ends now, and `window` says the window read. With no `step` the window is split into 48 buckets; a `step` that gives more than 1,440 buckets is refused. Only buckets that hold a line are returned.",
                "summary": "Count logs over time",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "source_uuids",
                        "in": "query",
                        "description": "Only lines from these servers or log sources, by uuid (a server's uuid gives that server's lines); a deleted one's lines stay searchable for the retention. A list: repeat the parameter (`source_uuids=<uuid>&source_uuids=<uuid>`) or send one value (`source_uuids=<uuid>`); `source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "levels",
                        "in": "query",
                        "description": "Only lines at one of these levels: `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert` or `emergency`; `unknown` selects the lines with no level (their `level` is null). A list: repeat the parameter (`levels=debug&levels=info`) or send one value (`levels=debug`); `levels[]=debug` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "debug",
                                    "info",
                                    "notice",
                                    "warning",
                                    "error",
                                    "critical",
                                    "alert",
                                    "emergency",
                                    "unknown"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "streams",
                        "in": "query",
                        "description": "Only lines in one of these streams. A list: repeat the parameter (`streams=<value>&streams=<value>`) or send one value (`streams=<value>`); `streams[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only lines whose text contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 500
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only lines from servers and log sources carrying any of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept is refused; one that ends in the future ends now, and the answer's window says so.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "step",
                        "in": "query",
                        "description": "The width of a bucket as a whole number and a unit, `s`, `m`, `h` or `d`, such as `5m`; at most 1,440 buckets for the window, and the window divided by 48 when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^[1-9][0-9]{0,5}[smhd]$"
                        }
                    },
                    {
                        "name": "exclude",
                        "in": "query",
                        "description": "Only lines that contain none of these texts: at most 5, each at most 200 characters. `search_case` applies to them; `search_mode` does not, they are always literal text. A list: repeat the parameter (`exclude=<value>&exclude=<value>`) or send one value (`exclude=<value>`); `exclude[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "maxItems": 5
                        },
                        "explode": true
                    },
                    {
                        "name": "search_mode",
                        "in": "query",
                        "description": "How `search` is read: `substring` (the default) or `regex`, an RE2 pattern of at most 500 characters with no lookahead, lookbehind, backreference, possessive quantifier or atomic group.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "substring",
                                "regex",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "search_case",
                        "in": "query",
                        "description": "Whether `search` and `exclude` ignore case: `sensitive` (the default) or `insensitive`. It sets the case of every include and exclude list too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "sensitive",
                                "insensitive",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "units",
                        "in": "query",
                        "description": "Only lines from these systemd units, exactly (`cloudflared.service`): at most 20. Null on lines that did not come from a journal, and on lines from an agent too old to report the unit. A list: repeat the parameter (`units=<value>&units=<value>`) or send one value (`units=<value>`); `units[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "identifiers",
                        "in": "query",
                        "description": "Only lines with these journal identifiers (`SYSLOG_IDENTIFIER`, such as `sshd`), exactly: at most 20. A list: repeat the parameter (`identifiers=<value>&identifiers=<value>`) or send one value (`identifiers=<value>`); `identifiers[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "http_statuses",
                        "in": "query",
                        "description": "Only lines whose parsed HTTP status is one of these: a code (`502`) or a class (`5xx`), at most 10. Only access log lines the backend parsed (a file entry with a `format`) have a status. A list: repeat the parameter (`http_statuses=<value>&http_statuses=<value>`) or send one value (`http_statuses=<value>`); `http_statuses[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "pattern": "^(?:[1-5][0-9]{2}|[1-5]xx)$"
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "description": "Only lines that contain each of these texts (or any of them, with `match=any`): literal text of 1 to 500 characters. A search holds at most 10 terms: `search`, `exclude` and every include and exclude list count together. A list: repeat the parameter (`include=<value>&include=<value>`) or send one value (`include=<value>`); `include[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_words",
                        "in": "query",
                        "description": "Only lines that contain each of these whole words: a word is bounded where its first and last characters are letters, digits or underscores (ASCII only, so `café` is bounded at `caf`). A list: repeat the parameter (`include_words=<value>&include_words=<value>`) or send one value (`include_words=<value>`); `include_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_regex",
                        "in": "query",
                        "description": "Only lines that match each of these RE2 regular expressions: no lookahead, lookbehind, backreference, possessive quantifier or atomic group. At most 5 regex terms, with `exclude_regex` and a `search` with `search_mode=regex`. Start one with `(?i)` to ignore case in that term alone. A list: repeat the parameter (`include_regex=<value>&include_regex=<value>`) or send one value (`include_regex=<value>`); `include_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_words",
                        "in": "query",
                        "description": "Only lines that contain none of these whole words. A list: repeat the parameter (`exclude_words=<value>&exclude_words=<value>`) or send one value (`exclude_words=<value>`); `exclude_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_regex",
                        "in": "query",
                        "description": "Only lines that match none of these RE2 regular expressions, as `include_regex` takes them. A list: repeat the parameter (`exclude_regex=<value>&exclude_regex=<value>`) or send one value (`exclude_regex=<value>`); `exclude_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "match",
                        "in": "query",
                        "description": "How the included terms combine: `all` (the default), a line matches every one, or `any`, at least one; the excluded terms always apply. Needs an included term (`search`, `include`, `include_words` or `include_regex`). `search_case` sets the case of every term.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "all",
                                "any",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The matching lines counted per time bucket.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The matching lines counted per time bucket.",
                                            "$ref": "#/components/schemas/LogsHistogramResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ]
            }
        },
        "/logs/facets": {
            "get": {
                "operationId": "public.logs.facets",
                "description": "Counts the lines the search filters match by level and by stream, most first. The window defaults to the last hour and reaches back to retention (30 days); a window that ends in the future ends now, and `window` says the window read. Lines with no level are not counted in the levels but in `unlevelled_count` (select them with `levels[]=unknown`), and the stream list ignores the stream filter so every candidate stream stays listed.",
                "summary": "Count logs by level and stream",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "source_uuids",
                        "in": "query",
                        "description": "Only lines from these servers or log sources, by uuid (a server's uuid gives that server's lines); a deleted one's lines stay searchable for the retention. A list: repeat the parameter (`source_uuids=<uuid>&source_uuids=<uuid>`) or send one value (`source_uuids=<uuid>`); `source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "levels",
                        "in": "query",
                        "description": "Only lines at one of these levels: `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert` or `emergency`; `unknown` selects the lines with no level (their `level` is null). A list: repeat the parameter (`levels=debug&levels=info`) or send one value (`levels=debug`); `levels[]=debug` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "debug",
                                    "info",
                                    "notice",
                                    "warning",
                                    "error",
                                    "critical",
                                    "alert",
                                    "emergency",
                                    "unknown"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "streams",
                        "in": "query",
                        "description": "Only lines in one of these streams. A list: repeat the parameter (`streams=<value>&streams=<value>`) or send one value (`streams=<value>`); `streams[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only lines whose text contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 500
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only lines from servers and log sources carrying any of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept is refused; one that ends in the future ends now, and the answer's window says so.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "exclude",
                        "in": "query",
                        "description": "Only lines that contain none of these texts: at most 5, each at most 200 characters. `search_case` applies to them; `search_mode` does not, they are always literal text. A list: repeat the parameter (`exclude=<value>&exclude=<value>`) or send one value (`exclude=<value>`); `exclude[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "maxItems": 5
                        },
                        "explode": true
                    },
                    {
                        "name": "search_mode",
                        "in": "query",
                        "description": "How `search` is read: `substring` (the default) or `regex`, an RE2 pattern of at most 500 characters with no lookahead, lookbehind, backreference, possessive quantifier or atomic group.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "substring",
                                "regex",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "search_case",
                        "in": "query",
                        "description": "Whether `search` and `exclude` ignore case: `sensitive` (the default) or `insensitive`. It sets the case of every include and exclude list too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "sensitive",
                                "insensitive",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "units",
                        "in": "query",
                        "description": "Only lines from these systemd units, exactly (`cloudflared.service`): at most 20. Null on lines that did not come from a journal, and on lines from an agent too old to report the unit. A list: repeat the parameter (`units=<value>&units=<value>`) or send one value (`units=<value>`); `units[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "identifiers",
                        "in": "query",
                        "description": "Only lines with these journal identifiers (`SYSLOG_IDENTIFIER`, such as `sshd`), exactly: at most 20. A list: repeat the parameter (`identifiers=<value>&identifiers=<value>`) or send one value (`identifiers=<value>`); `identifiers[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "http_statuses",
                        "in": "query",
                        "description": "Only lines whose parsed HTTP status is one of these: a code (`502`) or a class (`5xx`), at most 10. Only access log lines the backend parsed (a file entry with a `format`) have a status. A list: repeat the parameter (`http_statuses=<value>&http_statuses=<value>`) or send one value (`http_statuses=<value>`); `http_statuses[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "pattern": "^(?:[1-5][0-9]{2}|[1-5]xx)$"
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "description": "Only lines that contain each of these texts (or any of them, with `match=any`): literal text of 1 to 500 characters. A search holds at most 10 terms: `search`, `exclude` and every include and exclude list count together. A list: repeat the parameter (`include=<value>&include=<value>`) or send one value (`include=<value>`); `include[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_words",
                        "in": "query",
                        "description": "Only lines that contain each of these whole words: a word is bounded where its first and last characters are letters, digits or underscores (ASCII only, so `café` is bounded at `caf`). A list: repeat the parameter (`include_words=<value>&include_words=<value>`) or send one value (`include_words=<value>`); `include_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_regex",
                        "in": "query",
                        "description": "Only lines that match each of these RE2 regular expressions: no lookahead, lookbehind, backreference, possessive quantifier or atomic group. At most 5 regex terms, with `exclude_regex` and a `search` with `search_mode=regex`. Start one with `(?i)` to ignore case in that term alone. A list: repeat the parameter (`include_regex=<value>&include_regex=<value>`) or send one value (`include_regex=<value>`); `include_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_words",
                        "in": "query",
                        "description": "Only lines that contain none of these whole words. A list: repeat the parameter (`exclude_words=<value>&exclude_words=<value>`) or send one value (`exclude_words=<value>`); `exclude_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_regex",
                        "in": "query",
                        "description": "Only lines that match none of these RE2 regular expressions, as `include_regex` takes them. A list: repeat the parameter (`exclude_regex=<value>&exclude_regex=<value>`) or send one value (`exclude_regex=<value>`); `exclude_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "match",
                        "in": "query",
                        "description": "How the included terms combine: `all` (the default), a line matches every one, or `any`, at least one; the excluded terms always apply. Needs an included term (`search`, `include`, `include_words` or `include_regex`). `search_case` sets the case of every term.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "all",
                                "any",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The level and stream counts of the matching lines.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The level and stream counts of the matching lines.",
                                            "$ref": "#/components/schemas/LogsFacetsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ]
            }
        },
        "/logs/groups": {
            "get": {
                "operationId": "public.logs.groups",
                "description": "Counts the lines the search filters match by one field (stream, level, source, unit, identifier, HTTP status, HTTP path or message pattern), most first, `by=pattern` counts the messages with their numbers, UUIDs, addresses and times replaced by placeholders (`<N>`, `<UUID>`, `<IP4>`, `<TIME>`), so repeated errors count as one pattern instead of being downloaded; at most 100 groups. The window defaults to the last hour and reaches back to retention (30 days); a window that ends in the future ends now, and `window` says the window read. A line without the field is counted under a null value.",
                "summary": "Count logs by a field",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "by",
                        "in": "query",
                        "required": true,
                        "description": "What to count the lines by: `stream`, `level`, `source`, `unit`, `identifier`, `http_status`, `http_path` or `pattern` (the message with its numbers, hexadecimal values, UUIDs, addresses and times replaced by placeholders such as `<N>`, `<UUID>`, `<IP4>` and `<TIME>`, most frequent first; each value cut at 1,000 characters).",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "stream",
                                "level",
                                "source",
                                "unit",
                                "identifier",
                                "http_status",
                                "http_path",
                                "pattern"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "source_uuids",
                        "in": "query",
                        "description": "Only lines from these servers or log sources, by uuid (a server's uuid gives that server's lines); a deleted one's lines stay searchable for the retention. A list: repeat the parameter (`source_uuids=<uuid>&source_uuids=<uuid>`) or send one value (`source_uuids=<uuid>`); `source_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "levels",
                        "in": "query",
                        "description": "Only lines at one of these levels: `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert` or `emergency`; `unknown` selects the lines with no level (their `level` is null). A list: repeat the parameter (`levels=debug&levels=info`) or send one value (`levels=debug`); `levels[]=debug` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "debug",
                                    "info",
                                    "notice",
                                    "warning",
                                    "error",
                                    "critical",
                                    "alert",
                                    "emergency",
                                    "unknown"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "streams",
                        "in": "query",
                        "description": "Only lines in one of these streams. A list: repeat the parameter (`streams=<value>&streams=<value>`) or send one value (`streams=<value>`); `streams[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only lines whose text contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 500
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only lines from servers and log sources carrying any of these tags, by uuid. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The number of groups, from 1 to 100; 50 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "exclude",
                        "in": "query",
                        "description": "Only lines that contain none of these texts: at most 5, each at most 200 characters. `search_case` applies to them; `search_mode` does not, they are always literal text. A list: repeat the parameter (`exclude=<value>&exclude=<value>`) or send one value (`exclude=<value>`); `exclude[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "maxItems": 5
                        },
                        "explode": true
                    },
                    {
                        "name": "search_mode",
                        "in": "query",
                        "description": "How `search` is read: `substring` (the default) or `regex`, an RE2 pattern of at most 500 characters with no lookahead, lookbehind, backreference, possessive quantifier or atomic group.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "substring",
                                "regex",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "search_case",
                        "in": "query",
                        "description": "Whether `search` and `exclude` ignore case: `sensitive` (the default) or `insensitive`. It sets the case of every include and exclude list too.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "sensitive",
                                "insensitive",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "units",
                        "in": "query",
                        "description": "Only lines from these systemd units, exactly (`cloudflared.service`): at most 20. Null on lines that did not come from a journal, and on lines from an agent too old to report the unit. A list: repeat the parameter (`units=<value>&units=<value>`) or send one value (`units=<value>`); `units[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "identifiers",
                        "in": "query",
                        "description": "Only lines with these journal identifiers (`SYSLOG_IDENTIFIER`, such as `sshd`), exactly: at most 20. A list: repeat the parameter (`identifiers=<value>&identifiers=<value>`) or send one value (`identifiers=<value>`); `identifiers[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "maxItems": 20
                        },
                        "explode": true
                    },
                    {
                        "name": "http_statuses",
                        "in": "query",
                        "description": "Only lines whose parsed HTTP status is one of these: a code (`502`) or a class (`5xx`), at most 10. Only access log lines the backend parsed (a file entry with a `format`) have a status. A list: repeat the parameter (`http_statuses=<value>&http_statuses=<value>`) or send one value (`http_statuses=<value>`); `http_statuses[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "pattern": "^(?:[1-5][0-9]{2}|[1-5]xx)$"
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "description": "Only lines that contain each of these texts (or any of them, with `match=any`): literal text of 1 to 500 characters. A search holds at most 10 terms: `search`, `exclude` and every include and exclude list count together. A list: repeat the parameter (`include=<value>&include=<value>`) or send one value (`include=<value>`); `include[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_words",
                        "in": "query",
                        "description": "Only lines that contain each of these whole words: a word is bounded where its first and last characters are letters, digits or underscores (ASCII only, so `café` is bounded at `caf`). A list: repeat the parameter (`include_words=<value>&include_words=<value>`) or send one value (`include_words=<value>`); `include_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "include_regex",
                        "in": "query",
                        "description": "Only lines that match each of these RE2 regular expressions: no lookahead, lookbehind, backreference, possessive quantifier or atomic group. At most 5 regex terms, with `exclude_regex` and a `search` with `search_mode=regex`. Start one with `(?i)` to ignore case in that term alone. A list: repeat the parameter (`include_regex=<value>&include_regex=<value>`) or send one value (`include_regex=<value>`); `include_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_words",
                        "in": "query",
                        "description": "Only lines that contain none of these whole words. A list: repeat the parameter (`exclude_words=<value>&exclude_words=<value>`) or send one value (`exclude_words=<value>`); `exclude_words[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "exclude_regex",
                        "in": "query",
                        "description": "Only lines that match none of these RE2 regular expressions, as `include_regex` takes them. A list: repeat the parameter (`exclude_regex=<value>&exclude_regex=<value>`) or send one value (`exclude_regex=<value>`); `exclude_regex[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 500
                            },
                            "maxItems": 10
                        },
                        "explode": true
                    },
                    {
                        "name": "match",
                        "in": "query",
                        "description": "How the included terms combine: `all` (the default), a line matches every one, or `any`, at least one; the excluded terms always apply. Needs an included term (`search`, `include`, `include_words` or `include_regex`). `search_case` sets the case of every term.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "all",
                                "any",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The line counts by the field asked, and the window read.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The line counts by the field asked, and the window read.",
                                            "$ref": "#/components/schemas/LogsGroupsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ]
            }
        },
        "/logs/context": {
            "get": {
                "operationId": "public.logs.context",
                "description": "Returns the lines logged just before and just after one line of the same source and stream, newest first, with the line itself marked `is_anchor`. Name the line by its `uuid` and `logged_at` from a search. `before` and `after` count lines, 20 each by default and 100 at most; `has_older_more` and `has_newer_more` say whether more lines exist beyond them. A line that is gone, or that is not one of the organisation's server or log source lines, is a 422.",
                "summary": "Read the lines around a log line",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "query",
                        "required": true,
                        "description": "The line's `uuid`, as the search answers it.",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        }
                    },
                    {
                        "name": "at",
                        "in": "query",
                        "required": true,
                        "description": "When the line was logged (its `logged_at`, epoch milliseconds, or RFC 3339 with an offset): it bounds the lookup of the line.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "before",
                        "in": "query",
                        "description": "The number of older lines to return, from 0 to 100; 20 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "after",
                        "in": "query",
                        "description": "The number of newer lines to return, from 0 to 100; 20 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 0,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The lines around the line asked, newest first.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The lines around the line asked, newest first.",
                                            "$ref": "#/components/schemas/LogsContextResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ]
            }
        },
        "/logs/{line_uuid}": {
            "get": {
                "operationId": "public.logs.view",
                "description": "Returns one log line named by its `uuid` and the `at` time of the console link that shows it (`/logs/<uuid>?at=<time>`), with its full text, its exact `time` to the nanosecond, where that time comes from (`time_source`) and, for a Log Source line, the text the sender submitted (`raw_line`). `at` is the link's `at` as it is, or the line's `logged_at` in epoch milliseconds. A line that is gone, or that is not one of the organisation's server or log source lines, is a 422.",
                "summary": "Read one log line",
                "tags": [
                    "Logs"
                ],
                "parameters": [
                    {
                        "name": "line_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The line's `uuid`, as a search answers it and the console's link carries it.",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        }
                    },
                    {
                        "name": "at",
                        "in": "query",
                        "required": true,
                        "description": "The line's `time` (RFC 3339 with an offset, up to nine fraction digits: the console link's `at` is passed as it is) or its `logged_at` (epoch milliseconds). It bounds the lookup of the line, so it is required.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The log line.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The log line.",
                                            "$ref": "#/components/schemas/LogsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "logs.view"
                ]
            }
        },
        "/me": {
            "get": {
                "operationId": "public.me.view",
                "description": "Returns the API key the request was made with, the user it belongs to and the organisation it acts in, with the scopes the key may use now: those its owner's permissions (a person's role, or a service account's roles) still grant. It takes no parameters and needs no permission, so it is the call to make first to check that a key works.",
                "summary": "Get the calling key",
                "tags": [
                    "Me"
                ],
                "responses": {
                    "200": {
                        "description": "The key, its user and its organisation.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The key, its user and its organisation.",
                                            "$ref": "#/components/schemas/MeViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": []
            }
        },
        "/metric-sources": {
            "get": {
                "operationId": "public.metricSources.list",
                "description": "Returns the organisation's metric sources. A source's token is never returned, only whether one is set and its last four characters. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List metric sources",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The page size, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's metric sources.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's metric sources.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The source's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The source's name."
                                                    },
                                                    "slug": {
                                                        "type": "string",
                                                        "description": "The source's slug, its identifier within the organisation."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The source's description; null for none."
                                                    },
                                                    "source_type": {
                                                        "type": "string",
                                                        "description": "The source's type: `custom_source`; an open set."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "last_received_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the source is switched on."
                                                    },
                                                    "has_ingest_token": {
                                                        "type": "boolean",
                                                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no pushes."
                                                    },
                                                    "ingest_token_last_four": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The last four characters of the token; never the token."
                                                    },
                                                    "custom_metrics_count": {
                                                        "type": "integer",
                                                        "description": "How many metrics the source owns."
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The source's own tags.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "slug",
                                                    "description",
                                                    "source_type",
                                                    "health_status",
                                                    "last_received_at",
                                                    "active",
                                                    "has_ingest_token",
                                                    "ingest_token_last_four",
                                                    "custom_metrics_count",
                                                    "tags"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.metricSources.create",
                "description": "Creates a metric source with no ingest token; mint one with the rotate-token operation. The slug defaults to a slug of the name and cannot be changed afterwards. The call is refused when the plan does not allow it.",
                "summary": "Create a metric source",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The source's display name.",
                                        "maxLength": 255
                                    },
                                    "slug": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's slug, a lowercase identifier of letters, digits, `.`, `_` and `-` up to 100 characters; defaults to a slug of the name and cannot be changed afterwards.",
                                        "pattern": "^[a-z0-9][a-z0-9._-]*$",
                                        "maxLength": 100
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the source, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "source_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's type: `custom_source`, the one type that can be created.",
                                        "enum": [
                                            "custom_source",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the source is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": "array",
                                        "description": "The uuids of the tags to put on the source, at most 100; null is refused.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created metric source.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created metric source.",
                                            "$ref": "#/components/schemas/MetricSourcesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/metric-sources/{metric_source_uuid}": {
            "get": {
                "operationId": "public.metricSources.view",
                "description": "Returns one metric source with its tags, linked servers and the servers its metrics are shown on. The token is never returned. Server names are given only to a key holding `servers.view`; without it they are null and the counts are kept.",
                "summary": "Get a metric source",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The metric source.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The metric source.",
                                            "$ref": "#/components/schemas/MetricSourcesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ]
            },
            "put": {
                "operationId": "public.metricSources.update",
                "description": "Changes the fields sent: name, description, request limit, whether it is switched on, tags and linked servers. Tags can also be applied to the source's metrics with `apply_tags_to_metrics`. A request limit equal to the one in force is not stored, so the source keeps following the organisation's.",
                "summary": "Update a metric source",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The source's display name.",
                                        "maxLength": 255
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the source, up to 2000 characters; null for none.",
                                        "maxLength": 2000
                                    },
                                    "max_requests_per_minute": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The source's own limit of ingest requests a minute, from 1 to 100000; a value equal to the limit in force is not stored, so the source keeps following the organisation's.",
                                        "minimum": 1,
                                        "maximum": 100000
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the source is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": "array",
                                        "description": "The uuids of the tags to put on the source, at most 100; required when `apply_tags_to_metrics` is true or `tags_before_uuids` is sent, and an empty list clears them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "apply_tags_to_metrics": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the tag change is also applied to the source's metrics; when true, `tag_uuids` and `tags_before_uuids` are required."
                                    },
                                    "tags_before_uuids": {
                                        "type": "array",
                                        "description": "The uuids of the tags the source carried when the change was prepared, at most 100; required when `apply_tags_to_metrics` is true, and used to detect that its tags have changed since.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "linked_server_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the servers the source's metrics are shown on, at most 100; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "linked_server_all_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must ALL carry for the source's metrics to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "linked_server_any_tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of server tags a server must carry at least ONE of for the source's metrics to be shown on it, at most 20; an empty list clears them and omitting the key keeps them.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The metric source after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The metric source after the update.",
                                            "$ref": "#/components/schemas/MetricSourcesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.metricSources.delete",
                "description": "Deletes the metric source. The answer has no body.",
                "summary": "Delete a metric source",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The metric source was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/metric-sources/{metric_source_uuid}/series": {
            "get": {
                "operationId": "public.metricSources.series",
                "description": "Returns the series of every custom metric of the source, ordered by name, then key, 25 metrics a page. Each item is the metric's series as `GET /v1/custom-metrics/{custom_metric_uuid}/series` answers it; the window and the step are given once, in `meta`. The window, `step`, `tz` and `aggregation` work as they do there (`tz` puts the `1d` and `1w` points on the zone's local midnights and Mondays, and `meta` gives the `tz` sent), but `aggregation` takes only `avg`, `min`, `max` or `last`, which apply to the source's `level` metrics: a `count` metric always reads its sum, and its item says `sum`. A step that cuts the window into more than 720 points is refused for the whole call. A metric whose window holds more samples than the store reads in one query ends the page with 422 asking for a shorter window. A metric awaiting approval is listed with `available: false` and an empty series. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "Get the series of a metric source's metrics",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "aggregation",
                        "in": "query",
                        "description": "How each step of a `level` metric summarises its samples: `avg`, `min`, `max` or `last`. A `count` metric always reads its sum. Omitted, a level reads its value at each step.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "avg",
                                "min",
                                "max",
                                "last",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "step",
                        "in": "query",
                        "description": "The width of one step: `30s`, `1m`, `5m`, `30m`, `2h`, `6h`, `1d` or `1w`, refused when it cuts the window into more than 720\npoints. Omitted, the step follows the window's length.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "30s",
                                "1m",
                                "5m",
                                "30m",
                                "2h",
                                "6h",
                                "1d",
                                "1w",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "tz",
                        "in": "query",
                        "description": "An IANA time zone name such as `Europe/London`. With a `1d` or `1w` step (sent, or chosen by the window's length) each point sits at a\nlocal midnight of the zone, and a `1w` point on a Monday's; with any other step it changes nothing. Omitted, the steps are aligned\nto UTC as before.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 25
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of metrics in a page, from 1 to 25; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 25
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the source's metrics, each with its series.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the source's metrics, each with its series.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "available": {
                                                        "type": "boolean",
                                                        "description": "Whether the metric has data to chart: false while it awaits approval."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`awaiting_approval` while `available` is false; null otherwise."
                                                    },
                                                    "aggregation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`sum` for a `count` metric; for a `level` metric the `aggregation` sent, or null when none was sent."
                                                    },
                                                    "metric": {
                                                        "type": "object",
                                                        "description": "The metric the series belongs to.",
                                                        "properties": {
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The metric's uuid."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The metric's name."
                                                            },
                                                            "metric_key": {
                                                                "type": "string",
                                                                "description": "The key a publisher sends the metric under."
                                                            },
                                                            "metric_type": {
                                                                "type": "string",
                                                                "description": "`count` or `level`."
                                                            },
                                                            "unit": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The unit the metric's values are measured in; null for none."
                                                            }
                                                        },
                                                        "required": [
                                                            "uuid",
                                                            "name",
                                                            "metric_key",
                                                            "metric_type",
                                                            "unit"
                                                        ]
                                                    },
                                                    "series": {
                                                        "type": "array",
                                                        "description": "One series for an approved metric, none while it awaits approval.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The metric's key."
                                                                },
                                                                "unit": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "The metric's unit."
                                                                },
                                                                "labels": {
                                                                    "type": "object",
                                                                    "description": "The label values of the series; every one is null for a custom metric.",
                                                                    "properties": {
                                                                        "mount": {
                                                                            "type": [
                                                                                "string",
                                                                                "null"
                                                                            ],
                                                                            "description": "Always null on a custom series."
                                                                        },
                                                                        "device": {
                                                                            "type": [
                                                                                "string",
                                                                                "null"
                                                                            ],
                                                                            "description": "Always null on a custom series."
                                                                        },
                                                                        "interface": {
                                                                            "type": [
                                                                                "string",
                                                                                "null"
                                                                            ],
                                                                            "description": "Always null on a custom series."
                                                                        },
                                                                        "state": {
                                                                            "type": [
                                                                                "string",
                                                                                "null"
                                                                            ],
                                                                            "description": "Always null on a custom series."
                                                                        },
                                                                        "cpu": {
                                                                            "type": [
                                                                                "string",
                                                                                "null"
                                                                            ],
                                                                            "description": "Always null on a custom series."
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "mount",
                                                                        "device",
                                                                        "interface",
                                                                        "state",
                                                                        "cpu"
                                                                    ]
                                                                },
                                                                "point_meaning": {
                                                                    "type": "string",
                                                                    "description": "`count_per_step` (a `count` metric, summed per step) or `value_per_step` (a `level` metric)."
                                                                },
                                                                "points": {
                                                                    "type": "array",
                                                                    "description": "`[t, value]` pairs, `t` in epoch milliseconds.",
                                                                    "items": {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": [
                                                                                "number",
                                                                                "null"
                                                                            ]
                                                                        }
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "name",
                                                                "unit",
                                                                "labels",
                                                                "point_meaning",
                                                                "points"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "available",
                                                    "reason",
                                                    "aggregation",
                                                    "metric",
                                                    "series"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "The page's window and step, the same for every metric.",
                                            "properties": {
                                                "window": {
                                                    "type": "object",
                                                    "description": "The window the series cover.",
                                                    "properties": {
                                                        "from": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The start of the window asked for; a first point can be one step earlier.",
                                                            "x-wt15-instant": true
                                                        },
                                                        "to": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The end of the window.",
                                                            "x-wt15-instant": true
                                                        }
                                                    },
                                                    "required": [
                                                        "from",
                                                        "to"
                                                    ]
                                                },
                                                "step_seconds": {
                                                    "type": "integer",
                                                    "description": "The width of one step in seconds, the `step` sent or the one the window's length chose: a point summarises the step that ends at its time."
                                                },
                                                "tz": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The IANA time zone the `1d` and `1w` points were placed in, the `tz` sent; null when none was sent. A `tz` with any other step changes nothing, and is still echoed."
                                                }
                                            },
                                            "required": [
                                                "window",
                                                "step_seconds",
                                                "tz"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/metric-sources/{metric_source_uuid}/summary": {
            "get": {
                "operationId": "public.metricSources.summary",
                "description": "Returns, for every custom metric of the source, the statistics `GET /v1/custom-metrics/{custom_metric_uuid}/summary` answers, over one window that defaults to the last day and reaches back as far as the metrics are kept (1,095 days; an earlier start is served from it), given once in `meta` with `rolled_up`, which says whether a window longer than 31 days was read from the daily summaries (`p50` and `p95` are then approximations, as in the single summary). Metrics are ordered by name, then key, 25 a page. A metric whose history is not summarised yet is listed with `available: false` and `reason: rollup_pending`. A window of 31 days or less that the store refuses because it holds more samples than one query reads answers 422 asking for a shorter window; data denser than the default 100,000 points a day can also end at the read budget with 503 `store_unavailable`. A shorter window, or a smaller `per_page`, then answers. A metric awaiting approval is listed with `available: false` and every statistic null. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "Get the summaries of a metric source's metrics",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 25
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "The number of metrics in a page, from 1 to 25; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 25
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the source's metrics, each with its statistics.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the source's metrics, each with its statistics.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "available": {
                                                        "type": "boolean",
                                                        "description": "Whether the metric has samples to summarise: false while it awaits approval."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`awaiting_approval` while the metric awaits approval, `rollup_pending` while a window longer than 31 days cannot be answered yet (the metric's history is not summarised yet, or a day of the window is not recomputed yet); null while `available` is true."
                                                    },
                                                    "metric": {
                                                        "type": "object",
                                                        "description": "The metric the statistics belong to.",
                                                        "properties": {
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The metric's uuid."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The metric's name."
                                                            },
                                                            "metric_key": {
                                                                "type": "string",
                                                                "description": "The key a publisher sends the metric under."
                                                            },
                                                            "metric_type": {
                                                                "type": "string",
                                                                "description": "`count` or `level`."
                                                            },
                                                            "unit": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The unit the metric's values are measured in; null for none."
                                                            }
                                                        },
                                                        "required": [
                                                            "uuid",
                                                            "name",
                                                            "metric_key",
                                                            "metric_type",
                                                            "unit"
                                                        ]
                                                    },
                                                    "sample_count": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The number of samples in the window; null when it holds none."
                                                    },
                                                    "sum": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The sum of the samples' values; null when the window holds none."
                                                    },
                                                    "min": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The smallest value; null when the window holds no sample."
                                                    },
                                                    "max": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The largest value; null when the window holds no sample."
                                                    },
                                                    "avg": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The average value; null when the window holds no sample."
                                                    },
                                                    "p50": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The median value; null when the window holds no sample. Over 31 days (`rolled_up`) an approximation from a histogram of the values, within about 14% of the exact value, and null when the window holds a negative value."
                                                    },
                                                    "p95": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The 95th percentile of the values; null when the window holds no sample. Over 31 days (`rolled_up`) an approximation from a histogram of the values, within about 14% of the exact value, and null when the window holds a negative value."
                                                    },
                                                    "first_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the window's first sample was taken; null when it holds none.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the window's last sample was taken; null when it holds none.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The window's last value; null when it holds no sample."
                                                    }
                                                },
                                                "required": [
                                                    "available",
                                                    "reason",
                                                    "metric",
                                                    "sample_count",
                                                    "sum",
                                                    "min",
                                                    "max",
                                                    "avg",
                                                    "p50",
                                                    "p95",
                                                    "first_at",
                                                    "last_at",
                                                    "last"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "The page's window, the same for every metric.",
                                            "properties": {
                                                "window": {
                                                    "type": "object",
                                                    "description": "The window the statistics cover: each metric's samples after `from` and up to `to`.",
                                                    "properties": {
                                                        "from": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The start of the window, not included.",
                                                            "x-wt15-instant": true
                                                        },
                                                        "to": {
                                                            "type": "integer",
                                                            "description": "Epoch milliseconds. The end of the window, included.",
                                                            "x-wt15-instant": true
                                                        }
                                                    },
                                                    "required": [
                                                        "from",
                                                        "to"
                                                    ]
                                                },
                                                "rolled_up": {
                                                    "type": "boolean",
                                                    "description": "True when the window is longer than 31 days and was read from the daily summaries the platform keeps; false when it was read from the samples."
                                                }
                                            },
                                            "required": [
                                                "window",
                                                "rolled_up"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/metric-sources/{metric_source_uuid}/preview-tag-changes": {
            "post": {
                "operationId": "public.metricSources.previewTagChanges",
                "description": "Shows what replacing the source's tags with `tag_uuids` would do to its metrics: how many would change, each tag added or removed with its counts, and the first metrics that would change. Nothing is written. When `tags_before_uuids` is sent and the source's tags are no longer those, the call is refused.",
                "summary": "Preview a metric source's tag changes",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "tag_uuids": {
                                        "type": "array",
                                        "description": "The uuids of the tags the source would carry after the change, at most 100; required, and an empty list means no tags.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    },
                                    "tags_before_uuids": {
                                        "type": "array",
                                        "description": "The uuids of the tags the source carried when the change was prepared, at most 100; used to detect that its tags have changed since.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 100
                                    }
                                },
                                "required": [
                                    "tag_uuids"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The effect the tag change would have on the source's metrics.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The effect the tag change would have on the source's metrics.",
                                            "$ref": "#/components/schemas/MetricSourcesPreviewTagChangesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/metric-sources/{metric_source_uuid}/rotate-token": {
            "post": {
                "operationId": "public.metricSources.rotateToken",
                "description": "Mints a new ingest token for the source, replacing any earlier one. The token is returned once, in this answer; a replay under the same `Idempotency-Key` answers it as null, so a caller that lost it rotates again under a new key.",
                "summary": "Rotate a metric source's token",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The new ingest token, shown once.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new ingest token, shown once.",
                                            "$ref": "#/components/schemas/MetricSourcesRotateTokenResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/metric-sources/{metric_source_uuid}/revoke-token": {
            "post": {
                "operationId": "public.metricSources.revokeToken",
                "description": "Revokes the source's ingest token, so the source accepts no pushes until a new token is minted.",
                "summary": "Revoke a metric source's token",
                "tags": [
                    "MetricSources"
                ],
                "parameters": [
                    {
                        "name": "metric_source_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the metric source in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The metric source after its token was revoked.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The metric source after its token was revoked.",
                                            "$ref": "#/components/schemas/MetricSourcesRevokeTokenResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "custom_metrics.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/organisation": {
            "get": {
                "operationId": "public.organisation.view",
                "description": "Returns the organisation the key acts in: its uuid and name, its account type, its data region, its limits with what is used and, only for a key that holds `billing.view`, its billing currency and billing emails. It takes no parameters and needs no permission for the base fields.",
                "summary": "Get the calling organisation",
                "tags": [
                    "Organisation"
                ],
                "responses": {
                    "200": {
                        "description": "The organisation, its account type, its data region, its limits and, with `billing.view`, its billing details.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The organisation, its account type, its data region, its limits and, with `billing.view`, its billing details.",
                                            "$ref": "#/components/schemas/OrganisationViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": []
            }
        },
        "/organisation/alarms": {
            "get": {
                "operationId": "public.organisation.alarms",
                "description": "Lists every alarm of the organisation in one paged call, with each alarm's thresholds, live state, resource and the policies it notifies. Filter by `entity_type` (one kind of resource; `server` is the servers' own alarms), `server_uuid` (one server with its volumes, ports and systemd units), `rule_slug` (one or more), `active`, `state` (one or more) and `policy_uuid`. Alarms of deleted resources are not listed. For one resource's alarms use `GET /v1/alarms`; `GET /v1/servers/{server_uuid}/alarms` also lists a server's alarms with its children's. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List the organisation's alarms",
                "tags": [
                    "Organisation"
                ],
                "parameters": [
                    {
                        "name": "entity_type",
                        "in": "query",
                        "description": "Only alarms on this kind of resource: one of `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`, `server_port`, `server_system_service` or `server_volume`. `server` is the servers' own alarms only; for a server with its volumes, ports and units send `server_uuid`, and for every port `server_port`. Every kind when omitted. Alarms of deleted resources are not listed.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "domain",
                                "service",
                                "server",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "server_port",
                                "server_system_service",
                                "server_volume",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "server_uuid",
                        "in": "query",
                        "description": "Only the alarms of this server and of its volumes, ports and systemd units. With `entity_type`, only `server`, `server_volume`, `server_port` or `server_system_service`. Alarms of removed volumes, ports and units are not listed.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "rule_slug",
                        "in": "query",
                        "description": "Only alarms on these catalogue rules, by `rule_slug`; every rule when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`rule_slug=<value>&rule_slug=<value>`) or send one value (`rule_slug=<value>`); `rule_slug[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 128
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "active",
                        "in": "query",
                        "description": "Only alarms that are switched on (`true`) or off (`false`); both when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "state",
                        "in": "query",
                        "description": "Only alarms in these live states: `ok`, `warning`, `critical` or `inactive`; every state when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`state=ok&state=warning`) or send one value (`state=ok`); `state[]=ok` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "ok",
                                    "warning",
                                    "critical",
                                    "inactive"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "policy_uuid",
                        "in": "query",
                        "description": "Only the alarms that notify this alarm policy.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's alarms.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's alarms.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The alarm's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The alarm's own name, else its rule's."
                                                    },
                                                    "rule_slug": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's slug."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                                                    },
                                                    "metric_name": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's name."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The catalogue rule's description; null when it has none."
                                                    },
                                                    "alarm_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit of the thresholds; null when the rule has none."
                                                    },
                                                    "comparison_operator": {
                                                        "type": "string",
                                                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                                                    },
                                                    "aggregation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                                                    },
                                                    "warning_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "critical_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "warning_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                                                    },
                                                    "critical_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                                                    },
                                                    "warning_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                                                    },
                                                    "critical_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                                                    },
                                                    "self_resolving": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm is switched on."
                                                    },
                                                    "notify_on_acknowledge": {
                                                        "type": "boolean",
                                                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "notify_on_resolve": {
                                                        "type": "boolean",
                                                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "entity": {
                                                        "type": "object",
                                                        "description": "The resource the alarm is on, of any type that has alarms.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the resource, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The uuid of the resource; null when it no longer resolves."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the resource; null when it no longer resolves."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "parent_entity": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server of a volume, port or unit; null for every other resource.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the server, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid"
                                                        ]
                                                    },
                                                    "alarm_policies": {
                                                        "type": "array",
                                                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The policy's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid"
                                                            ]
                                                        }
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                                                        "enum": [
                                                            "critical",
                                                            "warning",
                                                            "ok",
                                                            "inactive"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "inactive_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                                                    },
                                                    "state_since": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged": {
                                                        "type": "boolean",
                                                        "description": "Whether the open incident has been acknowledged."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "rule_slug",
                                                    "classification",
                                                    "metric_name",
                                                    "description",
                                                    "alarm_type",
                                                    "unit",
                                                    "comparison_operator",
                                                    "aggregation",
                                                    "warning_threshold",
                                                    "critical_threshold",
                                                    "warning_window_minutes",
                                                    "critical_window_minutes",
                                                    "warning_consecutive_failures_count",
                                                    "critical_consecutive_failures_count",
                                                    "self_resolving",
                                                    "active",
                                                    "notify_on_acknowledge",
                                                    "notify_on_resolve",
                                                    "entity",
                                                    "parent_entity",
                                                    "alarm_policies",
                                                    "state",
                                                    "inactive_reason",
                                                    "state_since",
                                                    "acknowledged"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Details of the whole answer.",
                                            "properties": {
                                                "entity": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "description": "The server named by `server_uuid`; null when none was sent.",
                                                    "properties": {
                                                        "type": {
                                                            "type": "string",
                                                            "description": "Always `server`."
                                                        },
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The server's uuid."
                                                        },
                                                        "name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "The server's name; null when it has none."
                                                        }
                                                    },
                                                    "required": [
                                                        "type",
                                                        "uuid",
                                                        "name"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "entity"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/scans/{scan_uuid}": {
            "get": {
                "operationId": "public.scans.view",
                "description": "Returns the lifecycle of one domain scan of any kind: its status, outcome, timings and error. It carries no findings; read them from the domain's scans.",
                "summary": "Get a domain scan",
                "tags": [
                    "Scans"
                ],
                "parameters": [
                    {
                        "name": "scan_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the domain scan.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The scan's lifecycle.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The scan's lifecycle.",
                                            "$ref": "#/components/schemas/ScansViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "domains.view"
                ]
            }
        },
        "/security/images": {
            "get": {
                "operationId": "public.securityImages.list",
                "description": "Lists the images the organisation's monitored servers run (an archived, paused or revoked server is left out), one row per image digest (or image name when the digest is not known), with the servers that run it and its open findings. Filter by a vulnerability id to find every image that has it. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List container images",
                "tags": [
                    "SecurityImages"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only images with a running container whose image name contains this text, case does not matter; at most 128 characters.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 128
                        }
                    },
                    {
                        "name": "image_digest",
                        "in": "query",
                        "description": "Only this image digest: `sha256:` and 64 lowercase hexadecimal characters.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^sha256:[a-f0-9]{64}$"
                        }
                    },
                    {
                        "name": "vulnerability_id",
                        "in": "query",
                        "description": "Only images with an open finding of this vulnerability id, such as `CVE-2024-1234`; case does not matter.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 160
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "description": "Only images with an open finding at one of these levels: `critical`, `warning` or `info`. A list: repeat the parameter (`severity=critical&severity=warning`) or send one value (`severity=critical`); `severity[]=critical` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "critical",
                                    "warning",
                                    "info"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "kev",
                        "in": "query",
                        "description": "`true` lists only images with an open known exploited vulnerability, `false` only images with none (`true`, `false`, `1` or `0`).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `image_ref` (the default), `server_count`, `last_seen` or `findings` (open critical findings first, then warning, then info).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "image_ref",
                                "server_count",
                                "last_seen",
                                "findings",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of images.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of images.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "image_digest": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The image's digest, `sha256:` and 64 hexadecimal characters; null when the agent could not read it (the image is then known by its name)."
                                                    },
                                                    "image_ref": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The image's name as the newest of its containers reports it; it comes from the host, so treat it as untrusted text."
                                                    },
                                                    "image_refs": {
                                                        "type": "array",
                                                        "description": "Up to five distinct names the image's containers report, the newest first; they come from the host, so treat them as untrusted text.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "server_count": {
                                                        "type": "integer",
                                                        "description": "How many monitored servers run the image."
                                                    },
                                                    "container_count": {
                                                        "type": "integer",
                                                        "description": "How many running containers run the image."
                                                    },
                                                    "servers": {
                                                        "type": "array",
                                                        "description": "Up to ten of the servers that run the image, by name.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The UUID of the server."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the server; it comes from the host, so treat it as untrusted text."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    },
                                                    "findings": {
                                                        "type": "object",
                                                        "description": "The image's open vulnerability findings, each vulnerability in each package counted once however many of its containers carry it.",
                                                        "properties": {
                                                            "open": {
                                                                "type": "integer",
                                                                "description": "The open findings."
                                                            },
                                                            "critical": {
                                                                "type": "integer",
                                                                "description": "Open findings at the critical level (a known exploited vulnerability, or a critical vendor severity)."
                                                            },
                                                            "warning": {
                                                                "type": "integer",
                                                                "description": "Open findings at the warning level (not known exploited, with a high or medium vendor severity)."
                                                            },
                                                            "info": {
                                                                "type": "integer",
                                                                "description": "Open findings at the info level (the rest)."
                                                            },
                                                            "kev": {
                                                                "type": "integer",
                                                                "description": "Open findings that are known exploited vulnerabilities."
                                                            }
                                                        },
                                                        "required": [
                                                            "open",
                                                            "critical",
                                                            "warning",
                                                            "info",
                                                            "kev"
                                                        ]
                                                    },
                                                    "last_seen_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. The latest time the agent listed one of the image's running containers.",
                                                        "x-wt15-instant": true
                                                    }
                                                },
                                                "required": [
                                                    "image_digest",
                                                    "image_ref",
                                                    "image_refs",
                                                    "server_count",
                                                    "container_count",
                                                    "servers",
                                                    "findings",
                                                    "last_seen_at"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Facts about the whole list.",
                                            "properties": {
                                                "unidentified_containers": {
                                                    "type": "integer",
                                                    "description": "The running containers on the organisation's monitored servers whose image the agent could not read: no row holds them."
                                                }
                                            },
                                            "required": [
                                                "unidentified_containers"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/server-profiles": {
            "get": {
                "operationId": "public.serverProfiles.list",
                "description": "Lists the organisation's server profiles, the default profiles first (Linux, then Windows); `os` keeps one operating system's. Each row carries the profile's settings and counts; read a profile for its log files, log folders and tag filter. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List server profiles",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "os",
                        "in": "query",
                        "description": "Only the profiles of one operating system: `linux` or `windows`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "linux",
                                "windows",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many profiles to return in one page, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's server profiles.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's server profiles.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The profile's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The profile's name."
                                                    },
                                                    "slug": {
                                                        "type": "string",
                                                        "description": "Fixed at creation: the value of an install command's `--profile=`."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The profile's description; null when it has none."
                                                    },
                                                    "profile_type": {
                                                        "type": "string",
                                                        "description": "The profile's type: `default` for the organisation's default profile, otherwise `custom`."
                                                    },
                                                    "os": {
                                                        "type": "string",
                                                        "description": "The profile's operating system, fixed at creation: one of `linux`, `windows`."
                                                    },
                                                    "logging_disabled": {
                                                        "type": "boolean",
                                                        "description": "Whether the agent collects no logs."
                                                    },
                                                    "telemetry_disabled": {
                                                        "type": "boolean",
                                                        "description": "Whether the agent collects no telemetry."
                                                    },
                                                    "telemetry_capture_all": {
                                                        "type": "boolean",
                                                        "description": "Whether every telemetry option is collected."
                                                    },
                                                    "telemetry_options_count": {
                                                        "type": "integer",
                                                        "description": "How many telemetry options are selected."
                                                    },
                                                    "servers_count": {
                                                        "type": "integer",
                                                        "description": "How many servers use the profile."
                                                    },
                                                    "alarm_snooze": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The profile's own alarm snooze, which holds the alarm notifications of its servers; null when none is live.",
                                                        "properties": {
                                                            "until": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The reason given when it was set; null when none was."
                                                            },
                                                            "set_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When it was last set.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "until",
                                                            "reason",
                                                            "set_at"
                                                        ]
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The tags the profile gives its servers.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "slug",
                                                    "description",
                                                    "profile_type",
                                                    "os",
                                                    "logging_disabled",
                                                    "telemetry_disabled",
                                                    "telemetry_capture_all",
                                                    "telemetry_options_count",
                                                    "servers_count",
                                                    "alarm_snooze",
                                                    "tags"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.serverProfiles.create",
                "description": "Creates a custom server profile, for Linux servers or, with `os` `windows`, for Windows servers. The name must be unique in the organisation. The managed intervals and spool settings cannot be set, and a request that names one is refused. Unsent fields take the console's defaults.",
                "summary": "Create a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The profile's name, unique in the organisation.",
                                        "maxLength": 255
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the profile, at most 1000 characters.",
                                        "maxLength": 1000
                                    },
                                    "logging_disabled": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the agent collects no logs."
                                    },
                                    "telemetry_disabled": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the agent collects no telemetry."
                                    },
                                    "telemetry_capture_all": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every telemetry option is collected."
                                    },
                                    "interval_telemetry": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "interval_sysinfo": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "limit_process_series": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_horizon_hours": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_metrics_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_logs_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_database_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_min_free_disk_percent": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_min_free_disk_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "telemetry_options": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "When `telemetry_capture_all` is false, at least one option.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "cpu",
                                                "memory",
                                                "swap",
                                                "disk",
                                                "disk_io",
                                                "network",
                                                "load",
                                                "processes",
                                                "systemd"
                                            ],
                                            "x-wt15-open-enum": true
                                        }
                                    },
                                    "log_files": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The log files and journals the agent collects.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "source_type": {
                                                    "type": "string",
                                                    "description": "What to collect: `file` for a log file, `journald` for the systemd journal (a Linux profile only), `windows_event_log` for a Windows Event Log channel (a Windows profile only).",
                                                    "enum": [
                                                        "file",
                                                        "journald",
                                                        "windows_event_log"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The path of the log file, which may be a pattern; required when `source_type` is `file`.",
                                                    "maxLength": 1024
                                                },
                                                "format": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "How the backend reads an access log file's lines at ingest: `nginx_combined`, `wt15_timed` (nginx's combined format and the request time) or `wt15_relay` (a reverse proxy's format with the upstream status); only for a `file` entry, null for none. A save that leaves it out keeps the entry's current value; an explicit null clears it.",
                                                    "enum": [
                                                        "nginx_combined",
                                                        "wt15_timed",
                                                        "wt15_relay",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "channel": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the channel: `System`, `Application`, `Microsoft-Windows-PowerShell/Operational`; 1 to 255 characters, unique in the profile ignoring case. Required for that type and refused on the others.",
                                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9 ._\\-\\/%]*$",
                                                    "maxLength": 255
                                                },
                                                "min_level": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`. Required for that type and refused on the others.",
                                                    "enum": [
                                                        "critical",
                                                        "error",
                                                        "warning",
                                                        "information",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "event_ids": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the event ids collected: up to 50 unique ids from 0 to 65535; left out or empty, every event at or above `min_level`. Refused on the other types.",
                                                    "items": {
                                                        "type": "integer",
                                                        "description": "An event id.",
                                                        "minimum": 0,
                                                        "maximum": 65535
                                                    },
                                                    "maxItems": 50,
                                                    "uniqueItems": true
                                                }
                                            }
                                        },
                                        "uniqueItems": true
                                    },
                                    "os": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The profile's operating system, `linux` or `windows`, fixed at creation; left out, `linux`.",
                                        "enum": [
                                            "linux",
                                            "windows",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "log_folders": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The log folders the agent collects.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "path": {
                                                    "type": "string",
                                                    "description": "The absolute path of the folder, read literally: it may not contain `*`, `?` or `[`.",
                                                    "maxLength": 1024
                                                },
                                                "match_mode": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`.",
                                                    "enum": [
                                                        "all",
                                                        "regex",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "pattern": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The regular expression for `regex` mode; required when `match_mode` is `regex`.",
                                                    "maxLength": 1024
                                                },
                                                "extensions": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "The file extensions that apply to the folder's files.",
                                                    "items": {
                                                        "type": "string",
                                                        "maxLength": 32
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the profile gives its servers.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "server_led_tagging": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                                    },
                                    "server_led_tag_filter_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Whether the tag groups in `server_led_tag_group_uuids` are included or excluded: `include` or `exclude`; required when `server_led_tagging` is true.",
                                        "enum": [
                                            "include",
                                            "exclude",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "server_led_tag_group_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tag groups the profile's tagging draws from.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The new server profile.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new server profile.",
                                            "$ref": "#/components/schemas/ServerProfilesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}": {
            "get": {
                "operationId": "public.serverProfiles.view",
                "description": "Returns one server profile with its telemetry options, log files, log folders, tags and tag filter. The managed intervals and spool settings are not part of the public profile, and neither are its alarm templates: read and change those with `/v1/server-profiles/{server_profile_uuid}/alarm-templates`.",
                "summary": "Get a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server profile.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server profile.",
                                            "$ref": "#/components/schemas/ServerProfilesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.view"
                ]
            },
            "put": {
                "operationId": "public.serverProfiles.update",
                "description": "Updates a server profile; only the fields sent change. `profile_type: default` promotes this profile to be the default, and a default profile is never demoted directly. `sync_tags` applies the profile's tags to its servers now, as `sync_tags_mode` says. The managed intervals and spool settings cannot be set.",
                "summary": "Update a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The profile's name, unique in the organisation.",
                                        "maxLength": 255
                                    },
                                    "profile_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`default` promotes this profile; a default profile is never demoted directly, promote another instead.",
                                        "enum": [
                                            "default",
                                            "custom",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "description": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A description of the profile, at most 1000 characters.",
                                        "maxLength": 1000
                                    },
                                    "logging_disabled": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the agent collects no logs."
                                    },
                                    "telemetry_disabled": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the agent collects no telemetry."
                                    },
                                    "telemetry_capture_all": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether every telemetry option is collected."
                                    },
                                    "interval_telemetry": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "interval_sysinfo": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "limit_process_series": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_horizon_hours": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_metrics_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_logs_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_database_cap_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_min_free_disk_percent": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "spool_min_free_disk_mb": {
                                        "type": "string",
                                        "description": "Managed by WatchTower15: refused, never ignored."
                                    },
                                    "telemetry_options": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "When `telemetry_capture_all` is false, at least one option.",
                                        "items": {
                                            "type": "string",
                                            "enum": [
                                                "cpu",
                                                "memory",
                                                "swap",
                                                "disk",
                                                "disk_io",
                                                "network",
                                                "load",
                                                "processes",
                                                "systemd"
                                            ],
                                            "x-wt15-open-enum": true
                                        }
                                    },
                                    "log_files": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The log files and journals the agent collects.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "source_type": {
                                                    "type": "string",
                                                    "description": "What to collect: `file` for a log file, `journald` for the systemd journal (a Linux profile only), `windows_event_log` for a Windows Event Log channel (a Windows profile only).",
                                                    "enum": [
                                                        "file",
                                                        "journald",
                                                        "windows_event_log"
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The path of the log file, which may be a pattern; required when `source_type` is `file`.",
                                                    "maxLength": 1024
                                                },
                                                "format": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "How the backend reads an access log file's lines at ingest: `nginx_combined`, `wt15_timed` (nginx's combined format and the request time) or `wt15_relay` (a reverse proxy's format with the upstream status); only for a `file` entry, null for none. A save that leaves it out keeps the entry's current value; an explicit null clears it.",
                                                    "enum": [
                                                        "nginx_combined",
                                                        "wt15_timed",
                                                        "wt15_relay",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "channel": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the channel: `System`, `Application`, `Microsoft-Windows-PowerShell/Operational`; 1 to 255 characters, unique in the profile ignoring case. Required for that type and refused on the others.",
                                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9 ._\\-\\/%]*$",
                                                    "maxLength": 255
                                                },
                                                "min_level": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`. Required for that type and refused on the others.",
                                                    "enum": [
                                                        "critical",
                                                        "error",
                                                        "warning",
                                                        "information",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "event_ids": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "For a `windows_event_log` entry, the event ids collected: up to 50 unique ids from 0 to 65535; left out or empty, every event at or above `min_level`. Refused on the other types.",
                                                    "items": {
                                                        "type": "integer",
                                                        "description": "An event id.",
                                                        "minimum": 0,
                                                        "maximum": 65535
                                                    },
                                                    "maxItems": 50,
                                                    "uniqueItems": true
                                                }
                                            }
                                        },
                                        "uniqueItems": true
                                    },
                                    "os": {
                                        "type": "string",
                                        "description": "Refused: a profile's operating system is set when it is created."
                                    },
                                    "log_folders": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The log folders the agent collects.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "path": {
                                                    "type": "string",
                                                    "description": "The absolute path of the folder, read literally: it may not contain `*`, `?` or `[`.",
                                                    "maxLength": 1024
                                                },
                                                "match_mode": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`.",
                                                    "enum": [
                                                        "all",
                                                        "regex",
                                                        null
                                                    ],
                                                    "x-wt15-open-enum": true
                                                },
                                                "pattern": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The regular expression for `regex` mode; required when `match_mode` is `regex`.",
                                                    "maxLength": 1024
                                                },
                                                "extensions": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "The file extensions that apply to the folder's files.",
                                                    "items": {
                                                        "type": "string",
                                                        "maxLength": 32
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the profile gives its servers.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "server_led_tagging": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                                    },
                                    "server_led_tag_filter_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Whether the tag groups in `server_led_tag_group_uuids` are included or excluded: `include` or `exclude`; required when `server_led_tagging` is true.",
                                        "enum": [
                                            "include",
                                            "exclude",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "server_led_tag_group_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tag groups the profile's tagging draws from.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    },
                                    "sync_tags": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Instruction: apply the profile's tags to its servers now."
                                    },
                                    "sync_tags_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`additive` keeps a server's other tags; `exclusive` replaces them.",
                                        "enum": [
                                            "additive",
                                            "exclusive",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The server profile after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server profile after the update.",
                                            "$ref": "#/components/schemas/ServerProfilesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.serverProfiles.delete",
                "description": "Deletes a server profile. The default profile and a profile that servers use cannot be deleted and are refused with 422.",
                "summary": "Delete a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The server profile was deleted; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/indicator-policies": {
            "get": {
                "operationId": "public.serverProfiles.indicatorPolicies",
                "description": "Reads the policy of the two temporary-execution rules (`exe_world_writable`, `tmp_executable`) of this server profile.",
                "summary": "Read a server profile's indicator policies",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The policy of each rule.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The policy of each rule.",
                                            "$ref": "#/components/schemas/ServerProfilesIndicatorPoliciesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.view"
                ]
            }
        },
        "/server-profiles/{server_profile_uuid}/indicator-policies/{indicator}": {
            "put": {
                "operationId": "public.serverProfiles.updateIndicatorPolicy",
                "description": "Disables or reconfigures one rule on this server profile: its state, a severity override and known execution folders, with a reason and a review date. Needs the `security.policy` scope. A body that equals the defaults is refused with 422: clear the policy instead. Writing it again with the same values is idempotent.",
                "summary": "Set a server profile's indicator policy",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "indicator",
                        "in": "path",
                        "required": true,
                        "description": "The rule: `exe_world_writable` or `tmp_executable`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "exe_world_writable",
                                "tmp_executable"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "state": {
                                        "type": "string",
                                        "description": "`on` or `off`: whether the rule is checked. Required: `on` or `off`.",
                                        "enum": [
                                            "on",
                                            "off"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "severity": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The severity every object of the rule takes, `critical`, `warning` or `info`; null leaves the rule's own. Never below `warning` in `/dev/shm`.",
                                        "enum": [
                                            "critical",
                                            "warning",
                                            "info",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "known_folders": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Known execution folders, each an absolute path under `/tmp` or `/var/tmp` (not the bare roots, never under `/dev/shm`), at most 32, each at most 1,024 characters. An executable in one, while its folder is private to its owner, is recorded as Info.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 32
                                    },
                                    "reason": {
                                        "type": "string",
                                        "description": "Why the policy is in force, 1 to 500 characters.",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "review_on": {
                                        "type": "string",
                                        "format": "date",
                                        "description": "The day the policy is looked at again, `YYYY-MM-DD`, after today and within 12 months (UTC)."
                                    }
                                },
                                "required": [
                                    "state",
                                    "reason",
                                    "review_on"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The policy after the call.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The policy after the call.",
                                            "$ref": "#/components/schemas/ServerProfilesUpdateIndicatorPolicyResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.policy"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.serverProfiles.clearIndicatorPolicy",
                "description": "Removes the policy of one rule on this server profile, so the rule reads its defaults. Needs the `security.policy` scope.",
                "summary": "Clear a server profile's indicator policy",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "indicator",
                        "in": "path",
                        "required": true,
                        "description": "The rule: `exe_world_writable` or `tmp_executable`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "exe_world_writable",
                                "tmp_executable"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The policy was cleared; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.policy"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/alarm-templates": {
            "get": {
                "operationId": "public.serverProfiles.alarmTemplates",
                "description": "Lists the alarm templates of a server profile: the alarms every server on the profile gets, with each template's thresholds, the policies it notifies, how many servers' alarms still follow it and how many were edited by hand. A template whose rule has been retired is not listed. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server profile's alarm templates",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the profile's alarm templates.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the profile's alarm templates.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The template's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The template's own name, else its rule's."
                                                    },
                                                    "rule_slug": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's slug."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`."
                                                    },
                                                    "metric_name": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's name."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The catalogue rule's description; null when it has none."
                                                    },
                                                    "alarm_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit of the thresholds; null when the rule has none."
                                                    },
                                                    "comparison_operator": {
                                                        "type": "string",
                                                        "description": "How a reading is compared with the thresholds: the template's own operator, else the rule's default."
                                                    },
                                                    "aggregation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "How the readings in a window are combined before the comparison; null when the template sets none."
                                                    },
                                                    "warning_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The template's own value, else the rule's default."
                                                    },
                                                    "critical_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The template's own value, else the rule's default."
                                                    },
                                                    "warning_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the warning threshold is judged over; null when the template has none."
                                                    },
                                                    "critical_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the critical threshold is judged over; null when the template has none."
                                                    },
                                                    "warning_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a warning: the template's own count, else the rule's default."
                                                    },
                                                    "critical_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a critical: the template's own count, else the rule's default."
                                                    },
                                                    "self_resolving": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the template's alarms are switched on."
                                                    },
                                                    "notify_on_acknowledge": {
                                                        "type": "boolean",
                                                        "description": "Whether acknowledging an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                                                    },
                                                    "notify_on_resolve": {
                                                        "type": "boolean",
                                                        "description": "Whether resolving an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                                                    },
                                                    "alarm_policies": {
                                                        "type": "array",
                                                        "description": "The policies the template's alarms notify. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The policy's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid"
                                                            ]
                                                        }
                                                    },
                                                    "inherited_count": {
                                                        "type": "integer",
                                                        "description": "How many servers' alarms still follow this template: a propagation with `apply_to_all` changes them."
                                                    },
                                                    "overridden_count": {
                                                        "type": "integer",
                                                        "description": "How many servers' alarms were edited by hand and no longer follow this template: a propagation leaves them alone."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "rule_slug",
                                                    "classification",
                                                    "metric_name",
                                                    "description",
                                                    "alarm_type",
                                                    "unit",
                                                    "comparison_operator",
                                                    "aggregation",
                                                    "warning_threshold",
                                                    "critical_threshold",
                                                    "warning_window_minutes",
                                                    "critical_window_minutes",
                                                    "warning_consecutive_failures_count",
                                                    "critical_consecutive_failures_count",
                                                    "self_resolving",
                                                    "active",
                                                    "notify_on_acknowledge",
                                                    "notify_on_resolve",
                                                    "alarm_policies",
                                                    "inherited_count",
                                                    "overridden_count"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Details of the profile the templates belong to.",
                                            "properties": {
                                                "profile": {
                                                    "type": "object",
                                                    "description": "The server profile.",
                                                    "properties": {
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The profile's uuid."
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The profile's name."
                                                        }
                                                    },
                                                    "required": [
                                                        "uuid",
                                                        "name"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "profile"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.serverProfiles.createAlarmTemplate",
                "description": "Adds an alarm template to a server profile, from a server rule of the catalogue named by `rule_slug` (read `GET /v1/alarm-rules?entity_type=server`). Servers already on the profile are not changed by this call: the new template's alarm is later added to each server of the profile that lacks it (add only, never changing an existing alarm), with no time you can rely on. To change or remove alarms on the profile's servers now, edit or delete templates, then `preview-propagation` and `propagate`. `active` and `alarm_policy_uuids` cannot be null; an empty `alarm_policy_uuids` means no policies.",
                "summary": "Create an alarm template on a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "rule_slug": {
                                        "type": "string",
                                        "description": "The slug of the catalogue rule the template is based on, from `GET /v1/alarm-rules?entity_type=server`; required. A server profile holds server rules only, so a slug of another entity type is refused."
                                    },
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The template's own name, up to 255 characters. Left out, the template takes its rule's name.",
                                        "maxLength": 255
                                    },
                                    "aggregation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the readings in a window are combined before the comparison: `sum`, `count`, `avg`, `min`, `max` or `last`. Left out, the rule's default applies.",
                                        "enum": [
                                            "sum",
                                            "count",
                                            "avg",
                                            "min",
                                            "max",
                                            "last",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "comparison_operator": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a reading is compared with the thresholds: `lt`, `lte`, `gt`, `gte` or `eq`. Left out, the rule's default applies.",
                                        "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte",
                                            "eq",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "warning_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The warning threshold, a number; negatives and fractions are allowed. Left out, the rule's default applies."
                                    },
                                    "critical_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The critical threshold, a number; negatives and fractions are allowed. Left out, the rule's default applies."
                                    },
                                    "warning_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "critical_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "warning_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a warning, from 1 to 100. Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "critical_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a critical, from 1 to 100. Left out, the rule's default applies.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the template's alarms start switched on; `true` when left out. `null` is refused."
                                    },
                                    "notify_on_acknowledge": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether acknowledging an incident of the template's alarms notifies. Left out, the catalogue rule's flag applies."
                                    },
                                    "notify_on_resolve": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether resolving an incident of the template's alarms notifies. Left out, the catalogue rule's flag applies."
                                    },
                                    "alarm_policy_uuids": {
                                        "type": "array",
                                        "description": "The alarm policies the template's alarms notify; an empty list or none means no policies, and `null` is refused. Each uuid is a policy of this organisation.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    }
                                },
                                "required": [
                                    "rule_slug"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The created alarm template.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The created alarm template.",
                                            "$ref": "#/components/schemas/ServerProfilesCreateAlarmTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/alarm-templates/preview-propagation": {
            "post": {
                "operationId": "public.serverProfiles.previewAlarmTemplatePropagation",
                "description": "A dry run of `propagate`: for each template, how many servers would get a new alarm, how many alarms would change and how many are kept because they were edited by hand or deleted on that server, and, for alarms whose template is gone, how many would be removed and how many open incidents that would resolve. It writes nothing. Read it before `propagate` with `apply_to_all: true`.",
                "summary": "Preview propagating a profile's alarm templates",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "What a propagation would change.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "What a propagation would change.",
                                            "$ref": "#/components/schemas/ServerProfilesPreviewAlarmTemplatePropagationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.view"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/alarm-templates/propagate": {
            "post": {
                "operationId": "public.serverProfiles.propagateAlarmTemplates",
                "description": "Applies the profile's alarm templates to the servers on it. With `apply_to_all` false or left out, it only adds the alarms servers are missing and changes nothing else. With `apply_to_all: true` it also applies the templates' values to the alarms that follow them and removes, on every server of the profile, the alarms whose template is gone, resolving their open incidents; alarms edited by hand and alarms deleted on a server are kept. Run `preview-propagation` first: removing an alarm stops monitoring what it watched, with no other symptom.",
                "summary": "Propagate a profile's alarm templates to its servers",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "apply_to_all": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "`false` (the default) only adds the alarms servers are missing and changes nothing else. `true` also applies the templates' values to the alarms that follow them and removes, on every server of the profile, the alarms whose template is gone; alarms edited by hand and alarms deleted on a server are kept."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "How many alarms were added, updated, removed and kept.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "How many alarms were added, updated, removed and kept.",
                                            "$ref": "#/components/schemas/ServerProfilesPropagateAlarmTemplatesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/alarm-templates/{template_uuid}": {
            "put": {
                "operationId": "public.serverProfiles.updateAlarmTemplate",
                "description": "Changes the fields sent; what is not sent keeps its value. A `null` returns a threshold, window, consecutive count, `aggregation` or `comparison_operator` to the catalogue rule's default, `name` to the rule's name and a notify flag to the catalogue's; `active` and `alarm_policy_uuids` cannot be null, and `alarm_policy_uuids: []` clears the policies. This changes no server's alarm by itself: run `preview-propagation` and then `propagate` with `apply_to_all: true` to apply the new values to the alarms that follow the template. A template of another profile answers 404.",
                "summary": "Update an alarm template of a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "template_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the alarm template in the path; it must be a template of this profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The template's own name, up to 255 characters. Send `null` to return it to the catalogue rule's name.",
                                        "maxLength": 255
                                    },
                                    "aggregation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How the readings in a window are combined before the comparison: `sum`, `count`, `avg`, `min`, `max` or `last`. Send `null` to return it to the rule's default.",
                                        "enum": [
                                            "sum",
                                            "count",
                                            "avg",
                                            "min",
                                            "max",
                                            "last",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "comparison_operator": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "How a reading is compared with the thresholds: `lt`, `lte`, `gt`, `gte` or `eq`. Send `null` to return it to the rule's default.",
                                        "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte",
                                            "eq",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "warning_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The warning threshold, a number; negatives and fractions are allowed. Send `null` to return it to the rule's default."
                                    },
                                    "critical_threshold": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "The critical threshold, a number; negatives and fractions are allowed. Send `null` to return it to the rule's default."
                                    },
                                    "warning_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "critical_window_minutes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "warning_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a warning, from 1 to 100. Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "critical_consecutive_failures_count": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Consecutive evaluations before a critical, from 1 to 100. Send `null` to return it to the rule's default.",
                                        "minimum": 1,
                                        "maximum": 100
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the template's alarms are switched on. `null` is refused: a propagation with `apply_to_all` would switch that alarm off on every server of the profile that has not overridden it."
                                    },
                                    "notify_on_acknowledge": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether acknowledging an incident of the template's alarms notifies. Send `null` to return it to the catalogue rule's flag."
                                    },
                                    "notify_on_resolve": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether resolving an incident of the template's alarms notifies. Send `null` to return it to the catalogue rule's flag."
                                    },
                                    "alarm_policy_uuids": {
                                        "type": "array",
                                        "description": "The alarm policies the template's alarms notify, a full replacement of the saved ones; `[]` detaches every policy and `null` is refused. Each uuid is a policy of this organisation.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The alarm template after the change.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The alarm template after the change.",
                                            "$ref": "#/components/schemas/ServerProfilesUpdateAlarmTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.serverProfiles.deleteAlarmTemplate",
                "description": "Deletes an alarm template. The alarms it created on the profile's servers are not removed by this call: they stay, each now the server's own alarm, until a `propagate` with `apply_to_all: true` removes the alarms whose template is gone. A template of another profile answers 404.",
                "summary": "Delete an alarm template of a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "template_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the alarm template in the path; it must be a template of this profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Nothing: the answer is 204."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/duplicate": {
            "post": {
                "operationId": "public.serverProfiles.duplicate",
                "description": "Creates a copy of a server profile, with its alarm templates and their policy links, as the console's duplicate does. The copy is a custom profile. A profile that has indicator policies is copied with them, and duplicating it needs the `security.policy` scope too; without it the call is refused with 403.",
                "summary": "Duplicate a server profile",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "The new copy of the server profile.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new copy of the server profile.",
                                            "$ref": "#/components/schemas/ServerProfilesDuplicateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "server_profiles.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/server-profiles/{server_profile_uuid}/alarm-snooze": {
            "put": {
                "operationId": "public.serverProfiles.setAlarmSnooze",
                "description": "Holds the alarm notifications of every server of one server profile for a set time, as the console's Snooze does. The alarms keep evaluating the whole time: incidents still open, escalate, step down and resolve, and health and the alarm states keep their real values; only the automatic notifications are held. It covers every server that uses the profile at the moment a notification would be sent, read live: a server that joins the profile while it is snoozed is snoozed, and one that leaves it is not. For each server it covers the server's own alarms and those of its volumes, ports and systemd units, including the `*_reporting_stopped` alarms. A server's database instances, services, domains, log sources and custom metrics are their own resources and are not covered. While a snooze is live, a new or escalated incident whose alarm has a notification policy is held, not sent, and reads `notification_held_at` on the incident. An incident that resolves while the server is snoozed is resolved without a notification, even one that was notified before the snooze started, and an incident whose trigger was held is resolved without one too: the team is not told that an earlier page cleared. A person's acknowledge or resolve still notifies and clears the hold, snoozed or not. When the snooze ends, by its time or by `DELETE`, each incident still open whose notification was held is notified once at its current severity (the stored message, so it may read as lowered from a higher severity); one already acknowledged or resolved is cleared without a notification. That release is made by a sweep that runs every minute, so it can lag the end by up to a minute. A server is snoozed while either its own snooze or its profile's is live, and stays quiet until the later of the two ends: ending the profile's snooze leaves a server's own in force. Send `duration` (a whole number, at least 1) and `unit` (`minutes`, `hours` or `days`), counted from now: the total is 1 minute to 30 days, and more is refused with 422. Setting a snooze on a profile that already has one replaces its end, so a second call extends or shortens it, and there is one snooze for each. `reason` is optional, plain text, at most 500 characters. A snooze takes effect from the next evaluation pass (up to a minute), so a notification can still go out in the pass that is running when you call, and likewise an end takes effect from the next pass. Needs the `alarms.edit` scope.",
                "summary": "Snooze a server profile's alarms",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "duration": {
                                        "type": "integer",
                                        "description": "How long the snooze lasts, a whole number of `unit`s, at least 1. The total is 1 minute to 30 days: at most 43200 `minutes`, 720 `hours` or 30 `days`.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "unit": {
                                        "type": "string",
                                        "description": "The unit of `duration`: `minutes`, `hours` or `days`.",
                                        "enum": [
                                            "minutes",
                                            "hours",
                                            "days"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the alarms are snoozed, plain text, at most 500 characters; null or left out for none. It is shown to the team with the snooze.",
                                        "maxLength": 500
                                    }
                                },
                                "required": [
                                    "duration",
                                    "unit"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The profile's own snooze after the call: when it ends, its reason and when it was set.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The profile's own snooze after the call: when it ends, its reason and when it was set.",
                                            "$ref": "#/components/schemas/ServerProfilesAlarmSnoozeSetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.serverProfiles.endAlarmSnooze",
                "description": "Ends the profile's alarm snooze early, so held notifications of its servers are released by the next sweep (up to a minute), unless a server's own snooze still holds them, as described for `PUT`. The call is safe to repeat: it answers 204 also when the profile had no live snooze, since the end state is what you asked for. Needs the `alarms.edit` scope.",
                "summary": "End a server profile's alarm snooze",
                "tags": [
                    "ServerProfiles"
                ],
                "parameters": [
                    {
                        "name": "server_profile_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server profile.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The snooze was ended, or there was none; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers": {
            "get": {
                "operationId": "public.servers.list",
                "description": "Lists the organisation's servers. Filter by search text (hostname, name, the instance id, the heartbeat address, the public address or an interface address), operating system, agent status, health, security health, connectivity and tags; archived servers are listed only with `archived=true`. Sorts by one column. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List servers",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only servers whose hostname, display name, heartbeat IP address or supplier identifier contains this text, or whose public IPv4 or a current network interface's IPv4 address starts with it (`10.0.3.170`, or `10.0.3.` for the range).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "os_type",
                        "in": "query",
                        "description": "Only servers of this operating system: `linux` or `windows`. `freebsd` and `other` are accepted and match nothing.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "linux",
                                "windows",
                                "freebsd",
                                "other",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only servers whose agent has one of these statuses: `active`, `pending_approval` or `revoked`. A list: repeat the parameter (`status=active&status=pending_approval`) or send one value (`status=active`); `status[]=active` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "active",
                                    "pending_approval",
                                    "revoked"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "health",
                        "in": "query",
                        "description": "Only servers with one of these health statuses: `unknown`, `healthy`, `warning` or `critical`. A list: repeat the parameter (`health=unknown&health=healthy`) or send one value (`health=unknown`); `health[]=unknown` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "unknown",
                                    "healthy",
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "connectivity",
                        "in": "query",
                        "description": "Only servers in one of these connectivity states; an open set, so a client renders a value it does not know neutrally. A list: repeat the parameter (`connectivity=connected&connectivity=delayed`) or send one value (`connectivity=connected`); `connectivity[]=connected` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "connected",
                                    "delayed",
                                    "unreachable",
                                    "powered_off",
                                    "never_seen",
                                    "rejected",
                                    "catching_up"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only servers carrying at least one of these tags, as tag UUIDs. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "archived",
                        "in": "query",
                        "description": "Absent or false lists the servers that are not archived; true lists the archived ones only (`true`, `false`, `1` or `0`).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `name`, `hostname`, `agent_status`, `last_seen` or `health_status`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "hostname",
                                "agent_status",
                                "last_seen",
                                "health_status",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "security_health",
                        "in": "query",
                        "description": "Only servers with one of these security health statuses (the Security column's, as each row's `security_health_status` reads it): `unknown`, `healthy`, `warning` or `critical`. `health` filters the Operational health only. A list: repeat the parameter (`security_health=unknown&security_health=healthy`) or send one value (`security_health=unknown`); `security_health[]=unknown` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "unknown",
                                    "healthy",
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's servers.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's servers.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the server."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The display name when one is set, else the hostname."
                                                    },
                                                    "hostname": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The hostname the agent reports; null when it has not reported one."
                                                    },
                                                    "ip_address": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. See the view's `network_interfaces` and `public_ipv4` for the box's own addresses."
                                                    },
                                                    "supplier_identifier": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The search matches it."
                                                    },
                                                    "supplier_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                                                    },
                                                    "os_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The operating system, `linux` or `windows`."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "security_health_status": {
                                                        "type": "string",
                                                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                                                    },
                                                    "monitoring_health_status": {
                                                        "type": "string",
                                                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "overall_health_status": {
                                                        "type": "string",
                                                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                                                    },
                                                    "agent_status": {
                                                        "type": "string",
                                                        "description": "One of `active`, `pending_approval`, `revoked`."
                                                    },
                                                    "pending_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why a `pending_approval` server waits: `approval` or `limit`."
                                                    },
                                                    "connectivity_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set. Null when no agent reports (pending, revoked, no agent, or monitoring off)."
                                                    },
                                                    "agent_version": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The version of the agent; null when no agent has reported."
                                                    },
                                                    "agent_last_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether monitoring is switched on."
                                                    },
                                                    "archived_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "alarm_snoozed_until": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a live alarm snooze on the server, its own or its profile's, whichever ends later, releases its alarm notifications; null when none is live. `GET /v1/servers/{server_uuid}` names both snoozes.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The tags the server carries.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The UUID of the tag."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the tag."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The server's page in the console."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "hostname",
                                                    "ip_address",
                                                    "supplier_identifier",
                                                    "supplier_name",
                                                    "os_type",
                                                    "health_status",
                                                    "security_health_status",
                                                    "monitoring_health_status",
                                                    "overall_health_status",
                                                    "agent_status",
                                                    "pending_reason",
                                                    "connectivity_state",
                                                    "agent_version",
                                                    "agent_last_seen_at",
                                                    "active",
                                                    "archived_at",
                                                    "alarm_snoozed_until",
                                                    "tags",
                                                    "console_url"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}": {
            "get": {
                "operationId": "public.servers.view",
                "description": "Returns one server with its latest system information, its disks and network interfaces, its alarm counts and its tags with their groups. Like opening the server's page in the console, the read adds any default alarm the catalogue gained since the server was enrolled.",
                "summary": "Get a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server.",
                                            "$ref": "#/components/schemas/ServersViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            },
            "put": {
                "operationId": "public.servers.update",
                "description": "Changes a server's display name, notes, monitoring switch, tags and server profile; only the fields sent change, and `null` clears a display name. A new server profile brings its alarm templates, as in the console. `os_type` is accepted only as null or the stored value. Answers the server as `servers.view` does. A move to a profile whose indicator policies change this server's effective rules also needs the `security.policy` scope; without it the call is refused with 403.",
                "summary": "Update a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "display_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A label of your own for the server; the hostname stays the agent's, and null clears the label.",
                                        "maxLength": 255
                                    },
                                    "os_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Accepted only as the stored value or null: the operating system is set by the agent at enrolment."
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-text notes about the server; null clears them."
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether monitoring is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the server carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "server_profile_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "uuid",
                                        "description": "The server profile, as `/v1/server-profiles` lists it; the new profile's alarm templates follow, as in the console."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The server after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server after the update.",
                                            "$ref": "#/components/schemas/ServersUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.servers.delete",
                "description": "Deletes a server together with what hangs from it (volumes, ports, units and their alarms). Refuses with an error when something blocks the delete. Answers with no body.",
                "summary": "Delete a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The server was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/latest": {
            "get": {
                "operationId": "public.servers.latest",
                "description": "Returns where a server stands now: its health, when its agent was last seen and when the host booted, its alarm counts and the newest telemetry sample of the last 15 minutes, or null when the agent sent nothing in that time. Fails with a 503 when the metric store does not answer.",
                "summary": "Get a server's current state",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server's current state.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server's current state.",
                                            "$ref": "#/components/schemas/ServersLatestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            }
        },
        "/servers/{server_uuid}/metrics": {
            "get": {
                "operationId": "public.servers.metrics",
                "description": "Returns the series of one metric family of a server over a time window, in one shape for every family: each series has its name, unit, labels and `[t, value]` points, with `t` in epoch milliseconds. A series the server does not report is absent, never zero. The window defaults to one day and is at most 31 days; the disk and network families keep 30 days of detail, and a window that starts earlier is shortened, which the answer's `window.from` shows. Fails with a 503 when the metric store does not answer.",
                "summary": "Get a server's metric series",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "family",
                        "in": "query",
                        "required": true,
                        "description": "The metric family to read: `cpu`, `memory`, `load`, `disk`, `network`, `tcp`, `saturation` or `kernel_limits`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "cpu",
                                "memory",
                                "load",
                                "disk",
                                "network",
                                "tcp",
                                "saturation",
                                "kernel_limits"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One family's series for the window.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "One family's series for the window.",
                                            "$ref": "#/components/schemas/ServersMetricsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            }
        },
        "/servers/{server_uuid}/processes": {
            "get": {
                "operationId": "public.servers.processes",
                "description": "Lists the server's process groups ranked by memory or by CPU, highest first. The agent's roll-up of every process it did not send is not a row: it is `meta.other`, null when the server has none. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's top processes",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "sort_by",
                        "in": "query",
                        "description": "What the processes are ranked by: `memory` or `cpu`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "memory",
                                "cpu",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's process groups.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's process groups.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "process_name": {
                                                        "type": "string",
                                                        "description": "The executable name."
                                                    },
                                                    "owner": {
                                                        "type": "string",
                                                        "description": "The owner; empty when the agent did not send one."
                                                    },
                                                    "cpu_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The CPU the group uses, as a percentage."
                                                    },
                                                    "memory_mb": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The memory the group holds, in MB."
                                                    },
                                                    "process_count": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How many processes the group has."
                                                    },
                                                    "open_files_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The group's worst process's open files against its own limit; null where the agent sends none."
                                                    }
                                                },
                                                "required": [
                                                    "process_name",
                                                    "owner",
                                                    "cpu_percent",
                                                    "memory_mb",
                                                    "process_count",
                                                    "open_files_percent"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Facts about the whole list.",
                                            "properties": {
                                                "server": {
                                                    "type": "object",
                                                    "description": "The server the processes belong to.",
                                                    "properties": {
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The UUID of the server."
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The name of the server."
                                                        }
                                                    },
                                                    "required": [
                                                        "uuid",
                                                        "name"
                                                    ]
                                                },
                                                "sampled_at": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Epoch milliseconds. The newest sample of all the groups, the roll-up's included; null when there is none.",
                                                    "x-wt15-instant": true
                                                },
                                                "other": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "description": "The agent's roll-up of every process it did not send; null when the server has none. It is not a row.",
                                                    "properties": {
                                                        "cpu_percent": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ],
                                                            "description": "The CPU the unsent processes use together, as a percentage."
                                                        },
                                                        "memory_mb": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ],
                                                            "description": "The memory the unsent processes hold together, in MB."
                                                        },
                                                        "process_count": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ],
                                                            "description": "How many processes were not sent individually."
                                                        }
                                                    },
                                                    "required": [
                                                        "cpu_percent",
                                                        "memory_mb",
                                                        "process_count"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "server",
                                                "sampled_at",
                                                "other"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "A data store did not answer within the request's 10 seconds; try again shortly (`store_unavailable`).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/ports": {
            "get": {
                "operationId": "public.servers.ports",
                "description": "Lists the ports the server's agent reports, the open ones first. Retired ports are included only with `include_retired=true`. `meta` states when the agent last reported a complete port list and whether the cap on charted ports is full. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's ports",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "include_retired",
                        "in": "query",
                        "description": "Whether retired ports are listed too (`true`, `false`, `1` or `0`), so \"how long was this port open\" stays answerable for every port ever seen.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's ports.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's ports.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the port."
                                                    },
                                                    "port": {
                                                        "type": "integer",
                                                        "description": "The port number."
                                                    },
                                                    "protocol": {
                                                        "type": "string",
                                                        "description": "One of `tcp`, `udp`."
                                                    },
                                                    "bind_scope": {
                                                        "type": "string",
                                                        "description": "`any`, `loopback` or `specific`; the addresses only for `specific`."
                                                    },
                                                    "addresses": {
                                                        "type": "array",
                                                        "description": "The bound addresses of a `specific` bind; empty for any other (never null: a nullable array is not a type the spec validator reads).",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "process_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The owner's kernel `comm`, never a command line."
                                                    },
                                                    "is_open": {
                                                        "type": "boolean",
                                                        "description": "Whether the port is listening now."
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "description": "`open` or `closed`."
                                                    },
                                                    "opened_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the port was last seen opening; null when not known.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "closed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the port was last seen closing; null while it is open.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "first_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the agent first reported the port.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "tracked": {
                                                        "type": "boolean",
                                                        "description": "Whether a user asked for this ephemeral port to be tracked."
                                                    },
                                                    "expected": {
                                                        "type": "boolean",
                                                        "description": "Whether the port is marked as expected to be open."
                                                    },
                                                    "charted": {
                                                        "type": "boolean",
                                                        "description": "Whether the port has a series, alarms and a history: not ephemeral, or ephemeral and tracked."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "retired_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the port was retired; null while it is not retired.",
                                                        "x-wt15-instant": true
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "port",
                                                    "protocol",
                                                    "bind_scope",
                                                    "addresses",
                                                    "process_name",
                                                    "is_open",
                                                    "state",
                                                    "opened_at",
                                                    "closed_at",
                                                    "first_seen_at",
                                                    "tracked",
                                                    "expected",
                                                    "charted",
                                                    "health_status",
                                                    "retired_at"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Two facts about the whole list.",
                                            "properties": {
                                                "reported_at": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Epoch milliseconds. When the agent last reported a complete port list; null when it never did.",
                                                    "x-wt15-instant": true
                                                },
                                                "capped": {
                                                    "type": "boolean",
                                                    "description": "Whether the cap on charted ports is full: new ports are then not added until one retires."
                                                }
                                            },
                                            "required": [
                                                "reported_at",
                                                "capped"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/system-services": {
            "get": {
                "operationId": "public.servers.systemServices",
                "description": "Lists the systemd units of a server, by name, with the restarts, memory and CPU the metric store holds for each, and the alarms that are firing on it. Those figures are null where the store has none or does not answer. `search` keeps only the units whose name or description contains the text, in any case. Each unit says how it is activated, whether the agent finds it healthy, whether its alarms are armed, when it last entered `active`, and how it last exited. An alarm names its open incident by `incident_uuid`, the id for `GET /v1/incidents/{incident_uuid}`. `meta` states the init system the agent reported and when it last reported a complete inventory. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's system services",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Text matched, in any case, against a unit's name and its description: only the units that contain it are listed, and `total` counts them.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's system services.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's system services.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the unit."
                                                    },
                                                    "unit_name": {
                                                        "type": "string",
                                                        "description": "The systemd unit's name, e.g. `nginx.service`."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit's description; null when it has none."
                                                    },
                                                    "load_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "systemd's `LoadState`."
                                                    },
                                                    "active_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "systemd's `ActiveState`."
                                                    },
                                                    "sub_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "systemd's `SubState`."
                                                    },
                                                    "unit_file_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "systemd's `UnitFileState`."
                                                    },
                                                    "monitored": {
                                                        "type": "boolean",
                                                        "description": "Whether the unit is monitored: only a monitored unit has alarms and store figures."
                                                    },
                                                    "activation": {
                                                        "type": "string",
                                                        "description": "How the unit is started: `daemon`, `oneshot_remain`, `oneshot`, `timer`, `socket`, `path`, `dbus` or `none`."
                                                    },
                                                    "healthy": {
                                                        "type": "boolean",
                                                        "description": "Whether the agent finds the unit healthy: it reads up, or it ended by itself the way its own unit file lists as a success."
                                                    },
                                                    "alarms_armed": {
                                                        "type": "boolean",
                                                        "description": "Whether the unit's alarms are armed: only a monitored unit the agent found healthy has any."
                                                    },
                                                    "restarts": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Restarts in the range; null where the store has none."
                                                    },
                                                    "memory_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Memory in bytes; null where the store has none."
                                                    },
                                                    "cpu_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The latest CPU as a percentage of one core, two decimals; null where not reported (not running, CPU accounting off, an older agent)."
                                                    },
                                                    "alarm_state": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The worst state among the unit's firing alarms: `critical` or `warning`; null when none is firing."
                                                    },
                                                    "alarms": {
                                                        "type": "array",
                                                        "description": "The unit's firing alarms, critical first, then the oldest first.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The alarm's uuid."
                                                                },
                                                                "rule_slug": {
                                                                    "type": "string",
                                                                    "description": "The slug of the catalogue rule behind the alarm."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The alarm's own name, which tells apart two alarms on one rule."
                                                                },
                                                                "state": {
                                                                    "type": "string",
                                                                    "description": "One of `warning`, `critical`."
                                                                },
                                                                "state_since": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ],
                                                                    "description": "Epoch milliseconds: when the open incident was triggered; null when it is not known.",
                                                                    "x-wt15-instant": true
                                                                },
                                                                "acknowledged": {
                                                                    "type": "boolean",
                                                                    "description": "Whether the open incident has been acknowledged."
                                                                },
                                                                "incident_uuid": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "The uuid of the open incident: the id to pass to `GET /v1/incidents/{incident_uuid}`; null when it is not known."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "rule_slug",
                                                                "name",
                                                                "state",
                                                                "state_since",
                                                                "acknowledged",
                                                                "incident_uuid"
                                                            ]
                                                        }
                                                    },
                                                    "state_changed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the unit's state last changed; null when not known.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "first_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the agent first reported the unit.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "missing_since": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. Since when a monitored unit has been missing from the last complete inventory; null while it is present.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "absence_accepted_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. Since when the owner accepted the unit's absence; null when none is accepted.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "active_entered_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When a monitored systemd unit last entered `active`; null when it has not since it was loaded (how a never-started unit reads), for an unmonitored unit, for a Windows service and for an older agent.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "exit_code": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "For a systemd unit, systemd's `ExecMainStatus`: the exit status, or the signal number when `result` is `signal` or `core-dump`; for a Windows service, its last exit code as the agent sends it (Win32 or service-specific); null when not reported."
                                                    },
                                                    "result": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "systemd's `Result` for a unit that is not active and has run: `success`, `exit-code`, `signal`, `core-dump`, `timeout`, `start-limit-hit`, `oom-kill` and others; null when not reported, and always null for a Windows service."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "unit_name",
                                                    "description",
                                                    "load_state",
                                                    "active_state",
                                                    "sub_state",
                                                    "unit_file_state",
                                                    "monitored",
                                                    "activation",
                                                    "healthy",
                                                    "alarms_armed",
                                                    "restarts",
                                                    "memory_bytes",
                                                    "cpu_percent",
                                                    "alarm_state",
                                                    "alarms",
                                                    "state_changed_at",
                                                    "first_seen_at",
                                                    "missing_since",
                                                    "absence_accepted_at",
                                                    "active_entered_at",
                                                    "exit_code",
                                                    "result"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Facts about the whole list.",
                                            "properties": {
                                                "service_manager": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "`systemd`, `systemd_no_bus`, `unsupported`, `disabled`, or null for an agent without the collector."
                                                },
                                                "reported_at": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Epoch milliseconds. When the agent last reported a complete inventory; null when it never did.",
                                                    "x-wt15-instant": true
                                                }
                                            },
                                            "required": [
                                                "service_manager",
                                                "reported_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/volumes": {
            "get": {
                "operationId": "public.servers.volumes",
                "description": "Lists the server's current volumes, by mount point, with their usage. Usage figures are null when the metric store has none. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's volumes",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's volumes.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's volumes.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the volume."
                                                    },
                                                    "mount_point": {
                                                        "type": "string",
                                                        "description": "The mount point of the volume."
                                                    },
                                                    "device": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The block device; null when the agent does not report it."
                                                    },
                                                    "filesystem_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The filesystem type; null when the agent does not report it."
                                                    },
                                                    "total_gb": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The volume's size in gigabytes, as the agent reports it."
                                                    },
                                                    "used_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Bytes in use; null when no usage is available."
                                                    },
                                                    "free_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Bytes free; null when no usage is available."
                                                    },
                                                    "used_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "Space in use as a percentage; null when no usage is available."
                                                    },
                                                    "inodes_used_percent": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "Inodes in use as a percentage; null for a filesystem that keeps no inode count or when no usage is available. On XFS and other filesystems that allocate inodes as they need them, the total grows and shrinks with free space, so this percentage can move while `inodes_used` stays flat: read the count."
                                                    },
                                                    "inodes_used": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Inodes in use, a count; null for a filesystem that keeps no inode count or when no usage is available."
                                                    },
                                                    "inodes_free": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Inodes free, a count; null for a filesystem that keeps no inode count or when no usage is available."
                                                    },
                                                    "read_only": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Null when the agent does not report it."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "`pending`, `monitored`, or an `excluded_*` reason."
                                                    },
                                                    "monitored": {
                                                        "type": "boolean",
                                                        "description": "Whether the volume is monitored."
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                                                    },
                                                    "open_incidents": {
                                                        "type": "object",
                                                        "description": "Open and acknowledged incidents by severity; `acknowledged` is the subset of those.",
                                                        "properties": {
                                                            "critical": {
                                                                "type": "integer",
                                                                "description": "Open incidents at critical severity."
                                                            },
                                                            "warning": {
                                                                "type": "integer",
                                                                "description": "Open incidents at warning severity."
                                                            },
                                                            "acknowledged": {
                                                                "type": "integer",
                                                                "description": "Of the open incidents, the acknowledged."
                                                            }
                                                        },
                                                        "required": [
                                                            "critical",
                                                            "warning",
                                                            "acknowledged"
                                                        ]
                                                    },
                                                    "first_seen_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the agent first reported the volume.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "forecast": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The volume's growth forecast, fitted on its daily peaks of used space with the method of the database growth forecast. Null for a volume that is not monitored, on a server that is archived or inactive, and before the first calculation.",
                                                        "properties": {
                                                            "status": {
                                                                "type": "string",
                                                                "description": "One of `ok`, `insufficient_history` (fewer than 7 days of history in the fit) and `not_growing`."
                                                            },
                                                            "used_bytes": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The bytes used today by the fit's value, not the raw latest reading; null when the volume has no history yet."
                                                            },
                                                            "capacity_bytes": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The volume's capacity in bytes, used plus free, as the alarm and `used_percent` read it (reserved blocks are not in it); null when no capacity was read, and then every `days_to_*` is null."
                                                            },
                                                            "growth_bytes_per_day": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The growth in bytes a day; null without a fit, and zero or negative when the volume is not growing."
                                                            },
                                                            "growth_low": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The low end of the growth band in bytes a day (the 10th percentile of the pairwise slopes); null without a fit."
                                                            },
                                                            "growth_high": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The high end of the growth band in bytes a day (the 90th percentile of the pairwise slopes); null without a fit."
                                                            },
                                                            "projection_30d": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The fitted bytes used 30 days from now, never below 0; null without a fit."
                                                            },
                                                            "projection_90d": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The fitted bytes used 90 days from now, never below 0; null without a fit."
                                                            },
                                                            "projection_180d": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The fitted bytes used 180 days from now, never below 0; null without a fit."
                                                            },
                                                            "projection_365d": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The fitted bytes used 365 days from now, never below 0; null without a fit."
                                                            },
                                                            "days_to_warning": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Whole days until the volume reaches its warning threshold; 0 when it is already at or past it; null without a fit, a capacity or a growth above 0; at most 3650."
                                                            },
                                                            "days_to_critical": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Whole days until the volume reaches its critical threshold; 0 when it is already at or past it; null without a fit, a capacity or a growth above 0; at most 3650."
                                                            },
                                                            "days_to_full": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Whole days until the volume is full (used reaches its capacity); 0 when it already is; null without a fit, a capacity or a growth above 0; at most 3650, which means more than 10 years."
                                                            },
                                                            "warning_percent": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ],
                                                                "description": "The warning threshold in percent of the capacity that `days_to_warning` was measured with; null when the volume has none."
                                                            },
                                                            "critical_percent": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ],
                                                                "description": "The critical threshold in percent of the capacity that `days_to_critical` was measured with; null when the volume has none."
                                                            },
                                                            "history_days": {
                                                                "type": "integer",
                                                                "description": "The days of history the fit read, at most 90."
                                                            },
                                                            "fit_window_days": {
                                                                "type": "integer",
                                                                "description": "The days of the fit's window: the history after the last clean-up, or the last 30 days when the growth changed."
                                                            },
                                                            "segment_started_on": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The day after the last clean-up the fit starts from, as `YYYY-MM-DD` in UTC; null when none was found or without a fit."
                                                            },
                                                            "computed_at": {
                                                                "type": "integer",
                                                                "description": "Epoch milliseconds. When the forecast was calculated.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "status",
                                                            "used_bytes",
                                                            "capacity_bytes",
                                                            "growth_bytes_per_day",
                                                            "growth_low",
                                                            "growth_high",
                                                            "projection_30d",
                                                            "projection_90d",
                                                            "projection_180d",
                                                            "projection_365d",
                                                            "days_to_warning",
                                                            "days_to_critical",
                                                            "days_to_full",
                                                            "warning_percent",
                                                            "critical_percent",
                                                            "history_days",
                                                            "fit_window_days",
                                                            "segment_started_on",
                                                            "computed_at"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "mount_point",
                                                    "device",
                                                    "filesystem_type",
                                                    "total_gb",
                                                    "used_bytes",
                                                    "free_bytes",
                                                    "used_percent",
                                                    "inodes_used_percent",
                                                    "inodes_used",
                                                    "inodes_free",
                                                    "read_only",
                                                    "classification",
                                                    "monitored",
                                                    "health_status",
                                                    "open_incidents",
                                                    "first_seen_at",
                                                    "forecast"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/volumes/{volume_uuid}/disk-report": {
            "get": {
                "operationId": "public.servers.diskReport",
                "description": "The volume's latest disk usage report: the biggest directories, the largest and most recently changed files, and quick checks for Docker, the journal, package caches, old kernels and deleted files still held open. A report is made daily, when the volume is first seen and when a disk alarm opens; nothing here starts one. The snapshot is null until a walk has stored one.",
                "summary": "View a volume's disk usage report",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "volume_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the volume.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The volume's disk usage report.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The volume's disk usage report.",
                                            "$ref": "#/components/schemas/ServersDiskReportResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            }
        },
        "/servers/{server_uuid}/incidents": {
            "get": {
                "operationId": "public.servers.incidents",
                "description": "Lists the incidents of the server and of its volumes, ports and units, by when they were triggered, newest first unless `direction` says otherwise. Filter by status and by a time window; an incident is listed when it was open at any point inside the window. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's incidents",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only incidents in these statuses: `open`, `acknowledged` or `resolved`; every status when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`status=open&status=acknowledged`) or send one value (`status=open`); `status[]=open` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "open",
                                    "acknowledged",
                                    "resolved"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The order by when the incident was triggered: `desc` (the default) is the newest first, `asc` the oldest.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "rule_slug",
                        "in": "query",
                        "description": "Only incidents of alarms on these catalogue rules, by `rule_slug`; every rule when omitted. A bare value is read as a one-item list. An incident of an alarm that was since deleted is still listed. A list: repeat the parameter (`rule_slug=<value>&rule_slug=<value>`) or send one value (`rule_slug=<value>`); `rule_slug[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 128
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "description": "Only incidents of these severities: `warning` or `critical`; every severity when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`severity=warning&severity=critical`) or send one value (`severity=warning`); `severity[]=warning` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "warning",
                                    "critical"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's incidents.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's incidents.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the incident."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `open`, `acknowledged`, `resolved`."
                                                    },
                                                    "severity": {
                                                        "type": "string",
                                                        "description": "One of `warning`, `critical`."
                                                    },
                                                    "message": {
                                                        "type": "string",
                                                        "description": "The incident's message."
                                                    },
                                                    "rule_name": {
                                                        "type": "string",
                                                        "description": "The alarm's own name, which tells apart two alarms on one metric."
                                                    },
                                                    "rule_slug": {
                                                        "description": "The slug of the catalogue rule behind the alarm; null when none."
                                                    },
                                                    "alarm_uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The uuid of the alarm that raised the incident; null when the alarm no longer resolves. The alarm may since have been deleted: `GET /v1/alarms/{alarm_uuid}` then answers 404."
                                                    },
                                                    "metric_name": {
                                                        "description": "The name of the metric the alarm watches; null when none."
                                                    },
                                                    "scan_type": {
                                                        "description": "The kind of scan the alarm reads; null when none."
                                                    },
                                                    "entity": {
                                                        "type": "object",
                                                        "description": "The resource the incident is about: the server, or one of its volumes, ports or units.",
                                                        "properties": {
                                                            "type": {
                                                                "description": "The kind of resource: the server, or one of its volumes, ports or units."
                                                            },
                                                            "uuid": {
                                                                "description": "The UUID of the resource."
                                                            },
                                                            "name": {
                                                                "description": "The name of the resource."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "parent_entity": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server of a volume, port or unit; null for every other entity.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The kind of the server the resource belongs to."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The UUID of the server the resource belongs to."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid"
                                                        ]
                                                    },
                                                    "triggered_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was triggered.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was acknowledged; null while it is not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged_by": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Who acknowledged the incident; null while it is not acknowledged.",
                                                        "properties": {
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The display name of the person."
                                                            }
                                                        },
                                                        "required": [
                                                            "name"
                                                        ]
                                                    },
                                                    "resolved_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the incident was resolved; null while it is open or acknowledged.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "resolved_by": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Who resolved the incident; null while it is not resolved or when the system resolved it.",
                                                        "properties": {
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The display name of the person."
                                                            }
                                                        },
                                                        "required": [
                                                            "name"
                                                        ]
                                                    },
                                                    "resolved_by_system": {
                                                        "type": "boolean",
                                                        "description": "Whether the system resolved it (the condition cleared), not a person."
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The incident's page in the console."
                                                    },
                                                    "notifications": {
                                                        "type": "array",
                                                        "description": "The notifications sent for the incident, one for each channel.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "channel": {
                                                                    "type": "string",
                                                                    "description": "The channel it went out on, such as `email` or `slack`: an open set."
                                                                },
                                                                "status": {
                                                                    "type": "string",
                                                                    "description": "How it went: `sent`, `failed`, `skipped` or `queued`, as the notifier records it; an open set."
                                                                },
                                                                "sent_at": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ],
                                                                    "description": "Epoch milliseconds. When the notification was sent; null when it was not sent.",
                                                                    "x-wt15-instant": true
                                                                }
                                                            },
                                                            "required": [
                                                                "channel",
                                                                "status",
                                                                "sent_at"
                                                            ]
                                                        }
                                                    },
                                                    "unit_state": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The state of the systemd unit when the incident opened, so what it was doing is known after it recovers; null for an incident on anything else and for one opened before this was recorded.",
                                                        "properties": {
                                                            "active_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `ActiveState` of the unit when the incident opened."
                                                            },
                                                            "sub_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `SubState` of the unit when the incident opened."
                                                            },
                                                            "result": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "systemd's `Result` of the unit when the incident opened; null when it was not reported (the unit was active or had not run)."
                                                            },
                                                            "exit_code": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "The unit's exit status when the incident opened (systemd's `ExecMainStatus`, or the signal number when `result` is `signal` or `core-dump`); null when not reported."
                                                            },
                                                            "state_changed_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the unit's state last changed, as it stood when the incident opened; null when not known.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "active_entered_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the unit last entered `active`, as it stood when the incident opened; null when it has not since it was loaded.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "inventory_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the agent reported the inventory this state was read from, at most one system-info interval before the incident opened.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "active_state",
                                                            "sub_state",
                                                            "result",
                                                            "exit_code",
                                                            "state_changed_at",
                                                            "active_entered_at",
                                                            "inventory_at"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "status",
                                                    "severity",
                                                    "message",
                                                    "rule_name",
                                                    "rule_slug",
                                                    "alarm_uuid",
                                                    "metric_name",
                                                    "scan_type",
                                                    "entity",
                                                    "parent_entity",
                                                    "triggered_at",
                                                    "acknowledged_at",
                                                    "acknowledged_by",
                                                    "resolved_at",
                                                    "resolved_by",
                                                    "resolved_by_system",
                                                    "console_url",
                                                    "notifications",
                                                    "unit_state"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/alarms": {
            "get": {
                "operationId": "public.servers.alarms",
                "description": "Lists the alarms of the server and of its volumes, ports and systemd units in one call, with each alarm's thresholds, live state, resource and the policies it notifies. Filter by `entity_type` (the server itself or one kind of child), `rule_slug` (one or more), `active` and `state`. Alarms that a profile left deleted are not listed. For one resource's alarms use `GET /v1/alarms`; for every alarm of the organisation, `GET /v1/organisation/alarms`. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's alarms",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "entity_type",
                        "in": "query",
                        "description": "Only alarms on this kind of resource: `server` for the server itself, `server_volume`, `server_port` or `server_system_service` for a volume, a port or a systemd unit; every kind when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "server",
                                "server_volume",
                                "server_port",
                                "server_system_service",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "rule_slug",
                        "in": "query",
                        "description": "Only alarms on these catalogue rules, by `rule_slug`; every rule when omitted. A bare value is read as a one-item list. A list: repeat the parameter (`rule_slug=<value>&rule_slug=<value>`) or send one value (`rule_slug=<value>`); `rule_slug[]=<value>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 128
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "active",
                        "in": "query",
                        "description": "Only alarms that are switched on (`true`) or off (`false`); both when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "state",
                        "in": "query",
                        "description": "Only alarms in this live state: `ok`, `warning`, `critical` or `inactive`; every state when omitted.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "ok",
                                "warning",
                                "critical",
                                "inactive",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's alarms.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's alarms.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The alarm's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The alarm's own name, else its rule's."
                                                    },
                                                    "rule_slug": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's slug."
                                                    },
                                                    "classification": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                                                    },
                                                    "metric_name": {
                                                        "type": "string",
                                                        "description": "The catalogue rule's name."
                                                    },
                                                    "description": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The catalogue rule's description; null when it has none."
                                                    },
                                                    "alarm_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The unit of the thresholds; null when the rule has none."
                                                    },
                                                    "comparison_operator": {
                                                        "type": "string",
                                                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                                                    },
                                                    "aggregation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                                                    },
                                                    "warning_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "critical_threshold": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "The alarm's own value, else the rule's default."
                                                    },
                                                    "warning_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                                                    },
                                                    "critical_window_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                                                    },
                                                    "warning_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                                                    },
                                                    "critical_consecutive_failures_count": {
                                                        "type": "integer",
                                                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                                                    },
                                                    "self_resolving": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the alarm is switched on."
                                                    },
                                                    "notify_on_acknowledge": {
                                                        "type": "boolean",
                                                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "notify_on_resolve": {
                                                        "type": "boolean",
                                                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                                                    },
                                                    "entity": {
                                                        "type": "object",
                                                        "description": "The resource the alarm is on, of any type that has alarms.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the resource, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The uuid of the resource; null when it no longer resolves."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The name of the resource; null when it no longer resolves."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "parent_entity": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The server of a volume, port or unit; null for every other resource.",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the server, such as `server`."
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "uuid"
                                                        ]
                                                    },
                                                    "alarm_policies": {
                                                        "type": "array",
                                                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The policy's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid"
                                                            ]
                                                        }
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                                                        "enum": [
                                                            "critical",
                                                            "warning",
                                                            "ok",
                                                            "inactive"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "inactive_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                                                    },
                                                    "state_since": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "acknowledged": {
                                                        "type": "boolean",
                                                        "description": "Whether the open incident has been acknowledged."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "rule_slug",
                                                    "classification",
                                                    "metric_name",
                                                    "description",
                                                    "alarm_type",
                                                    "unit",
                                                    "comparison_operator",
                                                    "aggregation",
                                                    "warning_threshold",
                                                    "critical_threshold",
                                                    "warning_window_minutes",
                                                    "critical_window_minutes",
                                                    "warning_consecutive_failures_count",
                                                    "critical_consecutive_failures_count",
                                                    "self_resolving",
                                                    "active",
                                                    "notify_on_acknowledge",
                                                    "notify_on_resolve",
                                                    "entity",
                                                    "parent_entity",
                                                    "alarm_policies",
                                                    "state",
                                                    "inactive_reason",
                                                    "state_since",
                                                    "acknowledged"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Details of the server the alarms belong to.",
                                            "properties": {
                                                "entity": {
                                                    "type": "object",
                                                    "description": "The server.",
                                                    "properties": {
                                                        "type": {
                                                            "type": "string",
                                                            "description": "Always `server`."
                                                        },
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The server's uuid."
                                                        },
                                                        "name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "The server's name; null when it has none."
                                                        }
                                                    },
                                                    "required": [
                                                        "type",
                                                        "uuid",
                                                        "name"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "entity"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/approve": {
            "post": {
                "operationId": "public.servers.approve",
                "description": "Approves a server whose agent waits in `pending_approval`, so it starts reporting as an active server. Counts against the organisation's server limit. Answers the server as `servers.view` does.",
                "summary": "Approve a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server after the approval.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server after the approval.",
                                            "$ref": "#/components/schemas/ServersApproveResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/archive": {
            "post": {
                "operationId": "public.servers.archive",
                "description": "Archives an active server: its open incidents are resolved silently and monitoring stops, and it leaves the default server list (list it with `archived=true`). `servers.reactivate` brings it back.",
                "summary": "Archive a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server after it was archived.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server after it was archived.",
                                            "$ref": "#/components/schemas/ServersArchiveResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/reactivate": {
            "post": {
                "operationId": "public.servers.reactivate",
                "description": "Brings an archived server back to monitoring. Refuses when the organisation is at its server limit or its payment is blocked, or when the server's agent is no longer active. Answers the server as `servers.view` does.",
                "summary": "Reactivate a server",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server after it was reactivated.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server after it was reactivated.",
                                            "$ref": "#/components/schemas/ServersReactivateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/provision": {
            "post": {
                "operationId": "public.servers.provision",
                "description": "Withdrawn: refused with a 422 `invalid_request` that changes nothing. A server gets a new token by enrolling again with the organisation's install token. The operation will be removed at the next major release of the SDKs.",
                "summary": "Provision a server",
                "deprecated": true,
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "channel": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The agent channel the enrolment token is for.",
                                        "enum": [
                                            "stable",
                                            "beta",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The server's enrolment receipt.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server's enrolment receipt.",
                                            "$ref": "#/components/schemas/ServersProvisionResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/revoke": {
            "post": {
                "operationId": "public.servers.revoke",
                "description": "Revokes the agent of a server: its token stops working and it is cut off. Answers the server as `servers.view` does.",
                "summary": "Revoke a server's agent",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server after its agent was revoked.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server after its agent was revoked.",
                                            "$ref": "#/components/schemas/ServersRevokeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/rotate-token": {
            "post": {
                "operationId": "public.servers.rotateToken",
                "description": "Withdrawn: refused with a 422 `invalid_request` that changes nothing. A server gets a new token by enrolling again with the organisation's install token. The operation will be removed at the next major release of the SDKs.",
                "summary": "Rotate a server's enrolment token",
                "deprecated": true,
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server's new enrolment receipt.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server's new enrolment receipt.",
                                            "$ref": "#/components/schemas/ServersRotateTokenResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/ports/{port_uuid}": {
            "put": {
                "operationId": "public.servers.updatePort",
                "description": "Sets whether a port is expected to be open and whether an ephemeral port is tracked; send at least one of the two. Answers the port as `servers.ports` lists it. A port of another server is refused as not found.",
                "summary": "Update a server's port",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "port_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the port.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "expected": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the port is expected to be open."
                                    },
                                    "tracked": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether an ephemeral port is tracked."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The port after the change.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The port after the change.",
                                            "$ref": "#/components/schemas/ServersUpdatePortResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/ports/{port_uuid}/forget": {
            "post": {
                "operationId": "public.servers.forgetPort",
                "description": "Forgets a port that is closed: a port that is tracked or was seen before is retired, an ephemeral one that was never tracked is removed. The open incidents of the port's alarms are resolved silently.",
                "summary": "Forget a closed port",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "port_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the port.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "What the forget did: the port's uuid, when it was retired, whether it was removed and how many incidents were resolved.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "What the forget did: the port's uuid, when it was retired, whether it was removed and how many incidents were resolved.",
                                            "$ref": "#/components/schemas/ServersForgetPortResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/volumes/{volume_uuid}": {
            "put": {
                "operationId": "public.servers.updateVolume",
                "description": "Switches monitoring of a volume on or off, or hands it back to the agent's own classification with `reset_override`; send one of the two. Answers the volume as `servers.volumes` lists it.",
                "summary": "Update a server's volume",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "volume_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the volume.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "monitored": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the volume is monitored."
                                    },
                                    "reset_override": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Instruction: hand the volume back to the agent's own classification."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The volume after the change.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The volume after the change.",
                                            "$ref": "#/components/schemas/ServersUpdateVolumeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/security-findings": {
            "get": {
                "operationId": "public.servers.securityFindings",
                "description": "Lists the findings of one server: its vulnerabilities first, then its posture checks, then its compromise indicators, in every status. Filter by kind, by KEV, by level (`severity`), by status, by vulnerability id or by package; a row is the summary of a finding, and `servers.securityFinding` returns the whole. Each finding says where it was found (`location`: the host or a container) and what was matched (`source`). Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's security findings",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "description": "Only findings of this kind.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "vulnerability",
                                "posture",
                                "indicator",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "kev",
                        "in": "query",
                        "description": "Only findings that are in the CISA Known Exploited Vulnerabilities catalogue (`true`) or are not (`false`). `true` leaves out posture checks and compromise indicators, which are never in it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "description": "Only findings of these levels, as the list shows them: `critical`, `warning` or `info`. Repeat the parameter for several. A vulnerability's level follows KEV and the vendor severity: KEV or vendor `critical` is `critical`, vendor `high` or `medium` is `warning`, the rest `info`. A list: repeat the parameter (`severity=critical&severity=warning`) or send one value (`severity=critical`); `severity[]=critical` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "critical",
                                    "warning",
                                    "info"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "maxItems": 3
                        },
                        "explode": true
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only findings with these statuses, as the list shows them: `open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator, `pass`, `fail`, `not_applicable` or `not_measured` for a posture check. Repeat the parameter for several; a status only one kind has leaves the other kinds out. A list: repeat the parameter (`status=open&status=dismissed`) or send one value (`status=open`); `status[]=open` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "open",
                                    "dismissed",
                                    "resolved",
                                    "pass",
                                    "fail",
                                    "not_applicable",
                                    "not_measured"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "maxItems": 7
                        },
                        "explode": true
                    },
                    {
                        "name": "vulnerability_id",
                        "in": "query",
                        "description": "Only the vulnerability with this id, for example `CVE-2024-3094`; case does not matter. Leaves out posture checks and compromise indicators.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 128
                        }
                    },
                    {
                        "name": "package",
                        "in": "query",
                        "description": "Only vulnerabilities of this package, by its exact name. Leaves out posture checks and compromise indicators.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 128
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "location",
                        "in": "query",
                        "description": "Only findings found `host` or in a `container`. `container` leaves out posture checks and compromise indicators, which are always the host's; it keeps the findings of a container that is no longer on record.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "host",
                                "container",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "container_uuid",
                        "in": "query",
                        "description": "Only the vulnerability findings of this container of the server; it leaves out the other kinds. A container that is not on this server answers 404 `not_found`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "source",
                        "in": "query",
                        "description": "Only vulnerability findings matched from one of these sources: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); it leaves out the other kinds. A list: repeat the parameter (`source=os_package&source=runtime`) or send one value (`source=os_package`); `source[]=os_package` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "os_package",
                                    "runtime",
                                    "library"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's security findings.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's security findings.",
                                            "items": {
                                                "anyOf": [
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "kind": {
                                                                "type": "string",
                                                                "description": "One of `vulnerability`, `posture`, `indicator`.",
                                                                "const": "posture"
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The UUID of the finding."
                                                            },
                                                            "title": {
                                                                "type": "string",
                                                                "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                                                            },
                                                            "package": {
                                                                "type": "null",
                                                                "description": "The package of a vulnerability; null for the other kinds."
                                                            },
                                                            "key": {
                                                                "type": "string",
                                                                "description": "The key of a posture check or of a compromise indicator; null for a vulnerability."
                                                            },
                                                            "severity": {
                                                                "type": "string",
                                                                "description": "The finding's level as the list shows it: one of `critical`, `warning` or `info`. For a vulnerability, KEV or vendor `critical` is `critical`, vendor `high` or `medium` is `warning`, the rest `info`."
                                                            },
                                                            "status": {
                                                                "type": "string",
                                                                "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                                                            },
                                                            "dismissed": {
                                                                "type": "boolean",
                                                                "description": "Whether the finding is dismissed."
                                                            },
                                                            "kev": {
                                                                "type": "boolean",
                                                                "description": "Whether the vulnerability is in the CISA Known Exploited Vulnerabilities catalogue; false for the other kinds."
                                                            },
                                                            "kev_ids": {
                                                                "type": "array",
                                                                "description": "The CVE ids of the vulnerability that are in the CISA Known Exploited Vulnerabilities catalogue, the first 16 stored, in stored order (an ALAS, GHSA or USN finding's `title` hides them); `[]` when none is, and for the other kinds. The single-finding read has the full list.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "kev_ids_truncated": {
                                                                "type": "boolean",
                                                                "description": "Whether more than 16 known-exploited CVE ids are stored; false for the other kinds."
                                                            },
                                                            "epss": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ],
                                                                "description": "The vulnerability's EPSS score, from 0 to 1; null when it has none and for the other kinds."
                                                            },
                                                            "fix_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "Whether a fix exists: `fixed`, `not_fixed`, `wont_fix` or `unknown` for a vulnerability; null for the other kinds."
                                                            },
                                                            "fixed_version": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The version that fixes the vulnerability, when there is one; null for the other kinds."
                                                            },
                                                            "location": {
                                                                "type": "object",
                                                                "description": "Where the finding was found.",
                                                                "properties": {
                                                                    "kind": {
                                                                        "type": "string",
                                                                        "description": "`host`, or `container` for a vulnerability found in a container.",
                                                                        "const": "host"
                                                                    },
                                                                    "container_uuid": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's uuid; null on the host, and when the container is no longer on record."
                                                                    },
                                                                    "image_ref": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "kind",
                                                                    "container_uuid",
                                                                    "image_ref"
                                                                ]
                                                            },
                                                            "source": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                                                            }
                                                        },
                                                        "required": [
                                                            "kind",
                                                            "uuid",
                                                            "title",
                                                            "package",
                                                            "key",
                                                            "severity",
                                                            "status",
                                                            "dismissed",
                                                            "kev",
                                                            "kev_ids",
                                                            "kev_ids_truncated",
                                                            "epss",
                                                            "fix_state",
                                                            "fixed_version",
                                                            "location",
                                                            "source"
                                                        ]
                                                    },
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "kind": {
                                                                "type": "string",
                                                                "description": "One of `vulnerability`, `posture`, `indicator`.",
                                                                "const": "vulnerability"
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The UUID of the finding."
                                                            },
                                                            "title": {
                                                                "type": "string",
                                                                "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                                                            },
                                                            "package": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The package of a vulnerability; null for the other kinds."
                                                            },
                                                            "key": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The key of a posture check or of a compromise indicator; null for a vulnerability."
                                                            },
                                                            "severity": {
                                                                "type": "string",
                                                                "description": "The finding's level as the list shows it: one of `critical`, `warning` or `info`. For a vulnerability, KEV or vendor `critical` is `critical`, vendor `high` or `medium` is `warning`, the rest `info`."
                                                            },
                                                            "status": {
                                                                "type": "string",
                                                                "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                                                            },
                                                            "dismissed": {
                                                                "type": "boolean",
                                                                "description": "Whether the finding is dismissed."
                                                            },
                                                            "kev": {
                                                                "type": "boolean",
                                                                "description": "Whether the vulnerability is in the CISA Known Exploited Vulnerabilities catalogue; false for the other kinds."
                                                            },
                                                            "kev_ids": {
                                                                "type": "array",
                                                                "description": "The CVE ids of the vulnerability that are in the CISA Known Exploited Vulnerabilities catalogue, the first 16 stored, in stored order (an ALAS, GHSA or USN finding's `title` hides them); `[]` when none is, and for the other kinds. The single-finding read has the full list.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "kev_ids_truncated": {
                                                                "type": "boolean",
                                                                "description": "Whether more than 16 known-exploited CVE ids are stored; false for the other kinds."
                                                            },
                                                            "epss": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ],
                                                                "description": "The vulnerability's EPSS score, from 0 to 1; null when it has none and for the other kinds."
                                                            },
                                                            "fix_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "Whether a fix exists: `fixed`, `not_fixed`, `wont_fix` or `unknown` for a vulnerability; null for the other kinds."
                                                            },
                                                            "fixed_version": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The version that fixes the vulnerability, when there is one; null for the other kinds."
                                                            },
                                                            "location": {
                                                                "type": "object",
                                                                "description": "Where the finding was found.",
                                                                "properties": {
                                                                    "kind": {
                                                                        "type": "string",
                                                                        "description": "`host`, or `container` for a vulnerability found in a container.",
                                                                        "enum": [
                                                                            "host",
                                                                            "container"
                                                                        ],
                                                                        "x-wt15-open-enum": true
                                                                    },
                                                                    "container_uuid": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's uuid; null on the host, and when the container is no longer on record."
                                                                    },
                                                                    "image_ref": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "kind",
                                                                    "container_uuid",
                                                                    "image_ref"
                                                                ]
                                                            },
                                                            "source": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                                                            }
                                                        },
                                                        "required": [
                                                            "kind",
                                                            "uuid",
                                                            "title",
                                                            "package",
                                                            "key",
                                                            "severity",
                                                            "status",
                                                            "dismissed",
                                                            "kev",
                                                            "kev_ids",
                                                            "kev_ids_truncated",
                                                            "epss",
                                                            "fix_state",
                                                            "fixed_version",
                                                            "location",
                                                            "source"
                                                        ]
                                                    },
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "kind": {
                                                                "type": "string",
                                                                "description": "One of `vulnerability`, `posture`, `indicator`.",
                                                                "const": "indicator"
                                                            },
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The UUID of the finding."
                                                            },
                                                            "title": {
                                                                "type": "string",
                                                                "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                                                            },
                                                            "package": {
                                                                "type": "null",
                                                                "description": "The package of a vulnerability; null for the other kinds."
                                                            },
                                                            "key": {
                                                                "type": "string",
                                                                "description": "The key of a posture check or of a compromise indicator; null for a vulnerability."
                                                            },
                                                            "severity": {
                                                                "type": "string",
                                                                "description": "The finding's level as the list shows it: one of `critical`, `warning` or `info`. For a vulnerability, KEV or vendor `critical` is `critical`, vendor `high` or `medium` is `warning`, the rest `info`."
                                                            },
                                                            "status": {
                                                                "type": "string",
                                                                "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                                                            },
                                                            "dismissed": {
                                                                "type": "boolean",
                                                                "description": "Whether the finding is dismissed."
                                                            },
                                                            "kev": {
                                                                "type": "boolean",
                                                                "description": "Whether the vulnerability is in the CISA Known Exploited Vulnerabilities catalogue; false for the other kinds."
                                                            },
                                                            "kev_ids": {
                                                                "type": "array",
                                                                "description": "The CVE ids of the vulnerability that are in the CISA Known Exploited Vulnerabilities catalogue, the first 16 stored, in stored order (an ALAS, GHSA or USN finding's `title` hides them); `[]` when none is, and for the other kinds. The single-finding read has the full list.",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "kev_ids_truncated": {
                                                                "type": "boolean",
                                                                "description": "Whether more than 16 known-exploited CVE ids are stored; false for the other kinds."
                                                            },
                                                            "epss": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ],
                                                                "description": "The vulnerability's EPSS score, from 0 to 1; null when it has none and for the other kinds."
                                                            },
                                                            "fix_state": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "Whether a fix exists: `fixed`, `not_fixed`, `wont_fix` or `unknown` for a vulnerability; null for the other kinds."
                                                            },
                                                            "fixed_version": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The version that fixes the vulnerability, when there is one; null for the other kinds."
                                                            },
                                                            "location": {
                                                                "type": "object",
                                                                "description": "Where the finding was found.",
                                                                "properties": {
                                                                    "kind": {
                                                                        "type": "string",
                                                                        "description": "`host`, or `container` for a vulnerability found in a container.",
                                                                        "const": "host"
                                                                    },
                                                                    "container_uuid": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's uuid; null on the host, and when the container is no longer on record."
                                                                    },
                                                                    "image_ref": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ],
                                                                        "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "kind",
                                                                    "container_uuid",
                                                                    "image_ref"
                                                                ]
                                                            },
                                                            "source": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                                                            }
                                                        },
                                                        "required": [
                                                            "kind",
                                                            "uuid",
                                                            "title",
                                                            "package",
                                                            "key",
                                                            "severity",
                                                            "status",
                                                            "dismissed",
                                                            "kev",
                                                            "kev_ids",
                                                            "kev_ids_truncated",
                                                            "epss",
                                                            "fix_state",
                                                            "fixed_version",
                                                            "location",
                                                            "source"
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/security-findings/{finding_uuid}": {
            "get": {
                "operationId": "public.servers.securityFinding",
                "description": "Returns one finding of a server, a vulnerability, a posture check or a compromise indicator, with its dismissal, its history and the fields of its kind.",
                "summary": "Get a security finding",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "finding_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the security finding, which must belong to the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The finding.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The finding.",
                                            "$ref": "#/components/schemas/ServersSecurityFindingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.view"
                ]
            }
        },
        "/servers/{server_uuid}/containers": {
            "get": {
                "operationId": "public.servers.containers",
                "description": "Lists the containers running on one server, as its agent last reported them: runtime, image, inventory state and open findings by level. Gone containers are listed with `state=gone` until they are pruned. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's containers",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "state",
                        "in": "query",
                        "description": "Only containers in one of these states: `running` or `gone`. Absent lists the running containers only. A gone container stays listed\nuntil it is pruned: 30 days after it went, or 24 hours after when the agent never read its packages. An archived or paused server\nsends no running set, so its containers are listed as last reported, `running` until a new report says otherwise. A list: repeat the parameter (`state=running&state=gone`) or send one value (`state=running`); `state[]=running` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "running",
                                    "gone"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "runtime",
                        "in": "query",
                        "description": "Only containers of one of these runtimes: `docker`, `podman`, `containerd`, `cri-o` or `unknown`. A list: repeat the parameter (`runtime=docker&runtime=podman`) or send one value (`runtime=docker`); `runtime[]=docker` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "docker",
                                    "podman",
                                    "containerd",
                                    "cri-o",
                                    "unknown"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "inventory_status",
                        "in": "query",
                        "description": "Only containers whose inventory has one of these states: `ok`, `failed`, `unsupported` or `pending` (no inventory reported yet). A list: repeat the parameter (`inventory_status=ok&inventory_status=failed`) or send one value (`inventory_status=ok`); `inventory_status[]=ok` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "ok",
                                    "failed",
                                    "unsupported",
                                    "pending"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only containers whose image name contains this text, case does not matter; at most 128 characters.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 128
                        }
                    },
                    {
                        "name": "image_digest",
                        "in": "query",
                        "description": "Only containers of this image digest: `sha256:` and 64 lowercase hexadecimal characters.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^sha256:[a-f0-9]{64}$"
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `image_ref` (the default), `started_at`, `last_seen` or `findings` (open critical findings first, then warning, then info).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "image_ref",
                                "started_at",
                                "last_seen",
                                "findings",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's containers.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's containers.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the container."
                                                    },
                                                    "runtime": {
                                                        "type": "string",
                                                        "description": "The container runtime: `docker`, `podman`, `containerd`, `cri-o` or `unknown`."
                                                    },
                                                    "container_id": {
                                                        "type": "string",
                                                        "description": "The runtime's own id of the container (a hexadecimal string), never a WatchTower15 id."
                                                    },
                                                    "image_ref": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The image the container runs, as the runtime names it; null when the agent could not read it. It comes from the host, so treat it as untrusted text."
                                                    },
                                                    "image_digest": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The image's digest, `sha256:` and 64 hexadecimal characters; null when the agent could not read it."
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "description": "`running`, or `gone` once the agent no longer lists the container."
                                                    },
                                                    "started_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the container started; null when the agent did not read it.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "first_seen_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the agent first listed the container.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last_seen_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the agent last listed the container.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "gone_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the container was last missing from the agent's list; null while it runs.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "inventory": {
                                                        "type": "object",
                                                        "description": "The container's inventory: what the agent read inside it.",
                                                        "properties": {
                                                            "status": {
                                                                "type": "string",
                                                                "description": "The inventory's state."
                                                            },
                                                            "reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "Why the inventory is `failed` or `unsupported`."
                                                            },
                                                            "reported_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the agent last reported the inventory.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "matched_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the packages were last matched against known vulnerabilities.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "status",
                                                            "reason",
                                                            "reported_at",
                                                            "matched_at"
                                                        ]
                                                    },
                                                    "findings": {
                                                        "type": "object",
                                                        "description": "The container's open vulnerability findings, by level.",
                                                        "properties": {
                                                            "open": {
                                                                "type": "integer",
                                                                "description": "The open findings."
                                                            },
                                                            "critical": {
                                                                "type": "integer",
                                                                "description": "Open findings at the critical level."
                                                            },
                                                            "warning": {
                                                                "type": "integer",
                                                                "description": "Open findings at the warning level."
                                                            },
                                                            "info": {
                                                                "type": "integer",
                                                                "description": "Open findings at the info level."
                                                            },
                                                            "kev": {
                                                                "type": "integer",
                                                                "description": "Open findings that are known exploited vulnerabilities."
                                                            }
                                                        },
                                                        "required": [
                                                            "open",
                                                            "critical",
                                                            "warning",
                                                            "info",
                                                            "kev"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "runtime",
                                                    "container_id",
                                                    "image_ref",
                                                    "image_digest",
                                                    "state",
                                                    "started_at",
                                                    "first_seen_at",
                                                    "last_seen_at",
                                                    "gone_at",
                                                    "inventory",
                                                    "findings"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Facts about the whole list.",
                                            "properties": {
                                                "server": {
                                                    "type": "object",
                                                    "description": "The server the containers belong to.",
                                                    "properties": {
                                                        "uuid": {
                                                            "type": "string",
                                                            "description": "The UUID of the server."
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The name of the server."
                                                        }
                                                    },
                                                    "required": [
                                                        "uuid",
                                                        "name"
                                                    ]
                                                },
                                                "agent_reads_containers": {
                                                    "type": "boolean",
                                                    "description": "Whether the server's agent reads containers at all."
                                                },
                                                "running_set": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "description": "The last report of the server's running containers; null when the agent has never sent one.",
                                                    "properties": {
                                                        "status": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "The last running-set report's state: `ok`, `unsupported` or `failed`."
                                                        },
                                                        "reason": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "Why the report is `unsupported` or `failed`; null otherwise."
                                                        },
                                                        "reported_at": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ],
                                                            "description": "Epoch milliseconds. When the agent last reported the running set.",
                                                            "x-wt15-instant": true
                                                        },
                                                        "capped_count": {
                                                            "type": "integer",
                                                            "description": "How many containers the agent left out of its report, past its limit."
                                                        }
                                                    },
                                                    "required": [
                                                        "status",
                                                        "reason",
                                                        "reported_at",
                                                        "capped_count"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "server",
                                                "agent_reads_containers",
                                                "running_set"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/containers/{container_uuid}": {
            "get": {
                "operationId": "public.servers.container",
                "description": "Returns one container of a server, with its inventory state and its open findings by source and level. Its findings are listed by `servers.securityFindings` with `container_uuid`.",
                "summary": "Get a container",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "container_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the container.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The container.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The container.",
                                            "$ref": "#/components/schemas/ServersContainerResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            }
        },
        "/servers/{server_uuid}/security-findings/{finding_uuid}/dismiss": {
            "post": {
                "operationId": "public.servers.dismissSecurityFinding",
                "description": "Dismisses one finding of this server only (a vulnerability, a posture check or an open compromise indicator), with a reason and an optional day on which the dismissal is reviewed. A dismissed finding stays listed with `dismissed` true and its dismissal recorded.",
                "summary": "Dismiss a security finding",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "finding_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the security finding, which must belong to the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "description": "Why the finding is dismissed.",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "review_on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date",
                                        "description": "The day the dismissal is reviewed, `YYYY-MM-DD`, after today and within two years."
                                    }
                                },
                                "required": [
                                    "reason"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The finding after it was dismissed.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The finding after it was dismissed.",
                                            "$ref": "#/components/schemas/ServersDismissSecurityFindingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/security-findings/{finding_uuid}/restore": {
            "post": {
                "operationId": "public.servers.restoreSecurityFinding",
                "description": "Lifts the dismissal of a finding so it counts again. Answers the finding after the change.",
                "summary": "Restore a security finding",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "finding_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the security finding, which must belong to the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The finding after it was restored.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The finding after it was restored.",
                                            "$ref": "#/components/schemas/ServersRestoreSecurityFindingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/indicator-policies": {
            "get": {
                "operationId": "public.servers.indicatorPolicies",
                "description": "Reads the policy of the two temporary-execution rules (`exe_world_writable`, `tmp_executable`) of this server: the effective policy, the server's own and its profile's.",
                "summary": "Read a server's indicator policies",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The policy of each rule.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The policy of each rule.",
                                            "$ref": "#/components/schemas/ServersIndicatorPoliciesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.view"
                ]
            }
        },
        "/servers/{server_uuid}/indicator-policies/{indicator}": {
            "put": {
                "operationId": "public.servers.updateIndicatorPolicy",
                "description": "Disables or reconfigures one rule on this server: its state, a severity override and known execution folders, with a reason and a review date. Needs the `security.policy` scope. A body that equals the defaults is refused with 422: clear the policy instead. Writing it again with the same values is idempotent.",
                "summary": "Set a server's indicator policy",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "indicator",
                        "in": "path",
                        "required": true,
                        "description": "The rule: `exe_world_writable` or `tmp_executable`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "exe_world_writable",
                                "tmp_executable"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "state": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`on` or `off`: whether the rule is checked. Null inherits the profile's.",
                                        "enum": [
                                            "on",
                                            "off",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "severity": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The severity every object of the rule takes, `critical`, `warning` or `info`; null leaves the rule's own. Never below `warning` in `/dev/shm`.",
                                        "enum": [
                                            "critical",
                                            "warning",
                                            "info",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "known_folders": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Known execution folders, each an absolute path under `/tmp` or `/var/tmp` (not the bare roots, never under `/dev/shm`), at most 32, each at most 1,024 characters. An executable in one, while its folder is private to its owner, is recorded as Info.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 32
                                    },
                                    "reason": {
                                        "type": "string",
                                        "description": "Why the policy is in force, 1 to 500 characters.",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "review_on": {
                                        "type": "string",
                                        "format": "date",
                                        "description": "The day the policy is looked at again, `YYYY-MM-DD`, after today and within 12 months (UTC)."
                                    }
                                },
                                "required": [
                                    "reason",
                                    "review_on"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The policy after the call.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The policy after the call.",
                                            "$ref": "#/components/schemas/ServersUpdateIndicatorPolicyResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.policy"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.servers.clearIndicatorPolicy",
                "description": "Removes the policy of one rule on this server, so the rule reads its defaults (or its profile's). Needs the `security.policy` scope.",
                "summary": "Clear a server's indicator policy",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "indicator",
                        "in": "path",
                        "required": true,
                        "description": "The rule: `exe_world_writable` or `tmp_executable`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "exe_world_writable",
                                "tmp_executable"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The policy was cleared; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.policy"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/os-updates": {
            "get": {
                "operationId": "public.servers.osUpdates",
                "description": "Returns what is waiting to be installed on one server: the updates its own package manager sees (`host`), and for a server locked to an Amazon Linux 2023 release the updates it would have at the latest release (`at_latest`), each with its security count and the five severities, the release lock, the running and newest kernel, whether a reboot is needed, how fresh the report is, and whether and when a recheck is available (`recheck`). A server that has not reported answers `not_reported`. Package names are not listed here: see `servers.osUpdatesPackages`.",
                "summary": "Get a server's OS updates",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The server's OS-updates summary.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server's OS-updates summary.",
                                            "$ref": "#/components/schemas/ServersOsUpdatesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "servers.view"
                ]
            }
        },
        "/servers/{server_uuid}/os-updates/packages": {
            "get": {
                "operationId": "public.servers.osUpdatesPackages",
                "description": "Lists the packages waiting to be installed on one server, security updates first, with their installed and available versions and their advisories. `scope=host` (the default) is what the host's own package manager sees inside its locked release; `scope=latest` is what a server locked to an Amazon Linux 2023 release would install at the latest release, each package with every advisory that names it and the CVE ids Amazon lists. `meta` states how many updates are pending in the scope, whether the stored list was cut at 500 packages and, on `latest`, the Amazon Linux 2023 release the list was matched against; every `latest` row comes from Amazon's core repository, `amazonlinux`. Package names are the host's attack map, so this needs `security.view`. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a server's pending OS update packages",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "scope",
                        "in": "query",
                        "description": "Which list: `host` (the default) is what the host's own package manager sees inside its locked release, `latest` what a server locked to an Amazon Linux 2023 release would install at the latest release (empty for any other server).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "host",
                                "latest",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "security_only",
                        "in": "query",
                        "description": "Only the security updates (`true`, `false`, `1` or `0`).",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the server's pending packages.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the server's pending packages.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The package name."
                                                    },
                                                    "arch": {
                                                        "type": "string",
                                                        "description": "The architecture, such as `x86_64` or `noarch`."
                                                    },
                                                    "current_version": {
                                                        "type": "string",
                                                        "description": "The version on the host now."
                                                    },
                                                    "available_version": {
                                                        "type": "string",
                                                        "description": "The version that would be installed: the host's candidate, or the latest release's."
                                                    },
                                                    "repository": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The repository the package comes from: on `host`, the one the host's package manager offers it from; on `latest`, always `amazonlinux`, because the latest-release list is read from Amazon's AL2023 core repository, so no `latest` row comes from a third-party repository."
                                                    },
                                                    "security": {
                                                        "type": "boolean",
                                                        "description": "Whether it is a security update."
                                                    },
                                                    "severity": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "One of `critical`, `important`, `moderate`, `low`, `unknown` for a security update (`unknown` when its advisory carries none of the four); null when it is not a security update."
                                                    },
                                                    "vendor_severity": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The vendor's own word for the severity; null when it gave none."
                                                    },
                                                    "advisory": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The id of the worst advisory that names the package; null when none does."
                                                    },
                                                    "advisories": {
                                                        "type": "array",
                                                        "description": "`latest` only: every advisory that names the package at a version newer than installed and not newer than the available one, worst severity first, then the id descending, at most 16; `cve_ids` are at most 32 CVE ids from Amazon's metadata and `cve_ids_truncated` says more exist, and `severity` is one of `critical`, `important`, `moderate`, `low`, `unknown`. Never null: it is empty on `host`, and empty when none is known, so a `latest` row with `advisory` set and `advisories` empty was matched before the advisories were kept, and has them after the next hourly match (about an hour for an `aarch64` server, about two for an `x86_64` one).",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The advisory's id, such as `ALAS2023-2025-1180`."
                                                                },
                                                                "severity": {
                                                                    "type": "string",
                                                                    "description": "One of `critical`, `important`, `moderate`, `low`, `unknown`: the advisory's severity."
                                                                },
                                                                "cve_ids": {
                                                                    "type": "array",
                                                                    "description": "The CVE ids the advisory fixes, at most 32.",
                                                                    "items": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "cve_ids_truncated": {
                                                                    "type": "boolean",
                                                                    "description": "Whether the advisory names more than 32 CVE ids."
                                                                }
                                                            },
                                                            "required": [
                                                                "id",
                                                                "severity",
                                                                "cve_ids",
                                                                "cve_ids_truncated"
                                                            ]
                                                        }
                                                    },
                                                    "advisories_truncated": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "`latest` only: whether more than 16 advisories name the package. Null on `host`."
                                                    },
                                                    "only_at_latest": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "`latest` only: true when the host's own list has no package of this name and architecture (it is only at the latest release); null on `host`, and null when the host's list is truncated, since a package past its cut would read true."
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "arch",
                                                    "current_version",
                                                    "available_version",
                                                    "repository",
                                                    "security",
                                                    "severity",
                                                    "vendor_severity",
                                                    "advisory",
                                                    "advisories",
                                                    "advisories_truncated",
                                                    "only_at_latest"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Facts about the whole answer: the `scope` read (one of `host`, `latest`); `updates_total`, how many updates are pending in that scope as the summary counts them, null when none is stored, so a caller sees when the list holds fewer rows than are pending; `truncated`, true when the stored list stopped at 500 packages; `release`, on `latest` the Amazon Linux 2023 release the match was made against, null on `host` and when none is stored.",
                                            "properties": {
                                                "scope": {
                                                    "type": "string",
                                                    "description": "One of `host`, `latest`: the list that was read."
                                                },
                                                "updates_total": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "How many updates are pending in that scope, as the summary counts them; null when none is stored."
                                                },
                                                "truncated": {
                                                    "type": "boolean",
                                                    "description": "Whether the stored list stopped at 500 packages."
                                                },
                                                "release": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "On `latest`, the Amazon Linux 2023 release the match was made against, as the summary's `at_latest.release` names it; null on `host` and when none is stored."
                                                }
                                            },
                                            "required": [
                                                "scope",
                                                "updates_total",
                                                "truncated",
                                                "release"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/servers/{server_uuid}/os-updates/recheck": {
            "post": {
                "operationId": "public.servers.recheckOsUpdates",
                "description": "Asks the server's agent to read its pending updates and its package inventory now, instead of at the next scheduled check, so a patched server's answer becomes current within minutes. The agent reads what the host's package manager left; it never runs it. The call returns at once with the recheck's uuid, and `servers.osUpdates` shows its progress in `recheck.last`: once it is `completed` a report arrived, and the counts are current only when the summary's `status` is `ok`. It is refused for a Windows server, a container, an agent that needs updating, an inactive server, while a recheck is waiting and when asked again within 10 minutes; read `recheck.state` first to know.",
                "summary": "Recheck a server's OS updates",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The request was accepted; the recheck's task is returned and the agent reads the host.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The request was accepted; the recheck's task is returned and the agent reads the host.",
                                            "$ref": "#/components/schemas/ServersRecheckOsUpdatesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/security-posture/recheck": {
            "post": {
                "operationId": "public.servers.recheckPosture",
                "description": "Asks the server's agent to run its security-posture checks again, like the console's Check now. The check itself runs on the agent, so the call returns at once with the server and the results follow later; it is refused for a container, while a check is pending and when asked again within a few minutes.",
                "summary": "Recheck a server's security posture",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The request was accepted; the server is returned and the agent runs the check.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The request was accepted; the server is returned and the agent runs the check.",
                                            "$ref": "#/components/schemas/ServersRecheckPostureResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "security.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/servers/{server_uuid}/alarm-snooze": {
            "put": {
                "operationId": "public.servers.setAlarmSnooze",
                "description": "Holds the alarm notifications of one server for a set time, as the console's Snooze does. The alarms keep evaluating the whole time: incidents still open, escalate, step down and resolve, and health and the alarm states keep their real values; only the automatic notifications are held. It covers the server's own alarms and those of its volumes, ports and systemd units, including the `*_reporting_stopped` alarms, so snoozing a server before a reboot keeps it quiet. The server's database instances, services, domains, log sources and custom metrics are their own resources and are not covered. While a snooze is live, a new or escalated incident whose alarm has a notification policy is held, not sent, and reads `notification_held_at` on the incident. An incident that resolves while the server is snoozed is resolved without a notification, even one that was notified before the snooze started, and an incident whose trigger was held is resolved without one too: the team is not told that an earlier page cleared. A person's acknowledge or resolve still notifies and clears the hold, snoozed or not. When the snooze ends, by its time or by `DELETE`, each incident still open whose notification was held is notified once at its current severity (the stored message, so it may read as lowered from a higher severity); one already acknowledged or resolved is cleared without a notification. That release is made by a sweep that runs every minute, so it can lag the end by up to a minute. A server is also snoozed while its server profile's snooze is live (read the server's `alarm_snooze`): it stays quiet until the later of the two ends, and ending one leaves the other in force. Send `duration` (a whole number, at least 1) and `unit` (`minutes`, `hours` or `days`), counted from now: the total is 1 minute to 30 days, and more is refused with 422. Setting a snooze on a server that already has one replaces its end, so a second call extends or shortens it, and there is one snooze for each. `reason` is optional, plain text, at most 500 characters. A snooze takes effect from the next evaluation pass (up to a minute), so a notification can still go out in the pass that is running when you call, and likewise an end takes effect from the next pass. Needs the `alarms.edit` scope.",
                "summary": "Snooze a server's alarms",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "duration": {
                                        "type": "integer",
                                        "description": "How long the snooze lasts, a whole number of `unit`s, at least 1. The total is 1 minute to 30 days: at most 43200 `minutes`, 720 `hours` or 30 `days`.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "unit": {
                                        "type": "string",
                                        "description": "The unit of `duration`: `minutes`, `hours` or `days`.",
                                        "enum": [
                                            "minutes",
                                            "hours",
                                            "days"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the alarms are snoozed, plain text, at most 500 characters; null or left out for none. It is shown to the team with the snooze.",
                                        "maxLength": 500
                                    }
                                },
                                "required": [
                                    "duration",
                                    "unit"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The server's snooze after the call: when it ends, which snooze (its own or its profile's) ends later, its own snooze and its profile's.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The server's snooze after the call: when it ends, which snooze (its own or its profile's) ends later, its own snooze and its profile's.",
                                            "$ref": "#/components/schemas/ServersAlarmSnoozeSetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.servers.endAlarmSnooze",
                "description": "Ends the server's own alarm snooze early, so held notifications are released by the next sweep (up to a minute), as described for `PUT`. The call is safe to repeat: it answers 204 also when the server had no live snooze, since the end state is what you asked for. A snooze on the server's profile is not ended by this call and still holds the server's notifications; end it on the profile. Needs the `alarms.edit` scope.",
                "summary": "End a server's alarm snooze",
                "tags": [
                    "Servers"
                ],
                "parameters": [
                    {
                        "name": "server_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the server.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The snooze was ended, or there was none; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services": {
            "get": {
                "operationId": "public.services.list",
                "description": "Returns the organisation's services, filtered by search text or tags and sorted by name, health, last scan or response time. Each row summarises the service's definition, status, health, latest response time and collector pool. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List services",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only services whose name or host contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "tag_uuids",
                        "in": "query",
                        "description": "Only services carrying at least one of these tags, as tag UUIDs. A list: repeat the parameter (`tag_uuids=<uuid>&tag_uuids=<uuid>`) or send one value (`tag_uuids=<uuid>`); `tag_uuids[]=<uuid>` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `name`, `health`, `last_scan` or `response_time`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "health",
                                "last_scan",
                                "response_time",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's services.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's services.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The service's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The service's name."
                                                    },
                                                    "step_count": {
                                                        "type": "integer",
                                                        "description": "How many steps the service has, 1 to 10.",
                                                        "minimum": 0
                                                    },
                                                    "step_types": {
                                                        "type": "array",
                                                        "description": "The types of its steps, each once, in order of first use: `http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "health_status": {
                                                        "type": "string",
                                                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                                                        "enum": [
                                                            "suspended",
                                                            "pending",
                                                            "up",
                                                            "down"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether monitoring is switched on."
                                                    },
                                                    "check_interval_seconds": {
                                                        "type": "integer",
                                                        "description": "Seconds between two checks."
                                                    },
                                                    "run_budget_seconds": {
                                                        "type": "integer",
                                                        "description": "Seconds one whole run may take."
                                                    },
                                                    "latest_response_time_ms": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The latest scored reachability result's response time."
                                                    },
                                                    "latest_checked_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the latest scored reachability result completed; null with none.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "collector_status": {
                                                        "type": "string",
                                                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                                                    },
                                                    "collector_status_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                                                    },
                                                    "pool_mode": {
                                                        "type": "string",
                                                        "description": "`active_standby` (one collector with a standby) or `all_members` (every collector in the pool reports)."
                                                    },
                                                    "member_count": {
                                                        "type": "integer",
                                                        "description": "How many collectors are in the pool."
                                                    },
                                                    "alarm_snooze": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                                                        "properties": {
                                                            "until": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                                                "x-wt15-instant": true
                                                            },
                                                            "reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The reason given when it was set; null when none was."
                                                            },
                                                            "set_at": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ],
                                                                "description": "Epoch milliseconds. When it was last set.",
                                                                "x-wt15-instant": true
                                                            }
                                                        },
                                                        "required": [
                                                            "until",
                                                            "reason",
                                                            "set_at"
                                                        ]
                                                    },
                                                    "console_url": {
                                                        "type": "string",
                                                        "description": "The service's page in the console."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "step_count",
                                                    "step_types",
                                                    "health_status",
                                                    "status",
                                                    "active",
                                                    "check_interval_seconds",
                                                    "run_budget_seconds",
                                                    "latest_response_time_ms",
                                                    "latest_checked_at",
                                                    "collector_status",
                                                    "collector_status_reason",
                                                    "pool_mode",
                                                    "member_count",
                                                    "alarm_snooze",
                                                    "console_url"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.services.create",
                "description": "Adds a service to monitor, with the servers that check it chosen by hand or by tags. Parameters and authentication need the `services.parameters` scope on the key and the permission on the owner's role (a service account's key: the scope alone), and are refused with 403 otherwise. Refuses an organisation over its service limit and one that needs a payment method.",
                "summary": "Create a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The service's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "check_interval_seconds": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Seconds between two checks, from 60 to 86400 and at least the run budget rounded up to a whole minute; 60 when omitted on create.",
                                        "minimum": 60,
                                        "maximum": 86400
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the service; null or omitted stores none."
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether monitoring is switched on; on when omitted."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the service carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "parameters": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The parameter definitions the check reads (name, source, format and selector, never a value). Needs the `services.parameters` permission.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "steps": {
                                        "type": "array",
                                        "description": "The service's steps, 1 to 10, in order. Each step makes a request of any protocol (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), verifies the answer with assertions, extracts values for later steps and decides what happens next. A single check is a one-step service. A step may carry `keep_evidence` (boolean): whether it keeps what its server answered as evidence, on for a new step; on an update, a step sent with its `uuid` and no `keep_evidence` keeps the stored value. The write-only parts of a step (header names and values, bodies, cookies, query strings, payloads, messages, metadata and every authentication field) are never returned.",
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "minItems": 1,
                                        "maxItems": 10
                                    },
                                    "variables": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The values generated for each run (up to 10): `numeric`, `alphabetic`, `alphanumeric`, `uuid`, `timestamp`, `date`, `run_uuid` and `service_uuid`.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 10,
                                        "writeOnly": true
                                    },
                                    "run": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The whole run: `budget_seconds` (5 to 300; the sum of the steps' own times when omitted) and `fast_retry` (`count` 0 to 3, `interval_ms` 0 to 60,000).",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "collectors": {
                                        "type": "object",
                                        "description": "The servers that run the check, chosen by hand or by tags. Required on create.",
                                        "properties": {
                                            "selection": {
                                                "type": "string",
                                                "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                                "enum": [
                                                    "servers",
                                                    "tags"
                                                ],
                                                "x-wt15-open-enum": true
                                            },
                                            "servers": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The uuids of the servers to use, in order, with selection `servers`; at most 50.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 50
                                            },
                                            "all": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry all of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            },
                                            "any": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry at least one of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            }
                                        }
                                    },
                                    "pool_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`active_standby` (one collector with a standby) or `all_members` (every collector in the pool reports).",
                                        "enum": [
                                            "active_standby",
                                            "all_members",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "member_limit": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, the most collectors that report, from 1 to the pool limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    },
                                    "quorum_n": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, how many collectors must agree, from 1 and at most the member limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    }
                                },
                                "required": [
                                    "name",
                                    "steps",
                                    "collectors"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The service that was created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service that was created.",
                                            "$ref": "#/components/schemas/ServicesCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}": {
            "get": {
                "operationId": "public.services.view",
                "description": "Returns one service with its definition, its latest scored reachability and response results, the state of its collector pool and its tags. Request headers, the body and authentication secrets are never returned. Opening a service may also add any default alarms the catalogue gained since it was created, as the console's page does.",
                "summary": "Get a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service.",
                                            "$ref": "#/components/schemas/ServicesViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            },
            "put": {
                "operationId": "public.services.update",
                "description": "Replaces a service's definition; the fields the answer of `GET /v1/services/{service_uuid}` leaves out are kept from the stored service when omitted. Omitted request headers keep their stored names, an omitted body is kept while the destination is unchanged, and an omitted password or token is kept. Changing the destination without re-sending a stored body or header value is refused.",
                "summary": "Update a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The service's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "check_interval_seconds": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Seconds between two checks, from 60 to 86400 and at least the timeout rounded up to a whole minute.",
                                        "minimum": 60,
                                        "maximum": 86400
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the service; omit to keep the current notes, null clears them."
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether monitoring is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the service carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "parameters": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The parameter definitions the check reads (name, source, format and selector, never a value). Needs the `services.parameters` permission.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "steps": {
                                        "type": "array",
                                        "description": "The service's steps, 1 to 10, in order. Each step makes a request of any protocol (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), verifies the answer with assertions, extracts values for later steps and decides what happens next. A single check is a one-step service. A step may carry `keep_evidence` (boolean): whether it keeps what its server answered as evidence, on for a new step; on an update, a step sent with its `uuid` and no `keep_evidence` keeps the stored value. The write-only parts of a step (header names and values, bodies, cookies, query strings, payloads, messages, metadata and every authentication field) are never returned.",
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "minItems": 1,
                                        "maxItems": 10
                                    },
                                    "variables": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The values generated for each run (up to 10): `numeric`, `alphabetic`, `alphanumeric`, `uuid`, `timestamp`, `date`, `run_uuid` and `service_uuid`.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 10,
                                        "writeOnly": true
                                    },
                                    "run": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The whole run: `budget_seconds` (5 to 300; the sum of the steps' own times when omitted) and `fast_retry` (`count` 0 to 3, `interval_ms` 0 to 60,000).",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "collectors": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "The servers that run the check, chosen by hand or by tags; omit to leave the pool unchanged.",
                                        "properties": {
                                            "selection": {
                                                "type": "string",
                                                "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                                "enum": [
                                                    "servers",
                                                    "tags"
                                                ],
                                                "x-wt15-open-enum": true
                                            },
                                            "servers": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The uuids of the servers to use, in order, with selection `servers`; at most 50.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 50
                                            },
                                            "all": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry all of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            },
                                            "any": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry at least one of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            }
                                        }
                                    },
                                    "pool_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`active_standby` (one collector with a standby) or `all_members` (every collector in the pool reports).",
                                        "enum": [
                                            "active_standby",
                                            "all_members",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "member_limit": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, the most collectors that report, from 1 to the pool limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    },
                                    "quorum_n": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, how many collectors must agree, from 1 and at most the member limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    }
                                },
                                "required": [
                                    "name",
                                    "active",
                                    "steps"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The service after the update.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service after the update.",
                                            "$ref": "#/components/schemas/ServicesUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.services.delete",
                "description": "Deletes the service and stops monitoring it.",
                "summary": "Delete a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The service was deleted; there is no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/collectors": {
            "get": {
                "operationId": "public.services.collectors",
                "description": "Returns the servers of the service's collector pool: each one's role (`active` and `standby` in active-standby mode, `member` in every-collector mode, `cold` for a candidate), whether it is eligible, why it is excluded, and the time and result of its last check. A server's address is never returned.",
                "summary": "List a service's collectors",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service in the path.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service's collector pool.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service's collector pool.",
                                            "$ref": "#/components/schemas/ServicesCollectorsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            }
        },
        "/services/{service_uuid}/scans": {
            "get": {
                "operationId": "public.services.scans",
                "description": "Returns the service's completed results of one type (`reachability` or `response`), newest first, one cursor page at a time, from every collector. The list holds every result of the last 168 hours and then, before `meta.history_only_before`, only the results that mattered: the first failure of a streak, one an hour while it lasts and the recovery, kept for ten years. Each row has the common fields and those of its type; a result kept for ten years has no `error_message` and no `content_type`.",
                "summary": "List a service's results",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "description": "The result type to list: `reachability` or `response`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "reachability",
                                "response"
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "The `next_cursor` of the previous page; omit it for the first page.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 512
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the service's completed results of the requested type.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the service's completed results of the requested type.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The result's uuid."
                                                    },
                                                    "outcome": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The scanner's verdict on a result from a former scanner; null on every result a collector reported and on a result kept past 168 hours."
                                                    },
                                                    "completed_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds: when the result completed; null while it has not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "execution_time_ms": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "How long the check took, in milliseconds; null when unknown."
                                                    },
                                                    "error_message": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The error text of a failed check, without any parameter value; null when the check passed and on a result kept past 168 hours."
                                                    },
                                                    "confirmation": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Whether a failure was confirmed by the standby collector: `pending`, `confirmed` or `unconfirmed`; null for a result that passed."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The failure's reason class (for example `dns`, `refused`, `timeout`); null when the check passed or failed only on an assertion."
                                                    },
                                                    "is_reachable": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the host and port answered within the timeout; null until completed. Present on `reachability` results only."
                                                    },
                                                    "response_time_ms": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The connect or request time, in milliseconds; null when none was measured. Present on both result types."
                                                    },
                                                    "ip_resolved": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The address the host resolved to on the collector; null when it did not resolve. Present on `reachability` results only."
                                                    },
                                                    "is_up": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether every configured response check passed; null until completed. Present on `response` results only."
                                                    },
                                                    "http_status_code": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The HTTP status code received; null when the request failed. Present on `response` results only."
                                                    },
                                                    "status_match": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the status was one of the expected statuses; null when not judged. Present on `response` results only."
                                                    },
                                                    "body_match": {
                                                        "type": [
                                                            "boolean",
                                                            "null"
                                                        ],
                                                        "description": "Whether the body contained the expected text; null when not judged. Present on `response` results only."
                                                    },
                                                    "content_type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The `Content-Type` header of the response; null when none was received and on a result kept past 168 hours. Present on `response` results only."
                                                    },
                                                    "response_size_bytes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "The size of the response body, in bytes; null when unknown. Present on `response` results only."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "outcome",
                                                    "completed_at",
                                                    "execution_time_ms",
                                                    "error_message",
                                                    "confirmation",
                                                    "reason"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The cursor for the next page; null on the last page."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "The number of matching results: the table's rows from the last 168 hours plus the kept results before them, counted on the first page."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Where the list stops holding every result.",
                                            "properties": {
                                                "history_only_before": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds: before this time the list holds only the results that mattered (the first failure of a streak, one an hour while it lasts, the recovery), kept for ten years.",
                                                    "x-wt15-instant": true
                                                }
                                            },
                                            "required": [
                                                "history_only_before"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/services/{service_uuid}/runs": {
            "get": {
                "operationId": "public.services.runsList",
                "description": "Returns the runs of a workflow service in a time window, newest first, one cursor page at a time, from every collector: each run has its status, its reason, its duration against its budget, the collector that ran it and the step that failed. A window inside the last 30 days is read from every run; the part of a window older than that holds only the runs that mattered (the first failed run of a streak, one a hour while it lasts, and the recovery), and `meta.history_only_before` says where that begins. A service that is not a workflow answers an empty page with `meta.path` `check`: its results are `GET /v1/services/{service_uuid}/scans`.",
                "summary": "List a service's runs",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "description": "A relative window ending now: 1 to 9999 minutes, hours, days or weeks (`3h`, `2w`). Not with `from` and `to`. The operation names its longest window and its default.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "The start of a pinned window, epoch milliseconds or RFC 3339 with an offset. Needs `to`. A start before the oldest data kept is served from it.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "The end of a pinned window, epoch milliseconds or RFC 3339 with an offset, after `from`. A window that ends before the oldest data kept, or in the future, is refused.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only runs with one of these statuses: `passed`, `failed`, `budget_exceeded` or `refused`. Repeat the parameter (`status[]=failed&status[]=budget_exceeded`) for several. A list: repeat the parameter (`status=passed&status=failed`) or send one value (`status=passed`); `status[]=passed` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "passed",
                                    "failed",
                                    "budget_exceeded",
                                    "refused"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "maxItems": 4
                        },
                        "explode": true
                    },
                    {
                        "name": "collector_uuid",
                        "in": "query",
                        "description": "Only runs of this collector, by the server's uuid.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
                        }
                    },
                    {
                        "name": "failed_step_uuid",
                        "in": "query",
                        "description": "Only runs whose failed step is this one, by the step's uuid.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "The `next_cursor` of the previous page; omit it for the first page.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 512
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many runs one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the service's runs.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the service's runs.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "run_uuid": {
                                                        "type": "string",
                                                        "description": "The run's uuid."
                                                    },
                                                    "collector": {
                                                        "type": "object",
                                                        "description": "The server that ran the run.",
                                                        "properties": {
                                                            "uuid": {
                                                                "type": "string",
                                                                "description": "The uuid of the server that ran it."
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The server's name; null when the server is gone."
                                                            }
                                                        },
                                                        "required": [
                                                            "uuid",
                                                            "name"
                                                        ]
                                                    },
                                                    "version_uuid": {
                                                        "type": "string",
                                                        "description": "The uuid of the service's saved version that this run ran."
                                                    },
                                                    "version": {
                                                        "type": "integer",
                                                        "description": "The number of that version, 1 for the first."
                                                    },
                                                    "trigger": {
                                                        "type": "string",
                                                        "description": "`scheduled` for a run on the service's own schedule, `probe` for a run asked for by a probe or a standby collector."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `passed`, `failed`, `budget_exceeded` (the run used its whole time budget) and `refused` (the collector would not run the definition)."
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "A short name for why a `budget_exceeded` or `refused` run ended so, for example `budget_exceeded`, `definition_unsupported`; null otherwise."
                                                    },
                                                    "started_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds: when the run started.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "completed_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds: when the run completed.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "duration_ms": {
                                                        "type": "integer",
                                                        "description": "How long the whole run took, in milliseconds."
                                                    },
                                                    "budget_ms": {
                                                        "type": "integer",
                                                        "description": "The time budget of the run, in milliseconds."
                                                    },
                                                    "attempts": {
                                                        "type": "integer",
                                                        "description": "How many times the run was tried: 1 plus its fast retries."
                                                    },
                                                    "failed_step_uuid": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The uuid of the first step that failed and stopped the run; null when no step did."
                                                    },
                                                    "failed_reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Why that step failed, a short name such as `timeout` or `assertion_failed`; null when none did."
                                                    },
                                                    "steps_run": {
                                                        "type": "integer",
                                                        "description": "How many steps ran: every step but the ones skipped."
                                                    },
                                                    "eventful": {
                                                        "type": "boolean",
                                                        "description": "Whether this run is one the service keeps for ten years: the first failed run of a streak, one an hour while it lasts and the recovery."
                                                    },
                                                    "retention": {
                                                        "type": "string",
                                                        "description": "`recent` for a run kept for 30 days, `history` for one kept for 10 years."
                                                    }
                                                },
                                                "required": [
                                                    "run_uuid",
                                                    "collector",
                                                    "version_uuid",
                                                    "version",
                                                    "trigger",
                                                    "status",
                                                    "reason",
                                                    "started_at",
                                                    "completed_at",
                                                    "duration_ms",
                                                    "budget_ms",
                                                    "attempts",
                                                    "failed_step_uuid",
                                                    "failed_reason",
                                                    "steps_run",
                                                    "eventful",
                                                    "retention"
                                                ]
                                            }
                                        },
                                        "next_cursor": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The cursor for the next page; null on the last page."
                                        },
                                        "total": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "Always null: a service's runs are not counted."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "description": "Where the history-only part of the list begins and which kind of service this is.",
                                            "properties": {
                                                "history_only_before": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Epoch milliseconds: before this time the list holds the eventful runs only.",
                                                    "x-wt15-instant": true
                                                },
                                                "path": {
                                                    "type": "string",
                                                    "description": "`workflow` for a workflow service, `check` for one that is not: its results are `GET /v1/services/{service_uuid}/scans`."
                                                }
                                            },
                                            "required": [
                                                "history_only_before",
                                                "path"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "next_cursor",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/services/{service_uuid}/runs/{run_uuid}": {
            "get": {
                "operationId": "public.services.runsView",
                "description": "Returns one run of a workflow service with every step's outcome: its status, reason, attempts, timings and the numbers it observed (a status code, a response time), the assertions' outcomes and the extractions' outcomes, never a value. A run is kept for 30 days; the runs that mattered (the first failed run of a streak, one a hour while it lasts and the recovery) are kept for 10 years, and `retention` says which. A run that is no longer kept answers not found.",
                "summary": "Get a service run",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "run_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the run, from the runs list.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The run and its steps.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The run and its steps.",
                                            "$ref": "#/components/schemas/ServicesRunsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            }
        },
        "/services/{service_uuid}/versions": {
            "get": {
                "operationId": "public.services.versions",
                "description": "Lists every saved version of a service, newest first. Every save of a service writes a version that is live at once; versions are kept for ever. A row says which version it is, when and by whom it was saved and how many steps it held; `services.versionsView` returns the definition. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List a service's versions",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the service's versions.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the service's versions.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The version's uuid."
                                                    },
                                                    "version": {
                                                        "type": "integer",
                                                        "description": "The version's number: 1 for the first save, one more for each save after."
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the version was saved.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "created_by": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "description": "Who saved it; null when the system did (a conversion).",
                                                        "properties": {
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The display name of the person who saved the version."
                                                            }
                                                        },
                                                        "required": [
                                                            "name"
                                                        ]
                                                    },
                                                    "step_count": {
                                                        "type": "integer",
                                                        "description": "How many steps the version held."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "version",
                                                    "created_at",
                                                    "created_by",
                                                    "step_count"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/services/{service_uuid}/versions/{version_uuid}": {
            "get": {
                "operationId": "public.services.versionsView",
                "description": "Returns one saved version of a service: its steps, variables and run as they were when that version was saved. Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                "summary": "Get a service version",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "version_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the version, from `services.versions`; it must belong to the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The version.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The version.",
                                            "$ref": "#/components/schemas/ServicesVersionsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            }
        },
        "/services/import": {
            "post": {
                "operationId": "public.services.import",
                "description": "Reads a pasted cURL command, or one operation of a pasted OpenAPI document (JSON or YAML, up to 1 MB, named by its operationId or as \"METHOD path\"), and answers the step it makes. Nothing is saved: send the step in a create or an update. Every credential in the source becomes a `{{param.name}}` reference listed in `parameters_needed`, which you add to the service as Parameters; its value is in no answer. A flag or part the reader does not know is named in `unread_flags`. A document is pasted, never fetched: a `url` is refused.",
                "summary": "Import a step",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "source": {
                                        "type": "string",
                                        "description": "What the text is: `curl` for a cURL command, `openapi` for an OpenAPI document.",
                                        "enum": [
                                            "curl",
                                            "openapi"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "source_text": {
                                        "type": "string",
                                        "description": "The pasted cURL command or OpenAPI document (JSON or YAML), up to 1 MB. It is never logged.",
                                        "maxLength": 1048576
                                    },
                                    "operation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "With `openapi`, the operation to read: its `operationId`, or `METHOD path` such as `GET /pets/{petId}`.",
                                        "maxLength": 255
                                    },
                                    "url": {
                                        "type": "string",
                                        "description": "Refused: a document is pasted, never fetched."
                                    }
                                },
                                "required": [
                                    "source",
                                    "source_text"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The step, the parameters it needs and what was not read.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The step, the parameters it needs and what was not read.",
                                            "$ref": "#/components/schemas/ServicesImportResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/collector-preview": {
            "post": {
                "operationId": "public.services.collectorPreview",
                "description": "Lists the servers a collector selection, by hand or by tags, would pick, with the role each would get, why each excluded server is left out and any warning about the pool. It reads only: nothing is saved and no server is contacted.",
                "summary": "Preview service collectors",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "selection": {
                                        "type": "string",
                                        "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                        "enum": [
                                            "servers",
                                            "tags"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "servers": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the servers to preview, with `selection` `servers`.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 50
                                    },
                                    "all": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Servers must carry ALL of these tags.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "any": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "Servers must carry ANY of these tags.",
                                        "items": {
                                            "type": "string",
                                            "format": "uuid"
                                        },
                                        "maxItems": 20
                                    },
                                    "with_parameters": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the preview asks for the collectors that can read a parameter."
                                    }
                                },
                                "required": [
                                    "selection"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The matching servers and the pool's warnings.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The matching servers and the pool's warnings.",
                                            "$ref": "#/components/schemas/ServicesCollectorPreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/test-runs": {
            "post": {
                "operationId": "public.services.testRunsStartNew",
                "description": "Runs one check of a service definition that is not saved, from one live collector of its pool, and answers `202` with the test's uuid. Poll `GET /v1/service-test-runs/{test_uuid}` for the result, which carries each check's reason and observed numbers and never a value or a response snippet. The body is the create body; the same refusals apply, and one test is allowed every 30 seconds, 20 an hour per organisation.",
                "summary": "Test a service definition",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The service's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "check_interval_seconds": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Seconds between two checks, from 60 to 86400 and at least the run budget rounded up to a whole minute; 60 when omitted on create.",
                                        "minimum": 60,
                                        "maximum": 86400
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the service; null or omitted stores none."
                                    },
                                    "active": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether monitoring is switched on; on when omitted."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the service carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "parameters": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The parameter definitions the check reads (name, source, format and selector, never a value). Needs the `services.parameters` permission.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "steps": {
                                        "type": "array",
                                        "description": "The service's steps, 1 to 10, in order. Each step makes a request of any protocol (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), verifies the answer with assertions, extracts values for later steps and decides what happens next. A single check is a one-step service. A step may carry `keep_evidence` (boolean): whether it keeps what its server answered as evidence, on for a new step; on an update, a step sent with its `uuid` and no `keep_evidence` keeps the stored value. The write-only parts of a step (header names and values, bodies, cookies, query strings, payloads, messages, metadata and every authentication field) are never returned.",
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "minItems": 1,
                                        "maxItems": 10
                                    },
                                    "variables": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The values generated for each run (up to 10): `numeric`, `alphabetic`, `alphanumeric`, `uuid`, `timestamp`, `date`, `run_uuid` and `service_uuid`.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 10,
                                        "writeOnly": true
                                    },
                                    "run": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The whole run: `budget_seconds` (5 to 300; the sum of the steps' own times when omitted) and `fast_retry` (`count` 0 to 3, `interval_ms` 0 to 60,000).",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "collectors": {
                                        "type": "object",
                                        "description": "The servers that run the check, chosen by hand or by tags. Required on create.",
                                        "properties": {
                                            "selection": {
                                                "type": "string",
                                                "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                                "enum": [
                                                    "servers",
                                                    "tags"
                                                ],
                                                "x-wt15-open-enum": true
                                            },
                                            "servers": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The uuids of the servers to use, in order, with selection `servers`; at most 50.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 50
                                            },
                                            "all": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry all of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            },
                                            "any": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry at least one of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            }
                                        }
                                    },
                                    "pool_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`active_standby` (one collector with a standby) or `all_members` (every collector in the pool reports).",
                                        "enum": [
                                            "active_standby",
                                            "all_members",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "member_limit": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, the most collectors that report, from 1 to the pool limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    },
                                    "quorum_n": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, how many collectors must agree, from 1 and at most the member limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    }
                                },
                                "required": [
                                    "name",
                                    "steps",
                                    "collectors"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "The test, waiting for its collector.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The test, waiting for its collector.",
                                            "$ref": "#/components/schemas/ServicesTestRunsStartNewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/service-test-runs/{test_uuid}": {
            "get": {
                "operationId": "public.services.testRunsView",
                "description": "Returns one service test started by the same key's user within the last hour: `waiting`, `picked_up`, `passed`, `failed` or `no_answer`, the collector that ran it and, once it ended, each check's result. A result carries reasons and observed numbers, never a value, a resolved address or a response snippet.",
                "summary": "Get a service test",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "test_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the test run in the path, as answered when the test was started.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service test.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service test.",
                                            "$ref": "#/components/schemas/ServicesTestRunsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            }
        },
        "/services/{service_uuid}/test-runs": {
            "post": {
                "operationId": "public.services.testRunsStartSaved",
                "description": "Runs one check of the service with the definition sent, as `PUT /v1/services/{service_uuid}` would save it, from one live collector of its pool, and answers `202` with the test's uuid. Nothing is saved. A stored secret that is not sent is used as saved. Poll `GET /v1/service-test-runs/{test_uuid}` for the result.",
                "summary": "Test a saved service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The service's name, up to 255 characters.",
                                        "maxLength": 255
                                    },
                                    "check_interval_seconds": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Seconds between two checks, from 60 to 86400 and at least the timeout rounded up to a whole minute.",
                                        "minimum": 60,
                                        "maximum": 86400
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Free-form notes about the service; omit to keep the current notes, null clears them."
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether monitoring is switched on."
                                    },
                                    "tag_uuids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The uuids of the tags the service carries.",
                                        "items": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "uuid"
                                        }
                                    },
                                    "parameters": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The parameter definitions the check reads (name, source, format and selector, never a value). Needs the `services.parameters` permission.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "steps": {
                                        "type": "array",
                                        "description": "The service's steps, 1 to 10, in order. Each step makes a request of any protocol (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), verifies the answer with assertions, extracts values for later steps and decides what happens next. A single check is a one-step service. A step may carry `keep_evidence` (boolean): whether it keeps what its server answered as evidence, on for a new step; on an update, a step sent with its `uuid` and no `keep_evidence` keeps the stored value. The write-only parts of a step (header names and values, bodies, cookies, query strings, payloads, messages, metadata and every authentication field) are never returned.",
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "minItems": 1,
                                        "maxItems": 10
                                    },
                                    "variables": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The values generated for each run (up to 10): `numeric`, `alphabetic`, `alphanumeric`, `uuid`, `timestamp`, `date`, `run_uuid` and `service_uuid`.",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 10,
                                        "writeOnly": true
                                    },
                                    "run": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "description": "The whole run: `budget_seconds` (5 to 300; the sum of the steps' own times when omitted) and `fast_retry` (`count` 0 to 3, `interval_ms` 0 to 60,000).",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "collectors": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "The servers that run the check, chosen by hand or by tags; omit to leave the pool unchanged.",
                                        "properties": {
                                            "selection": {
                                                "type": "string",
                                                "description": "`servers` for a hand-picked list, `tags` for servers chosen by their tags.",
                                                "enum": [
                                                    "servers",
                                                    "tags"
                                                ],
                                                "x-wt15-open-enum": true
                                            },
                                            "servers": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "The uuids of the servers to use, in order, with selection `servers`; at most 50.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 50
                                            },
                                            "all": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry all of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            },
                                            "any": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "description": "Servers must carry at least one of these tags, as tag UUIDs, with selection `tags`; at most 20.",
                                                "items": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                },
                                                "maxItems": 20
                                            }
                                        }
                                    },
                                    "pool_mode": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "`active_standby` (one collector with a standby) or `all_members` (every collector in the pool reports).",
                                        "enum": [
                                            "active_standby",
                                            "all_members",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "member_limit": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, the most collectors that report, from 1 to the pool limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    },
                                    "quorum_n": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "With `all_members`, how many collectors must agree, from 1 and at most the member limit; only valid in that mode.",
                                        "minimum": 1,
                                        "maximum": 200
                                    }
                                },
                                "required": [
                                    "name",
                                    "active",
                                    "steps"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "The test, waiting for its collector.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The test, waiting for its collector.",
                                            "$ref": "#/components/schemas/ServicesTestRunsStartSavedResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/duplicate": {
            "post": {
                "operationId": "public.services.duplicate",
                "description": "Creates a copy of a service with the same steps, variables, run, parameters and collector rule. The copy is paused, holds new step uuids and no lease, so it never doubles checks until you resume it. Refuses an organisation over its service limit and one that needs a payment method.",
                "summary": "Duplicate a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service to copy.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The copy's name, up to 255 characters; `Copy of <name>` when omitted.",
                                        "maxLength": 255
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The new copy of the service.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new copy of the service.",
                                            "$ref": "#/components/schemas/ServicesDuplicateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/verify": {
            "post": {
                "operationId": "public.services.verify",
                "description": "Asks every current candidate collector to probe the service now. A paused service, or one with no collectors chosen, has nobody to ask. Answers the service as the single-service read does.",
                "summary": "Test a service's collectors",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service, with the probes requested.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service, with the probes requested.",
                                            "$ref": "#/components/schemas/ServicesVerifyResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/reassign": {
            "post": {
                "operationId": "public.services.reassign",
                "description": "Moves checking to the standby collector at once; the previous active collector becomes the standby and its late results are ignored. Refused in `all_members` mode, where every member checks. Answers the service as the single-service read does.",
                "summary": "Reassign a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service after the reassignment.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service after the reassignment.",
                                            "$ref": "#/components/schemas/ServicesReassignResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/pause": {
            "post": {
                "operationId": "public.services.pause",
                "description": "Pauses monitoring: the service is switched off, open incidents on it are resolved and its collectors stop checking. Answers the service as the single-service read does.",
                "summary": "Pause a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service after it was paused.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service after it was paused.",
                                            "$ref": "#/components/schemas/ServicesPauseResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/resume": {
            "post": {
                "operationId": "public.services.resume",
                "description": "Resumes a paused service: checking and billing start again, so the payment method is checked first. The service is verified again, and its alarms stay quiet until the first result after the resume. Answers the service as the single-service read does.",
                "summary": "Resume a service",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The service after it was resumed.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service after it was resumed.",
                                            "$ref": "#/components/schemas/ServicesResumeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "402": {
                        "description": "The organisation's payment gate blocks the action: `payment_required` (no payment method) or `invoice_overdue`. Nothing is billed and nothing is started.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/alarm-snooze": {
            "put": {
                "operationId": "public.services.setAlarmSnooze",
                "description": "Holds the alarm notifications of one service for a set time, as the console's Snooze does. The alarms keep evaluating the whole time: incidents still open, escalate, step down and resolve, and health and the alarm states keep their real values; only the automatic notifications are held. It covers every alarm whose resource is the service: its reachability, response, collector and workflow run and step alarms, and any custom alarm on it. The servers that collect for the service are their own resources and are not covered, and snoozing a server does not snooze the services it checks. While a snooze is live, a new or escalated incident whose alarm has a notification policy is held, not sent, and reads `notification_held_at` on the incident. An incident that resolves while the service is snoozed is resolved without a notification, even one that was notified before the snooze started, and an incident whose trigger was held is resolved without one too: the team is not told that an earlier page cleared. A person's acknowledge or resolve still notifies and clears the hold, snoozed or not. When the snooze ends, by its time or by `DELETE`, each incident still open whose notification was held is notified once at its current severity (the stored message, so it may read as lowered from a higher severity); one already acknowledged or resolved is cleared without a notification. That release is made by a sweep that runs every minute, so it can lag the end by up to a minute. A paused service may also be snoozed: the two are independent, and a snooze still live when the service is resumed holds whatever opens after it. Send `duration` (a whole number, at least 1) and `unit` (`minutes`, `hours` or `days`), counted from now: the total is 1 minute to 30 days, and more is refused with 422. Setting a snooze on a service that already has one replaces its end, so a second call extends or shortens it, and there is one snooze for each. `reason` is optional, plain text, at most 500 characters. A snooze takes effect from the next evaluation pass (up to a minute), so a notification can still go out in the pass that is running when you call, and likewise an end takes effect from the next pass. Needs the `alarms.edit` scope.",
                "summary": "Snooze a service's alarms",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "duration": {
                                        "type": "integer",
                                        "description": "How long the snooze lasts, a whole number of `unit`s, at least 1. The total is 1 minute to 30 days: at most 43200 `minutes`, 720 `hours` or 30 `days`.",
                                        "minimum": 1,
                                        "maximum": 43200
                                    },
                                    "unit": {
                                        "type": "string",
                                        "description": "The unit of `duration`: `minutes`, `hours` or `days`.",
                                        "enum": [
                                            "minutes",
                                            "hours",
                                            "days"
                                        ],
                                        "x-wt15-open-enum": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the alarms are snoozed, plain text, at most 500 characters; null or left out for none. It is shown to the team with the snooze.",
                                        "maxLength": 500
                                    }
                                },
                                "required": [
                                    "duration",
                                    "unit"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The service's own snooze after the call: when it ends, its reason and when it was set.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service's own snooze after the call: when it ends, its reason and when it was set.",
                                            "$ref": "#/components/schemas/ServicesAlarmSnoozeSetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.services.endAlarmSnooze",
                "description": "Ends the service's alarm snooze early, so held notifications are released by the next sweep (up to a minute), as described for `PUT`. The call is safe to repeat: it answers 204 also when the service had no live snooze, since the end state is what you asked for. Needs the `alarms.edit` scope.",
                "summary": "End a service's alarm snooze",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The UUID of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The snooze was ended, or there was none; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "alarms.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/run-now": {
            "post": {
                "operationId": "public.services.runNow",
                "description": "Asks the active collector, or every member in `all_members` mode, to make one extra check now, scored like a scheduled one. Nothing is checked from WatchTower15 itself. Answers the service as the single-service read does.",
                "summary": "Run a service check now",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The service, with the check requested.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The service, with the check requested.",
                                            "$ref": "#/components/schemas/ServicesRunNowResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/services/{service_uuid}/parameters/test": {
            "post": {
                "operationId": "public.services.testParameters",
                "description": "Asks the service's collector to test the saved parameters and returns the test as pending. Poll `GET /v1/services/{service_uuid}/parameters/test` for the results, which name each parameter and never carry a value.",
                "summary": "Test service parameters",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The test, pending and without results.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The test, pending and without results.",
                                            "$ref": "#/components/schemas/ServicesTestParametersResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.edit"
                ],
                "x-wt15-idempotent": true
            },
            "get": {
                "operationId": "public.services.parameterTestResult",
                "description": "Returns the state of the last parameters test: `none` when none is pending or recent, `pending`, or `done` with the results by parameter name. A result says whether the parameter was found, its length and where it came from, never its value.",
                "summary": "Get a service parameters test",
                "tags": [
                    "Services"
                ],
                "parameters": [
                    {
                        "name": "service_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the service.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The state of the last parameters test and its results.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The state of the last parameters test and its results.",
                                            "$ref": "#/components/schemas/ServicesParameterTestResultResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "services.view"
                ]
            }
        },
        "/tag-groups": {
            "get": {
                "operationId": "public.tagGroups.list",
                "description": "Lists the organisation's tag groups without their tags; read a group, or list tags, for those. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List tag groups",
                "tags": [
                    "TagGroups"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many groups to return in one page, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's tag groups.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's tag groups.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The group's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The group's name."
                                                    },
                                                    "service_type": {
                                                        "type": "string",
                                                        "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                                                    },
                                                    "editable": {
                                                        "type": "boolean",
                                                        "description": "Whether the group can be changed in the console; the system groups cannot."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "service_type",
                                                    "editable"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.tagGroups.create",
                "description": "Creates a tag group. The name must be valid for a group and unique in the organisation. `service_type` says what the group's tags can be put on and cannot be changed afterwards.",
                "summary": "Create a tag group",
                "tags": [
                    "TagGroups"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The group's name.",
                                        "maxLength": 100
                                    },
                                    "service_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "What the group's tags can be put on; it cannot be changed afterwards.",
                                        "enum": [
                                            "domain",
                                            "service",
                                            "server",
                                            "log_source",
                                            "custom_metric",
                                            "database_instance",
                                            "none",
                                            null
                                        ],
                                        "x-wt15-open-enum": true
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The new tag group.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new tag group.",
                                            "$ref": "#/components/schemas/TagGroupsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/tag-groups/{tag_group_uuid}": {
            "get": {
                "operationId": "public.tagGroups.view",
                "description": "Returns one tag group with its tags.",
                "summary": "Get a tag group",
                "tags": [
                    "TagGroups"
                ],
                "parameters": [
                    {
                        "name": "tag_group_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag group.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The tag group and its tags.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The tag group and its tags.",
                                            "$ref": "#/components/schemas/TagGroupsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.view"
                ]
            },
            "put": {
                "operationId": "public.tagGroups.update",
                "description": "Renames a tag group. A system group cannot be renamed and is refused with 422, and a group's `service_type` cannot be changed.",
                "summary": "Rename a tag group",
                "tags": [
                    "TagGroups"
                ],
                "parameters": [
                    {
                        "name": "tag_group_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag group.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The group's name.",
                                        "maxLength": 100
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The tag group after the rename, with its tags.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The tag group after the rename, with its tags.",
                                            "$ref": "#/components/schemas/TagGroupsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.tagGroups.delete",
                "description": "Deletes a tag group together with its tags, which are removed from every resource they were put on. A system group cannot be deleted and is refused with 422. This cannot be undone.",
                "summary": "Delete a tag group",
                "tags": [
                    "TagGroups"
                ],
                "parameters": [
                    {
                        "name": "tag_group_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag group.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The tag group was deleted; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/tags": {
            "get": {
                "operationId": "public.tags.list",
                "description": "Lists the organisation's tag groups, each with its tags. With `service_type`, only the groups for that type of resource are returned, together with the organisation-wide groups (`none`), which are always listed. The page counts groups. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List tags",
                "tags": [
                    "Tags"
                ],
                "parameters": [
                    {
                        "name": "service_type",
                        "in": "query",
                        "description": "Only the groups for this type of resource, together with the organisation-wide groups (`none`): one of `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance` and `none`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "domain",
                                "service",
                                "server",
                                "log_source",
                                "custom_metric",
                                "database_instance",
                                "none",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many groups to return in one page, from 1 to 100.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the organisation's tag groups, each with its tags.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the organisation's tag groups, each with its tags.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The group's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The group's name."
                                                    },
                                                    "service_type": {
                                                        "type": "string",
                                                        "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                                                    },
                                                    "editable": {
                                                        "type": "boolean",
                                                        "description": "Whether the group can be changed in the console; the system groups cannot."
                                                    },
                                                    "tags": {
                                                        "type": "array",
                                                        "description": "The tags in the group.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "uuid": {
                                                                    "type": "string",
                                                                    "description": "The tag's uuid."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The tag's name."
                                                                }
                                                            },
                                                            "required": [
                                                                "uuid",
                                                                "name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "service_type",
                                                    "editable",
                                                    "tags"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.view"
                ],
                "x-wt15-paged": true
            },
            "post": {
                "operationId": "public.tags.create",
                "description": "Creates a tag in the tag group named by `tag_group_uuid`. The name must be valid for a tag and unique in the organisation; the group is set here and cannot be changed afterwards. Creating a tag costs nothing.",
                "summary": "Create a tag",
                "tags": [
                    "Tags"
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "tag_group_uuid": {
                                        "type": "string",
                                        "format": "uuid",
                                        "description": "The uuid of the tag group to create the tag in."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The tag's name.",
                                        "maxLength": 100
                                    }
                                },
                                "required": [
                                    "tag_group_uuid",
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "The new tag with its group.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The new tag with its group.",
                                            "$ref": "#/components/schemas/TagsCreateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.edit"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/tags/{tag_uuid}": {
            "get": {
                "operationId": "public.tags.view",
                "description": "Returns one tag with the group it belongs to.",
                "summary": "Get a tag",
                "tags": [
                    "Tags"
                ],
                "parameters": [
                    {
                        "name": "tag_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The tag and its group.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The tag and its group.",
                                            "$ref": "#/components/schemas/TagsViewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.view"
                ]
            },
            "put": {
                "operationId": "public.tags.update",
                "description": "Renames a tag. The name must be valid for a tag and unique in the organisation; the tag's group cannot be changed.",
                "summary": "Rename a tag",
                "tags": [
                    "Tags"
                ],
                "parameters": [
                    {
                        "name": "tag_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The tag's name.",
                                        "maxLength": 100
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "The tag after the rename, with its group.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "description": "The tag after the rename, with its group.",
                                            "$ref": "#/components/schemas/TagsUpdateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.edit"
                ],
                "x-wt15-idempotent": true
            },
            "delete": {
                "operationId": "public.tags.delete",
                "description": "Deletes a tag and removes it from every resource it was put on. This cannot be undone.",
                "summary": "Delete a tag",
                "tags": [
                    "Tags"
                ],
                "parameters": [
                    {
                        "name": "tag_uuid",
                        "in": "path",
                        "required": true,
                        "description": "The uuid of the tag.",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "description": "Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries `Idempotent-Replayed: true`); the same key on a different request is refused 422 `invalid_request`.",
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The tag was deleted; the answer has no body."
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid; `errors` names the parameters.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "tags.delete"
                ],
                "x-wt15-idempotent": true
            }
        },
        "/user/ai-clients": {
            "get": {
                "operationId": "public.userAiClients.list",
                "description": "Lists the AI clients the calling user connected in the key's organisation, with their access, status and today's calls; never another user's connections and never another organisation's. Filter by status and search text; sorts by one column. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List your AI clients",
                "tags": [
                    "UserAiClients"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only connections in one of these statuses: `active` (live now), `expired` (not revoked, past its expiry) or `revoked`. Absent lists every status. A list: repeat the parameter (`status=active&status=expired`) or send one value (`status=active`); `status[]=active` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "active",
                                    "expired",
                                    "revoked"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only connections whose client name contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `client_name`, `created_at` or `last_used_at`; a connection never used sorts last in both directions. Without one the newest comes first.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "client_name",
                                "created_at",
                                "last_used_at",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the calling user's own AI-client connections in the key's organisation.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the calling user's own AI-client connections in the key's organisation.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the connection."
                                                    },
                                                    "client_name": {
                                                        "type": "string",
                                                        "description": "The name the AI client gave itself when it connected."
                                                    },
                                                    "access": {
                                                        "type": "string",
                                                        "description": "What the client may do: `read` or `read_and_act`."
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `active` (live now), `expired` (not revoked, past its expiry) or `revoked`.",
                                                        "enum": [
                                                            "active",
                                                            "expired",
                                                            "revoked"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "created_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the client was connected.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "expires_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the connection expires; null for one that never expires.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last_used_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the client last made a call; null when it never did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "revoked_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the connection was revoked; null for one that was not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "calls_today": {
                                                        "type": "integer",
                                                        "description": "How many calls the client made today (UTC); 0 for a connection that is not active."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "client_name",
                                                    "access",
                                                    "status",
                                                    "created_at",
                                                    "expires_at",
                                                    "last_used_at",
                                                    "revoked_at",
                                                    "calls_today"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "ai_access.view"
                ],
                "x-wt15-paged": true
            }
        },
        "/user/api-keys": {
            "get": {
                "operationId": "public.userApiKeys.list",
                "description": "Lists the API keys the calling user made in the key's organisation, with their status, permissions and today's calls; never another user's keys and never another organisation's. Filter by status and search text; sorts by one column. Pages by `page` and `per_page` (`limit` is the same as `per_page`); every page carries `current_page`, `per_page`, `last_page` and `total`.",
                "summary": "List your API keys",
                "tags": [
                    "UserApiKeys"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "description": "Only keys in one of these statuses: `active` (live now), `expired` (not revoked, past its expiry) or `revoked`. Absent lists every status. A list: repeat the parameter (`status=active&status=expired`) or send one value (`status=active`); `status[]=active` is accepted too.",
                        "style": "form",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "enum": [
                                    "active",
                                    "expired",
                                    "revoked"
                                ],
                                "x-wt15-open-enum": true
                            }
                        },
                        "explode": true
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Only keys whose name, or the last characters the key shows (`last_four`, or the key's last four for a newer key), contains this text.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "The column to sort by: `name`, `created_at`, `expires_at` or `last_used_at`; a key that never expires sorts as the far future, and a key never used sorts last in both directions. Without one the newest comes first.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "name",
                                "created_at",
                                "expires_at",
                                "last_used_at",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "description": "The sort direction, `asc` (the default) or `desc`.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "asc",
                                "desc",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The same as `per_page`, kept for existing clients.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "include_total",
                        "in": "query",
                        "description": "Ignored: `total` is always present.",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "true",
                                "false",
                                "1",
                                "0",
                                null
                            ],
                            "x-wt15-open-enum": true
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "How many items one page holds, from 1 to 100; 25 when omitted.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page to read, from 1; 1 when omitted. A page past the last answers no rows.",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 2147483647
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One page of the calling user's own API keys in the key's organisation.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "description": "One page of the calling user's own API keys in the key's organisation.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The UUID of the key."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name the key was given when it was made."
                                                    },
                                                    "last_four": {
                                                        "type": "string",
                                                        "description": "Four characters of the key kept to tell keys apart: the four before its six-character checksum, not its last four. `redacted_key` is the form to show. The key itself is shown once, when it is made."
                                                    },
                                                    "redacted_key": {
                                                        "type": "string",
                                                        "description": "The key as the console shows it: the prefix and the key's last four characters (`wt15ak_…Qz3x`), or, for an older key whose last characters were never kept, the four kept characters followed by six dots for the hidden checksum (`wt15ak_…a1b2••••••`)."
                                                    },
                                                    "scopes": {
                                                        "type": "array",
                                                        "description": "The permissions the key carries, as `<module>.<action>` names.",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "One of `active` (live now), `expired` (not revoked, past its expiry) or `revoked`.",
                                                        "enum": [
                                                            "active",
                                                            "expired",
                                                            "revoked"
                                                        ],
                                                        "x-wt15-open-enum": true
                                                    },
                                                    "created_at": {
                                                        "type": "integer",
                                                        "description": "Epoch milliseconds. When the key was made.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "expires_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the key expires; null for a key that never expires.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "last_used_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the key last made a call; null when it never did.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "revoked_at": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Epoch milliseconds. When the key was revoked; null for a key that was not.",
                                                        "x-wt15-instant": true
                                                    },
                                                    "calls_today": {
                                                        "type": "integer",
                                                        "description": "How many calls the key made today (UTC); 0 for a key that is not active."
                                                    }
                                                },
                                                "required": [
                                                    "uuid",
                                                    "name",
                                                    "last_four",
                                                    "redacted_key",
                                                    "scopes",
                                                    "status",
                                                    "created_at",
                                                    "expires_at",
                                                    "last_used_at",
                                                    "revoked_at",
                                                    "calls_today"
                                                ]
                                            }
                                        },
                                        "current_page": {
                                            "type": "integer",
                                            "description": "The page this answer holds, from 1; a page past the last holds no rows."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "How many items a page holds: `per_page`, or `limit`, or the default."
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "description": "The last page, at least 1."
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "How many items match the filters, across every page."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "current_page",
                                        "per_page",
                                        "last_page",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "The API key is missing, malformed, expired or revoked.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "The key or its owner does not hold what the operation needs.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such record in this organisation (an absent id and another organisation's answer alike).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "The request is invalid (`invalid_request`; `errors` names the parameters).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "A rate limit or the organisation's daily limit is reached; `Retry-After` says when to retry.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected error.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                },
                "x-wt15-scopes": [
                    "api_access.view"
                ],
                "x-wt15-paged": true
            }
        }
    },
    "components": {
        "securitySchemes": {
            "apiKey": {
                "type": "http",
                "description": "An API key, sent as `Authorization: Bearer wt15ak_…`. Create one in the console, under the organisation's API keys.",
                "scheme": "bearer",
                "bearerFormat": "wt15ak"
            }
        },
        "schemas": {
            "AlarmChannelsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The channel's uuid."
                    },
                    "type": {
                        "type": "string",
                        "description": "The channel's type: `slack`, `teams` or `webhook`."
                    },
                    "name": {
                        "type": "string",
                        "description": "The channel's display name."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the channel is switched on."
                    },
                    "signing_secret_set": {
                        "type": "boolean",
                        "description": "Whether a webhook channel holds a signing secret; always false for the other types. The secret is never returned."
                    },
                    "signing_secret_rotated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the signing secret was last replaced; null if never.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the channel was created.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "type",
                    "name",
                    "active",
                    "signing_secret_set",
                    "signing_secret_rotated_at",
                    "created_at"
                ],
                "title": "AlarmChannelsCreateResource"
            },
            "AlarmChannelsSendTestResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The channel's uuid."
                    },
                    "sent": {
                        "type": "boolean",
                        "description": "Always true: the call is refused when the message could not be sent."
                    }
                },
                "required": [
                    "uuid",
                    "sent"
                ],
                "title": "AlarmChannelsSendTestResource"
            },
            "AlarmChannelsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The channel's uuid."
                    },
                    "type": {
                        "type": "string",
                        "description": "The channel's type: `slack`, `teams` or `webhook`."
                    },
                    "name": {
                        "type": "string",
                        "description": "The channel's display name."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the channel is switched on."
                    },
                    "signing_secret_set": {
                        "type": "boolean",
                        "description": "Whether a webhook channel holds a signing secret; always false for the other types. The secret is never returned."
                    },
                    "signing_secret_rotated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the signing secret was last replaced; null if never.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the channel was created.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "type",
                    "name",
                    "active",
                    "signing_secret_set",
                    "signing_secret_rotated_at",
                    "created_at"
                ],
                "title": "AlarmChannelsUpdateResource"
            },
            "AlarmChannelsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The channel's uuid."
                    },
                    "type": {
                        "type": "string",
                        "description": "The channel's type: `slack`, `teams` or `webhook`."
                    },
                    "name": {
                        "type": "string",
                        "description": "The channel's display name."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the channel is switched on."
                    },
                    "signing_secret_set": {
                        "type": "boolean",
                        "description": "Whether a webhook channel holds a signing secret; always false for the other types. The secret is never returned."
                    },
                    "signing_secret_rotated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the signing secret was last replaced; null if never.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the channel was created.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "type",
                    "name",
                    "active",
                    "signing_secret_set",
                    "signing_secret_rotated_at",
                    "created_at"
                ],
                "title": "AlarmChannelsViewResource"
            },
            "AlarmPoliciesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The policy's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The policy's name."
                    },
                    "default": {
                        "type": "boolean",
                        "description": "Whether this is the organisation's default policy, which cannot be deleted."
                    },
                    "all_users": {
                        "type": "boolean",
                        "description": "Whether every user of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_channels": {
                        "type": "boolean",
                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_groups": {
                        "type": "boolean",
                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_users_channels": {
                        "type": "array",
                        "description": "The ways every user is reached when `all_users` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "all_groups_channels": {
                        "type": "array",
                        "description": "The ways every group member is reached when `all_groups` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "notifies": {
                        "type": "array",
                        "description": "Who the policy notifies for a warning incident, and for a critical one while `critical_uses_warning` is true.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "target_type": {
                                    "type": "string",
                                    "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                },
                                "target_uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's uuid; null if the record is gone."
                                },
                                "label": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's name; null if the record is gone."
                                },
                                "channels": {
                                    "type": "array",
                                    "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "target_type",
                                "target_uuid",
                                "label",
                                "channels"
                            ]
                        }
                    },
                    "critical_uses_warning": {
                        "type": "boolean",
                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                    },
                    "critical": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The routing for critical incidents, while `critical_uses_warning` is false.",
                        "properties": {
                            "all_users": {
                                "type": "boolean",
                                "description": "Whether every user of the organisation is notified for a critical incident."
                            },
                            "all_channels": {
                                "type": "boolean",
                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                            },
                            "all_groups": {
                                "type": "boolean",
                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                            },
                            "all_users_channels": {
                                "type": "array",
                                "description": "The ways every user is reached for a critical incident when `critical.all_users` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "all_groups_channels": {
                                "type": "array",
                                "description": "The ways every group member is reached for a critical incident when `critical.all_groups` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "notifies": {
                                "type": "array",
                                "description": "Who the policy notifies for a critical incident besides its `critical.all_…` switches.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "target_type": {
                                            "type": "string",
                                            "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                        },
                                        "target_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's uuid; null if the record is gone."
                                        },
                                        "label": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's name; null if the record is gone."
                                        },
                                        "channels": {
                                            "type": "array",
                                            "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "target_type",
                                        "target_uuid",
                                        "label",
                                        "channels"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "all_users",
                            "all_channels",
                            "all_groups",
                            "all_users_channels",
                            "all_groups_channels",
                            "notifies"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "default",
                    "all_users",
                    "all_channels",
                    "all_groups",
                    "all_users_channels",
                    "all_groups_channels",
                    "notifies",
                    "critical_uses_warning",
                    "critical"
                ],
                "title": "AlarmPoliciesCreateResource"
            },
            "AlarmPoliciesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The policy's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The policy's name."
                    },
                    "default": {
                        "type": "boolean",
                        "description": "Whether this is the organisation's default policy, which cannot be deleted."
                    },
                    "all_users": {
                        "type": "boolean",
                        "description": "Whether every user of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_channels": {
                        "type": "boolean",
                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_groups": {
                        "type": "boolean",
                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_users_channels": {
                        "type": "array",
                        "description": "The ways every user is reached when `all_users` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "all_groups_channels": {
                        "type": "array",
                        "description": "The ways every group member is reached when `all_groups` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "notifies": {
                        "type": "array",
                        "description": "Who the policy notifies for a warning incident, and for a critical one while `critical_uses_warning` is true.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "target_type": {
                                    "type": "string",
                                    "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                },
                                "target_uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's uuid; null if the record is gone."
                                },
                                "label": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's name; null if the record is gone."
                                },
                                "channels": {
                                    "type": "array",
                                    "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "target_type",
                                "target_uuid",
                                "label",
                                "channels"
                            ]
                        }
                    },
                    "critical_uses_warning": {
                        "type": "boolean",
                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                    },
                    "critical": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The routing for critical incidents, while `critical_uses_warning` is false.",
                        "properties": {
                            "all_users": {
                                "type": "boolean",
                                "description": "Whether every user of the organisation is notified for a critical incident."
                            },
                            "all_channels": {
                                "type": "boolean",
                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                            },
                            "all_groups": {
                                "type": "boolean",
                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                            },
                            "all_users_channels": {
                                "type": "array",
                                "description": "The ways every user is reached for a critical incident when `critical.all_users` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "all_groups_channels": {
                                "type": "array",
                                "description": "The ways every group member is reached for a critical incident when `critical.all_groups` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "notifies": {
                                "type": "array",
                                "description": "Who the policy notifies for a critical incident besides its `critical.all_…` switches.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "target_type": {
                                            "type": "string",
                                            "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                        },
                                        "target_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's uuid; null if the record is gone."
                                        },
                                        "label": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's name; null if the record is gone."
                                        },
                                        "channels": {
                                            "type": "array",
                                            "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "target_type",
                                        "target_uuid",
                                        "label",
                                        "channels"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "all_users",
                            "all_channels",
                            "all_groups",
                            "all_users_channels",
                            "all_groups_channels",
                            "notifies"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "default",
                    "all_users",
                    "all_channels",
                    "all_groups",
                    "all_users_channels",
                    "all_groups_channels",
                    "notifies",
                    "critical_uses_warning",
                    "critical"
                ],
                "title": "AlarmPoliciesUpdateResource"
            },
            "AlarmPoliciesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The policy's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The policy's name."
                    },
                    "default": {
                        "type": "boolean",
                        "description": "Whether this is the organisation's default policy, which cannot be deleted."
                    },
                    "all_users": {
                        "type": "boolean",
                        "description": "Whether every user of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_channels": {
                        "type": "boolean",
                        "description": "Whether every alarm channel of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_groups": {
                        "type": "boolean",
                        "description": "Whether every contact group of the organisation is notified for a warning incident (and a critical one while `critical_uses_warning` is true)."
                    },
                    "all_users_channels": {
                        "type": "array",
                        "description": "The ways every user is reached when `all_users` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "all_groups_channels": {
                        "type": "array",
                        "description": "The ways every group member is reached when `all_groups` is on for a warning incident (and a critical one while `critical_uses_warning` is true).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "notifies": {
                        "type": "array",
                        "description": "Who the policy notifies for a warning incident, and for a critical one while `critical_uses_warning` is true.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "target_type": {
                                    "type": "string",
                                    "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                },
                                "target_uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's uuid; null if the record is gone."
                                },
                                "label": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The target's name; null if the record is gone."
                                },
                                "channels": {
                                    "type": "array",
                                    "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "target_type",
                                "target_uuid",
                                "label",
                                "channels"
                            ]
                        }
                    },
                    "critical_uses_warning": {
                        "type": "boolean",
                        "description": "Whether critical incidents use the same routing as warning ones. While true, `critical` is null."
                    },
                    "critical": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The routing for critical incidents, while `critical_uses_warning` is false.",
                        "properties": {
                            "all_users": {
                                "type": "boolean",
                                "description": "Whether every user of the organisation is notified for a critical incident."
                            },
                            "all_channels": {
                                "type": "boolean",
                                "description": "Whether every alarm channel of the organisation is notified for a critical incident."
                            },
                            "all_groups": {
                                "type": "boolean",
                                "description": "Whether every contact group of the organisation is notified for a critical incident."
                            },
                            "all_users_channels": {
                                "type": "array",
                                "description": "The ways every user is reached for a critical incident when `critical.all_users` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "all_groups_channels": {
                                "type": "array",
                                "description": "The ways every group member is reached for a critical incident when `critical.all_groups` is on.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "notifies": {
                                "type": "array",
                                "description": "Who the policy notifies for a critical incident besides its `critical.all_…` switches.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "target_type": {
                                            "type": "string",
                                            "description": "What the target is: `user`, `destination` (an alarm channel) or `contact_group`."
                                        },
                                        "target_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's uuid; null if the record is gone."
                                        },
                                        "label": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The target's name; null if the record is gone."
                                        },
                                        "channels": {
                                            "type": "array",
                                            "description": "For a user, the ways the user is reached; for a destination, its type; empty for a group.",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "target_type",
                                        "target_uuid",
                                        "label",
                                        "channels"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "all_users",
                            "all_channels",
                            "all_groups",
                            "all_users_channels",
                            "all_groups_channels",
                            "notifies"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "default",
                    "all_users",
                    "all_channels",
                    "all_groups",
                    "all_users_channels",
                    "all_groups_channels",
                    "notifies",
                    "critical_uses_warning",
                    "critical"
                ],
                "title": "AlarmPoliciesViewResource"
            },
            "AlarmsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The alarm's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The alarm's own name, else its rule's."
                    },
                    "rule_slug": {
                        "type": "string",
                        "description": "The catalogue rule's slug."
                    },
                    "classification": {
                        "type": "string",
                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                    },
                    "metric_name": {
                        "type": "string",
                        "description": "The catalogue rule's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The catalogue rule's description; null when it has none."
                    },
                    "alarm_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit of the thresholds; null when the rule has none."
                    },
                    "comparison_operator": {
                        "type": "string",
                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                    },
                    "warning_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "critical_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "warning_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                    },
                    "critical_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                    },
                    "warning_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                    },
                    "critical_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                    },
                    "self_resolving": {
                        "type": "boolean",
                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the alarm is switched on."
                    },
                    "notify_on_acknowledge": {
                        "type": "boolean",
                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "notify_on_resolve": {
                        "type": "boolean",
                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "entity": {
                        "type": "object",
                        "description": "The resource the alarm is on, of any type that has alarms.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the resource, such as `server`."
                            },
                            "uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The uuid of the resource; null when it no longer resolves."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the resource; null when it no longer resolves."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "parent_entity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server of a volume, port or unit; null for every other resource.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the server, such as `server`."
                            },
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server."
                            }
                        },
                        "required": [
                            "type",
                            "uuid"
                        ]
                    },
                    "alarm_policies": {
                        "type": "array",
                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The policy's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                }
                            },
                            "required": [
                                "uuid"
                            ]
                        }
                    },
                    "state": {
                        "type": "string",
                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                        "enum": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "inactive_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                    },
                    "state_since": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "acknowledged": {
                        "type": "boolean",
                        "description": "Whether the open incident has been acknowledged."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "rule_slug",
                    "classification",
                    "metric_name",
                    "description",
                    "alarm_type",
                    "unit",
                    "comparison_operator",
                    "aggregation",
                    "warning_threshold",
                    "critical_threshold",
                    "warning_window_minutes",
                    "critical_window_minutes",
                    "warning_consecutive_failures_count",
                    "critical_consecutive_failures_count",
                    "self_resolving",
                    "active",
                    "notify_on_acknowledge",
                    "notify_on_resolve",
                    "entity",
                    "parent_entity",
                    "alarm_policies",
                    "state",
                    "inactive_reason",
                    "state_since",
                    "acknowledged"
                ],
                "title": "AlarmsCreateResource"
            },
            "AlarmsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The alarm's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The alarm's own name, else its rule's."
                    },
                    "rule_slug": {
                        "type": "string",
                        "description": "The catalogue rule's slug."
                    },
                    "classification": {
                        "type": "string",
                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                    },
                    "metric_name": {
                        "type": "string",
                        "description": "The catalogue rule's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The catalogue rule's description; null when it has none."
                    },
                    "alarm_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit of the thresholds; null when the rule has none."
                    },
                    "comparison_operator": {
                        "type": "string",
                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                    },
                    "warning_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "critical_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "warning_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                    },
                    "critical_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                    },
                    "warning_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                    },
                    "critical_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                    },
                    "self_resolving": {
                        "type": "boolean",
                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the alarm is switched on."
                    },
                    "notify_on_acknowledge": {
                        "type": "boolean",
                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "notify_on_resolve": {
                        "type": "boolean",
                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "entity": {
                        "type": "object",
                        "description": "The resource the alarm is on, of any type that has alarms.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the resource, such as `server`."
                            },
                            "uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The uuid of the resource; null when it no longer resolves."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the resource; null when it no longer resolves."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "parent_entity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server of a volume, port or unit; null for every other resource.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the server, such as `server`."
                            },
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server."
                            }
                        },
                        "required": [
                            "type",
                            "uuid"
                        ]
                    },
                    "alarm_policies": {
                        "type": "array",
                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The policy's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                }
                            },
                            "required": [
                                "uuid"
                            ]
                        }
                    },
                    "state": {
                        "type": "string",
                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                        "enum": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "inactive_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                    },
                    "state_since": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "acknowledged": {
                        "type": "boolean",
                        "description": "Whether the open incident has been acknowledged."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "rule_slug",
                    "classification",
                    "metric_name",
                    "description",
                    "alarm_type",
                    "unit",
                    "comparison_operator",
                    "aggregation",
                    "warning_threshold",
                    "critical_threshold",
                    "warning_window_minutes",
                    "critical_window_minutes",
                    "warning_consecutive_failures_count",
                    "critical_consecutive_failures_count",
                    "self_resolving",
                    "active",
                    "notify_on_acknowledge",
                    "notify_on_resolve",
                    "entity",
                    "parent_entity",
                    "alarm_policies",
                    "state",
                    "inactive_reason",
                    "state_since",
                    "acknowledged"
                ],
                "title": "AlarmsUpdateResource"
            },
            "AlarmsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The alarm's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The alarm's own name, else its rule's."
                    },
                    "rule_slug": {
                        "type": "string",
                        "description": "The catalogue rule's slug."
                    },
                    "classification": {
                        "type": "string",
                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`. On a server it decides which of the server's three healths an open incident moves; the other resources keep one health that counts every classification."
                    },
                    "metric_name": {
                        "type": "string",
                        "description": "The catalogue rule's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The catalogue rule's description; null when it has none."
                    },
                    "alarm_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit of the thresholds; null when the rule has none."
                    },
                    "comparison_operator": {
                        "type": "string",
                        "description": "How a reading is compared with the thresholds: the alarm's own operator, else the rule's default."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the readings in a window are combined before the comparison; null when the alarm sets none."
                    },
                    "warning_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "critical_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The alarm's own value, else the rule's default."
                    },
                    "warning_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the warning threshold is judged over; null when the alarm has none."
                    },
                    "critical_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the critical threshold is judged over; null when the alarm has none."
                    },
                    "warning_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a warning: the alarm's own count, else the rule's default."
                    },
                    "critical_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a critical: the alarm's own count, else the rule's default."
                    },
                    "self_resolving": {
                        "type": "boolean",
                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the alarm is switched on."
                    },
                    "notify_on_acknowledge": {
                        "type": "boolean",
                        "description": "Whether acknowledging an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "notify_on_resolve": {
                        "type": "boolean",
                        "description": "Whether resolving an incident of this alarm notifies: the alarm's own flag, else the catalogue's. Never null."
                    },
                    "entity": {
                        "type": "object",
                        "description": "The resource the alarm is on, of any type that has alarms.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the resource, such as `server`."
                            },
                            "uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The uuid of the resource; null when it no longer resolves."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the resource; null when it no longer resolves."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "parent_entity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server of a volume, port or unit; null for every other resource.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the server, such as `server`."
                            },
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server."
                            }
                        },
                        "required": [
                            "type",
                            "uuid"
                        ]
                    },
                    "alarm_policies": {
                        "type": "array",
                        "description": "The policies the alarm notifies. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The policy's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                }
                            },
                            "required": [
                                "uuid"
                            ]
                        }
                    },
                    "state": {
                        "type": "string",
                        "description": "One of `ok`, `warning`, `critical`, `inactive`.",
                        "enum": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "inactive_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`switched_off` or `resource_inactive` while `state` is `inactive`; null otherwise."
                    },
                    "state_since": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds: when the open incident was triggered, while `state` is `warning` or `critical`; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "acknowledged": {
                        "type": "boolean",
                        "description": "Whether the open incident has been acknowledged."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "rule_slug",
                    "classification",
                    "metric_name",
                    "description",
                    "alarm_type",
                    "unit",
                    "comparison_operator",
                    "aggregation",
                    "warning_threshold",
                    "critical_threshold",
                    "warning_window_minutes",
                    "critical_window_minutes",
                    "warning_consecutive_failures_count",
                    "critical_consecutive_failures_count",
                    "self_resolving",
                    "active",
                    "notify_on_acknowledge",
                    "notify_on_resolve",
                    "entity",
                    "parent_entity",
                    "alarm_policies",
                    "state",
                    "inactive_reason",
                    "state_since",
                    "acknowledged"
                ],
                "title": "AlarmsViewResource"
            },
            "CustomMetricsApproveResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The metric's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The metric's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The metric's description; null for none."
                    },
                    "metric_key": {
                        "type": "string",
                        "description": "The key a publisher sends the metric under."
                    },
                    "metric_type": {
                        "type": "string",
                        "description": "`count` sums events per step, `level` is a gauge."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit the metric's values are measured in; null for none."
                    },
                    "supported_aggregations": {
                        "type": "array",
                        "description": "The aggregations an alarm on this metric may use, from its type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                    },
                    "alarms_count": {
                        "type": "integer",
                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the metric is switched on."
                    },
                    "approved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                        "x-wt15-instant": true
                    },
                    "auto_created": {
                        "type": "boolean",
                        "description": "Whether it appeared from a push rather than being declared."
                    },
                    "deactivated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was switched off; null while it is on.",
                        "x-wt15-instant": true
                    },
                    "max_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the live tier, the limit in force."
                    },
                    "max_backfill_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the backfill tier, the limit in force."
                    },
                    "backfill_tier_days": {
                        "type": "integer",
                        "description": "How many days old a point must be to count against the backfill allowance."
                    },
                    "retention_days": {
                        "type": "integer",
                        "description": "How many days the samples are kept."
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the metric is linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the metric is linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "metric_source": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The source the metric belongs to; null for none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The source's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The metric's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was created.",
                        "x-wt15-instant": true
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The metric's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "metric_key",
                    "metric_type",
                    "unit",
                    "supported_aggregations",
                    "health_status",
                    "alarms_count",
                    "last_received_at",
                    "active",
                    "approved_at",
                    "auto_created",
                    "deactivated_at",
                    "max_points_per_day",
                    "max_backfill_points_per_day",
                    "backfill_tier_days",
                    "retention_days",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "metric_source",
                    "tags",
                    "created_at",
                    "console_url"
                ],
                "title": "CustomMetricsApproveResource"
            },
            "CustomMetricsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The metric's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The metric's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The metric's description; null for none."
                    },
                    "metric_key": {
                        "type": "string",
                        "description": "The key a publisher sends the metric under."
                    },
                    "metric_type": {
                        "type": "string",
                        "description": "`count` sums events per step, `level` is a gauge."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit the metric's values are measured in; null for none."
                    },
                    "supported_aggregations": {
                        "type": "array",
                        "description": "The aggregations an alarm on this metric may use, from its type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                    },
                    "alarms_count": {
                        "type": "integer",
                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the metric is switched on."
                    },
                    "approved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                        "x-wt15-instant": true
                    },
                    "auto_created": {
                        "type": "boolean",
                        "description": "Whether it appeared from a push rather than being declared."
                    },
                    "deactivated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was switched off; null while it is on.",
                        "x-wt15-instant": true
                    },
                    "max_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the live tier, the limit in force."
                    },
                    "max_backfill_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the backfill tier, the limit in force."
                    },
                    "backfill_tier_days": {
                        "type": "integer",
                        "description": "How many days old a point must be to count against the backfill allowance."
                    },
                    "retention_days": {
                        "type": "integer",
                        "description": "How many days the samples are kept."
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the metric is linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the metric is linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "metric_source": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The source the metric belongs to; null for none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The source's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The metric's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was created.",
                        "x-wt15-instant": true
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The metric's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "metric_key",
                    "metric_type",
                    "unit",
                    "supported_aggregations",
                    "health_status",
                    "alarms_count",
                    "last_received_at",
                    "active",
                    "approved_at",
                    "auto_created",
                    "deactivated_at",
                    "max_points_per_day",
                    "max_backfill_points_per_day",
                    "backfill_tier_days",
                    "retention_days",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "metric_source",
                    "tags",
                    "created_at",
                    "console_url"
                ],
                "title": "CustomMetricsCreateResource"
            },
            "CustomMetricsResetSeriesResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The metric's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The metric's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The metric's description; null for none."
                    },
                    "metric_key": {
                        "type": "string",
                        "description": "The key a publisher sends the metric under."
                    },
                    "metric_type": {
                        "type": "string",
                        "description": "`count` sums events per step, `level` is a gauge."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit the metric's values are measured in; null for none."
                    },
                    "supported_aggregations": {
                        "type": "array",
                        "description": "The aggregations an alarm on this metric may use, from its type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                    },
                    "alarms_count": {
                        "type": "integer",
                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the metric is switched on."
                    },
                    "approved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                        "x-wt15-instant": true
                    },
                    "auto_created": {
                        "type": "boolean",
                        "description": "Whether it appeared from a push rather than being declared."
                    },
                    "deactivated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was switched off; null while it is on.",
                        "x-wt15-instant": true
                    },
                    "max_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the live tier, the limit in force."
                    },
                    "max_backfill_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the backfill tier, the limit in force."
                    },
                    "backfill_tier_days": {
                        "type": "integer",
                        "description": "How many days old a point must be to count against the backfill allowance."
                    },
                    "retention_days": {
                        "type": "integer",
                        "description": "How many days the samples are kept."
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the metric is linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the metric is linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "metric_source": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The source the metric belongs to; null for none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The source's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The metric's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was created.",
                        "x-wt15-instant": true
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The metric's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "metric_key",
                    "metric_type",
                    "unit",
                    "supported_aggregations",
                    "health_status",
                    "alarms_count",
                    "last_received_at",
                    "active",
                    "approved_at",
                    "auto_created",
                    "deactivated_at",
                    "max_points_per_day",
                    "max_backfill_points_per_day",
                    "backfill_tier_days",
                    "retention_days",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "metric_source",
                    "tags",
                    "created_at",
                    "console_url"
                ],
                "title": "CustomMetricsResetSeriesResource"
            },
            "CustomMetricsSamplesResource": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "Whether the metric has samples to read: false while it awaits approval."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`awaiting_approval` while `available` is false; null otherwise."
                    },
                    "metric": {
                        "type": "object",
                        "description": "The metric the samples belong to.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The metric's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The metric's name."
                            },
                            "metric_key": {
                                "type": "string",
                                "description": "The key a publisher sends the metric under."
                            },
                            "metric_type": {
                                "type": "string",
                                "description": "`count` or `level`."
                            },
                            "unit": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The unit the metric's values are measured in; null for none."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "metric_key",
                            "metric_type",
                            "unit"
                        ]
                    },
                    "window": {
                        "type": "object",
                        "description": "The window the samples are read in; a later page reports the first page's.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window, not included.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window, included.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "samples": {
                        "type": "array",
                        "description": "`[t, value]` pairs, oldest first, `t` in epoch milliseconds as pushed; two samples at one time are both listed.",
                        "items": {
                            "type": "array",
                            "items": {
                                "type": "number"
                            }
                        }
                    },
                    "next_cursor": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cursor of the next page, sent back as `cursor`; null on the last page."
                    },
                    "total": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many samples the window holds, counted on the first page; null while the metric awaits approval, or on a cursor made before the count was carried."
                    }
                },
                "required": [
                    "available",
                    "reason",
                    "metric",
                    "window",
                    "samples",
                    "next_cursor",
                    "total"
                ],
                "title": "CustomMetricsSamplesResource"
            },
            "CustomMetricsSeriesResource": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "Whether the metric has data to chart: false while it awaits approval."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`awaiting_approval` while `available` is false; null otherwise."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The `aggregation` sent: `avg`, `min`, `max`, `last` or `sum`; null when none was sent."
                    },
                    "tz": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The IANA time zone the `1d` and `1w` points were placed in, the `tz` sent; null when none was sent. A `tz` with any other step changes nothing, and is still echoed."
                    },
                    "metric": {
                        "type": "object",
                        "description": "The metric the series belongs to.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The metric's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The metric's name."
                            },
                            "metric_key": {
                                "type": "string",
                                "description": "The key a publisher sends the metric under."
                            },
                            "metric_type": {
                                "type": "string",
                                "description": "`count` or `level`."
                            },
                            "unit": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The unit the metric's values are measured in; null for none."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "metric_key",
                            "metric_type",
                            "unit"
                        ]
                    },
                    "window": {
                        "type": "object",
                        "description": "The window the series covers.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window asked for; the first point can be one step earlier.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "source": {
                        "type": "string",
                        "description": "Always `custom`: the custom metrics store."
                    },
                    "step_seconds": {
                        "type": "integer",
                        "description": "The width of one step in seconds, the `step` sent or the one the window's length chose: a point summarises the step that ends at its time."
                    },
                    "series": {
                        "type": "array",
                        "description": "One series for an approved metric, none while it awaits approval.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "The metric's key."
                                },
                                "unit": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The metric's unit."
                                },
                                "labels": {
                                    "type": "object",
                                    "description": "The label values of the series; every one is null for a custom metric.",
                                    "properties": {
                                        "mount": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a custom series."
                                        },
                                        "device": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a custom series."
                                        },
                                        "interface": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a custom series."
                                        },
                                        "state": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a custom series."
                                        },
                                        "cpu": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a custom series."
                                        }
                                    },
                                    "required": [
                                        "mount",
                                        "device",
                                        "interface",
                                        "state",
                                        "cpu"
                                    ]
                                },
                                "point_meaning": {
                                    "type": "string",
                                    "description": "`count_per_step` (a `count` metric, summed per step) or `value_per_step` (a `level` metric)."
                                },
                                "points": {
                                    "type": "array",
                                    "description": "`[t, value]` pairs, `t` epoch milliseconds.",
                                    "items": {
                                        "type": "array",
                                        "items": {
                                            "type": [
                                                "number",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            },
                            "required": [
                                "name",
                                "unit",
                                "labels",
                                "point_meaning",
                                "points"
                            ]
                        }
                    }
                },
                "required": [
                    "available",
                    "reason",
                    "aggregation",
                    "tz",
                    "metric",
                    "window",
                    "source",
                    "step_seconds",
                    "series"
                ],
                "title": "CustomMetricsSeriesResource"
            },
            "CustomMetricsSummaryResource": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "Whether the metric has samples to summarise: false while it awaits approval."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`awaiting_approval` while the metric awaits approval, `rollup_pending` while a window longer than 31 days cannot be answered yet (the metric's history is not summarised yet, or a day of the window is not recomputed yet); null while `available` is true."
                    },
                    "metric": {
                        "type": "object",
                        "description": "The metric the statistics belong to.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The metric's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The metric's name."
                            },
                            "metric_key": {
                                "type": "string",
                                "description": "The key a publisher sends the metric under."
                            },
                            "metric_type": {
                                "type": "string",
                                "description": "`count` or `level`."
                            },
                            "unit": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The unit the metric's values are measured in; null for none."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "metric_key",
                            "metric_type",
                            "unit"
                        ]
                    },
                    "window": {
                        "type": "object",
                        "description": "The window the statistics cover: its samples after `from` and up to `to`.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window, not included.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window, included.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "rolled_up": {
                        "type": "boolean",
                        "description": "True when the window is longer than 31 days and was read from the daily summaries the platform keeps (whole UTC days up to the start of yesterday) and the samples for the rest; false when it was read from the samples."
                    },
                    "sample_count": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The number of samples in the window; null when it holds none."
                    },
                    "sum": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The sum of the samples' values; null when the window holds none."
                    },
                    "min": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The smallest value; null when the window holds no sample."
                    },
                    "max": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The largest value; null when the window holds no sample."
                    },
                    "avg": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The average value; null when the window holds no sample."
                    },
                    "p50": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The median value; null when the window holds no sample. Over 31 days (`rolled_up`) an approximation from a histogram of the values, within about 14% of the exact value, and null when the window holds a negative value."
                    },
                    "p95": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The 95th percentile of the values; null when the window holds no sample. Over 31 days (`rolled_up`) an approximation from a histogram of the values, within about 14% of the exact value, and null when the window holds a negative value."
                    },
                    "first_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the window's first sample was taken; null when it holds none.",
                        "x-wt15-instant": true
                    },
                    "last_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the window's last sample was taken; null when it holds none.",
                        "x-wt15-instant": true
                    },
                    "last": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The window's last value; null when it holds no sample."
                    }
                },
                "required": [
                    "available",
                    "reason",
                    "metric",
                    "window",
                    "rolled_up",
                    "sample_count",
                    "sum",
                    "min",
                    "max",
                    "avg",
                    "p50",
                    "p95",
                    "first_at",
                    "last_at",
                    "last"
                ],
                "title": "CustomMetricsSummaryResource"
            },
            "CustomMetricsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The metric's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The metric's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The metric's description; null for none."
                    },
                    "metric_key": {
                        "type": "string",
                        "description": "The key a publisher sends the metric under."
                    },
                    "metric_type": {
                        "type": "string",
                        "description": "`count` sums events per step, `level` is a gauge."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit the metric's values are measured in; null for none."
                    },
                    "supported_aggregations": {
                        "type": "array",
                        "description": "The aggregations an alarm on this metric may use, from its type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                    },
                    "alarms_count": {
                        "type": "integer",
                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the metric is switched on."
                    },
                    "approved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                        "x-wt15-instant": true
                    },
                    "auto_created": {
                        "type": "boolean",
                        "description": "Whether it appeared from a push rather than being declared."
                    },
                    "deactivated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was switched off; null while it is on.",
                        "x-wt15-instant": true
                    },
                    "max_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the live tier, the limit in force."
                    },
                    "max_backfill_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the backfill tier, the limit in force."
                    },
                    "backfill_tier_days": {
                        "type": "integer",
                        "description": "How many days old a point must be to count against the backfill allowance."
                    },
                    "retention_days": {
                        "type": "integer",
                        "description": "How many days the samples are kept."
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the metric is linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the metric is linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "metric_source": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The source the metric belongs to; null for none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The source's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The metric's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was created.",
                        "x-wt15-instant": true
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The metric's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "metric_key",
                    "metric_type",
                    "unit",
                    "supported_aggregations",
                    "health_status",
                    "alarms_count",
                    "last_received_at",
                    "active",
                    "approved_at",
                    "auto_created",
                    "deactivated_at",
                    "max_points_per_day",
                    "max_backfill_points_per_day",
                    "backfill_tier_days",
                    "retention_days",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "metric_source",
                    "tags",
                    "created_at",
                    "console_url"
                ],
                "title": "CustomMetricsUpdateResource"
            },
            "CustomMetricsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The metric's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The metric's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The metric's description; null for none."
                    },
                    "metric_key": {
                        "type": "string",
                        "description": "The key a publisher sends the metric under."
                    },
                    "metric_type": {
                        "type": "string",
                        "description": "`count` sums events per step, `level` is a gauge."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit the metric's values are measured in; null for none."
                    },
                    "supported_aggregations": {
                        "type": "array",
                        "description": "The aggregations an alarm on this metric may use, from its type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`. `unknown` covers both a metric with no alarm and one whose alarms are not yet evaluated; `alarms_count` tells them apart."
                    },
                    "alarms_count": {
                        "type": "integer",
                        "description": "The metric's alarms, switched on or off: what `GET /v1/alarms` lists for it."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the metric is switched on."
                    },
                    "approved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the organisation accepted the metric; null while it awaits approval, when no points are stored.",
                        "x-wt15-instant": true
                    },
                    "auto_created": {
                        "type": "boolean",
                        "description": "Whether it appeared from a push rather than being declared."
                    },
                    "deactivated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was switched off; null while it is on.",
                        "x-wt15-instant": true
                    },
                    "max_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the live tier, the limit in force."
                    },
                    "max_backfill_points_per_day": {
                        "type": "integer",
                        "description": "Points accepted a day on the backfill tier, the limit in force."
                    },
                    "backfill_tier_days": {
                        "type": "integer",
                        "description": "How many days old a point must be to count against the backfill allowance."
                    },
                    "retention_days": {
                        "type": "integer",
                        "description": "How many days the samples are kept."
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the metric is linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the metric is linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "metric_source": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The source the metric belongs to; null for none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The source's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The metric's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the metric was created.",
                        "x-wt15-instant": true
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The metric's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "metric_key",
                    "metric_type",
                    "unit",
                    "supported_aggregations",
                    "health_status",
                    "alarms_count",
                    "last_received_at",
                    "active",
                    "approved_at",
                    "auto_created",
                    "deactivated_at",
                    "max_points_per_day",
                    "max_backfill_points_per_day",
                    "backfill_tier_days",
                    "retention_days",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "metric_source",
                    "tags",
                    "created_at",
                    "console_url"
                ],
                "title": "CustomMetricsViewResource"
            },
            "DatabasesAcceptKeyResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesAcceptKeyResource"
            },
            "DatabasesCapabilitiesResource": {
                "type": "object",
                "properties": {
                    "layers": {
                        "type": "array",
                        "description": "The database's monitoring layers, one item for each, in a fixed order.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "The layer: `L1` to `L8` or `logs`; an open set."
                                },
                                "availability": {
                                    "type": "string",
                                    "description": "`available` (collected), `not_applicable` (this database cannot have the layer) or `not_collected` (it can, and is not collected yet)."
                                },
                                "scope": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why a not applicable layer is not applicable: `engine`, `provider` or `endpoint`; null on any other state."
                                },
                                "remedy": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "A code for what would make the layer collected, such as `awaiting_probe`, `agent_update` or `waiting`; each layer has its own codes and more may be added; null unless `availability` is `not_collected`."
                                }
                            },
                            "required": [
                                "key",
                                "availability",
                                "scope",
                                "remedy"
                            ]
                        }
                    }
                },
                "required": [
                    "layers"
                ],
                "title": "DatabasesCapabilitiesResource"
            },
            "DatabasesCloudResource": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The state of the cloud section: `ok`, `permission_denied`, `not_found`, `imds_unavailable`, `throttled`, `unreachable`, `aws_error`, `proxy` or `not_aws` (the collector reads no cloud metrics for this database's provider); more values may be added. Null before the first cloud section, and for a state this API does not know yet; the database's capabilities say whether its provider has a cloud layer at all."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the state is what it is, as a short code of that state, such as `rds:DescribeDBInstances` on `permission_denied` or `no_imds` on `imds_unavailable`; null on a state with none. More codes may be added."
                    },
                    "metric_count": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many cloud metrics the collector reads for the instance; null before the first cloud section."
                    },
                    "multi_az": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Whether the instance is Multi-AZ; null when unknown."
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance's role: `standalone`, `read_replica`, `writer` or `reader`; more values may be added. Null when unknown."
                    },
                    "instance_class": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance class, such as `db.t3.micro`; null when unknown."
                    },
                    "storage_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The storage type, such as `gp3`; null when unknown."
                    },
                    "iops": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The provisioned IOPS; null when the storage has none or it is unknown."
                    },
                    "allocated_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The allocated storage in bytes, a whole number of GiB; null when unknown."
                    },
                    "max_allocated_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The storage's autoscaling ceiling in bytes, a whole number of GiB; null when autoscaling is off or unknown."
                    },
                    "performance_insights_enabled": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Whether Performance Insights is on for the instance; null when unknown."
                    },
                    "facts_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the last cloud section was stored; null before the first.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "status",
                    "reason",
                    "metric_count",
                    "multi_az",
                    "role",
                    "instance_class",
                    "storage_type",
                    "iops",
                    "allocated_bytes",
                    "max_allocated_bytes",
                    "performance_insights_enabled",
                    "facts_at"
                ],
                "title": "DatabasesCloudResource"
            },
            "DatabasesCollectorPreviewResource": {
                "type": "object",
                "properties": {
                    "servers": {
                        "type": "array",
                        "description": "The candidate servers, those picked first, then those left out with the reason.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                },
                                "agent_version": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The version of the agent running on the server; null when no agent has reported one."
                                },
                                "database_capability": {
                                    "type": "boolean",
                                    "description": "Whether the server can run a database collector."
                                },
                                "carries": {
                                    "type": "integer",
                                    "description": "How many databases the server already carries."
                                },
                                "role": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The collector role the server would get if it is picked; null for a server that is left out."
                                },
                                "excluded_because": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the server is left out; null when it is picked."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "agent_version",
                                "database_capability",
                                "carries",
                                "role",
                                "excluded_because"
                            ]
                        }
                    },
                    "warnings": {
                        "type": "array",
                        "description": "Warnings about the pool the selection would make, such as a pool of one that never fails over.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string",
                                    "description": "The warning's machine-readable code."
                                },
                                "message": {
                                    "type": "string",
                                    "description": "The warning in words."
                                }
                            },
                            "required": [
                                "code",
                                "message"
                            ]
                        }
                    }
                },
                "required": [
                    "servers",
                    "warnings"
                ],
                "title": "DatabasesCollectorPreviewResource"
            },
            "DatabasesCollectorsResource": {
                "type": "object",
                "properties": {
                    "lease_epoch": {
                        "type": "integer",
                        "description": "The lease epoch: it goes up each time the active collector changes."
                    },
                    "collectors": {
                        "type": "array",
                        "description": "The database's collectors: the active one first, then the standby, then the other candidates.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "server": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The server that collects or may collect; null when the row has no server.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server; `GET /v1/servers/{server_uuid}` reads it with the servers.view scope."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                },
                                "role": {
                                    "type": "string",
                                    "description": "`active` (collecting now), `standby` (next in line) or `cold` (a candidate that is neither)."
                                },
                                "eligible": {
                                    "type": "boolean",
                                    "description": "Whether the server can take the collector's place right now."
                                },
                                "last_probe_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the server last probed the database; null when it has not.",
                                    "x-wt15-instant": true
                                },
                                "last_probe_ok": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ],
                                    "description": "Whether the last probe succeeded; null before the first probe."
                                },
                                "last_probe_reason": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the last probe failed, in a short code; null when it succeeded or has not run."
                                },
                                "probe_pending": {
                                    "type": "boolean",
                                    "description": "Whether a probe has been requested and has not answered yet."
                                },
                                "excluded_because": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why this member's server cannot collect right now, in words for a person, for example an agent that needs an upgrade, a heartbeat too old or a server that carries the most databases one collector takes; null when it can. Words, not a code: do not parse it."
                                }
                            },
                            "required": [
                                "server",
                                "role",
                                "eligible",
                                "last_probe_at",
                                "last_probe_ok",
                                "last_probe_reason",
                                "probe_pending",
                                "excluded_because"
                            ]
                        }
                    }
                },
                "required": [
                    "lease_epoch",
                    "collectors"
                ],
                "title": "DatabasesCollectorsResource"
            },
            "DatabasesCoverageResource": {
                "type": "object",
                "properties": {
                    "window": {
                        "type": "object",
                        "description": "The window the coverage covers.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window answered, which can be later than asked for: coverage reaches back 30 days.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window answered.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "available": {
                        "type": "boolean",
                        "description": "Whether coverage could be measured: false when the data store did not answer, in which case there is no share and no band."
                    },
                    "share": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The covered share of the time the database should have reported, from 0 to 1; null when nothing was expected yet (the database has not connected) or coverage is unavailable."
                    },
                    "expected_minutes": {
                        "type": "integer",
                        "description": "The minutes in which the database should have reported: paused and no-collector time is left out."
                    },
                    "covered_minutes": {
                        "type": "integer",
                        "description": "The expected minutes in which data arrived."
                    },
                    "bands": {
                        "type": "array",
                        "description": "Every band of the window where data is missing or accounted for, in time order.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "cause": {
                                    "type": "string",
                                    "description": "Why the band exists: `paused`, `no_collector`, `unreachable`, `handover`, `outage`, `no_report`, `catching_up`, `rejected`, `no_connection`, `collector_down`, `collector_stopped` or `recovered`."
                                },
                                "from": {
                                    "type": "integer",
                                    "description": "Epoch milliseconds. The start of the band.",
                                    "x-wt15-instant": true
                                },
                                "to": {
                                    "type": "integer",
                                    "description": "Epoch milliseconds. The end of the band.",
                                    "x-wt15-instant": true
                                },
                                "reason": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the database was unreachable, on an `unreachable` band; null on every other band."
                                }
                            },
                            "required": [
                                "cause",
                                "from",
                                "to",
                                "reason"
                            ]
                        }
                    }
                },
                "required": [
                    "window",
                    "available",
                    "share",
                    "expected_minutes",
                    "covered_minutes",
                    "bands"
                ],
                "title": "DatabasesCoverageResource"
            },
            "DatabasesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesCreateResource"
            },
            "DatabasesDismissFindingResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The finding's uuid."
                    },
                    "rule_key": {
                        "type": "string",
                        "description": "The advisor rule's key, such as `schema.no_primary_key`."
                    },
                    "group": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The rule's group: `config`, `schema`, `workload` or `hardening`."
                    },
                    "object_kind": {
                        "type": "string",
                        "description": "What the finding is about: `instance`, `table`, `index`, `statement`, `account` and so on."
                    },
                    "object_key": {
                        "type": "string",
                        "description": "The object's key, which tells objects apart when their names are hidden."
                    },
                    "object_names": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The object's names; null unless the database shows identifiers.",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `critical`, `warning`, `info`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `open`, `resolved`, `dismissed`."
                    },
                    "statement_text": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "A statement's text; null unless the database shows identifiers."
                    },
                    "first_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the item was first seen.",
                        "x-wt15-instant": true
                    },
                    "last_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the item was last seen.",
                        "x-wt15-instant": true
                    },
                    "resolved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it stopped applying; null while it is open.",
                        "x-wt15-instant": true
                    },
                    "dismissed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it was dismissed; null otherwise.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "rule_key",
                    "group",
                    "object_kind",
                    "object_key",
                    "object_names",
                    "severity",
                    "status",
                    "statement_text",
                    "first_seen_at",
                    "last_seen_at",
                    "resolved_at",
                    "dismissed_at"
                ],
                "title": "DatabasesDismissFindingResource"
            },
            "DatabasesMetricsResource": {
                "type": "object",
                "properties": {
                    "window": {
                        "type": "object",
                        "description": "The window the series cover.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window answered, which can be later than asked for when the store keeps less history.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window answered.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "source": {
                        "type": "string",
                        "description": "`raw` (the hot store, 30 days) or `rollup` (the hourly rollup)."
                    },
                    "step_seconds": {
                        "type": "integer",
                        "description": "The width of one step in seconds: a point is the aggregate of a step."
                    },
                    "series": {
                        "type": "array",
                        "description": "The database's series, one entry per column of its engine's set, each present even when the window holds no point.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "The column's name, one of the database engine's telemetry columns, for example `qps`, `connections` or `replica_lag`; each engine has its own."
                                },
                                "unit": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The unit of the values; null: a database's series carry no unit yet."
                                },
                                "labels": {
                                    "type": "object",
                                    "description": "What tells apart the series of one metric; every label is null on a database's series.",
                                    "properties": {
                                        "mount": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a database's series."
                                        },
                                        "device": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a database's series."
                                        },
                                        "interface": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a database's series."
                                        },
                                        "state": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a database's series."
                                        },
                                        "cpu": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Always null on a database's series."
                                        }
                                    },
                                    "required": [
                                        "mount",
                                        "device",
                                        "interface",
                                        "state",
                                        "cpu"
                                    ]
                                },
                                "point_meaning": {
                                    "type": "string",
                                    "description": "One of `peak_per_step`, `average_per_step`, `min_per_step`, `count_per_step`, `value_per_step`: what a point is of its step."
                                },
                                "points": {
                                    "type": "array",
                                    "description": "`[t, value]` pairs, `t` epoch milliseconds, `value` a number or null.",
                                    "items": {
                                        "type": "array",
                                        "items": {
                                            "type": [
                                                "number",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            },
                            "required": [
                                "name",
                                "unit",
                                "labels",
                                "point_meaning",
                                "points"
                            ]
                        }
                    }
                },
                "required": [
                    "window",
                    "source",
                    "step_seconds",
                    "series"
                ],
                "title": "DatabasesMetricsResource"
            },
            "DatabasesPauseResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesPauseResource"
            },
            "DatabasesQueriesResource": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "Whether the database keeps per-statement data: false for a counts-only database."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`counts_only` while `available` is false; null otherwise."
                    },
                    "window": {
                        "type": "object",
                        "description": "The time window the statements were read in.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "statements": {
                        "type": "array",
                        "description": "The window's top 50 statements by the chosen sort.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "digest_key": {
                                    "type": "string",
                                    "description": "The statement's digest key."
                                },
                                "schema_key": {
                                    "type": "string",
                                    "description": "The schema's key, which tells schemas apart when names are hidden."
                                },
                                "schema_name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The schema's name; null unless the database shows identifiers."
                                },
                                "statement_text": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The statement's text; null unless the database shows identifiers."
                                },
                                "text_truncated": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ],
                                    "description": "Whether the text was cut; null with no text."
                                },
                                "first_seen_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the statement was first seen in the data kept.",
                                    "x-wt15-instant": true
                                },
                                "last_seen_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the statement was last seen.",
                                    "x-wt15-instant": true
                                },
                                "calls": {
                                    "type": "integer",
                                    "description": "The number of executions of this statement in the window."
                                },
                                "total_wait_us": {
                                    "type": "integer",
                                    "description": "The total execution time of this statement in the window, in microseconds."
                                },
                                "lock_time_us": {
                                    "type": "integer",
                                    "description": "The total time this statement in the window spent waiting for locks, in microseconds."
                                },
                                "rows_examined": {
                                    "type": "integer",
                                    "description": "The number of rows read by this statement in the window."
                                },
                                "rows_sent": {
                                    "type": "integer",
                                    "description": "The number of rows returned by this statement in the window."
                                },
                                "rows_affected": {
                                    "type": "integer",
                                    "description": "The number of rows changed by this statement in the window."
                                },
                                "errors": {
                                    "type": "integer",
                                    "description": "The number of executions of this statement in the window that raised an error."
                                },
                                "warnings": {
                                    "type": "integer",
                                    "description": "The number of warnings raised by this statement in the window."
                                },
                                "tmp_disk_tables": {
                                    "type": "integer",
                                    "description": "The number of temporary tables this statement in the window created on disk."
                                },
                                "tmp_tables": {
                                    "type": "integer",
                                    "description": "The number of temporary tables this statement in the window created."
                                },
                                "full_joins": {
                                    "type": "integer",
                                    "description": "The number of joins of this statement in the window that read a table in full because no index served them."
                                },
                                "full_scans": {
                                    "type": "integer",
                                    "description": "The number of full table scans made by this statement in the window."
                                },
                                "sort_merge_passes": {
                                    "type": "integer",
                                    "description": "The number of merge passes the sorts of this statement in the window needed."
                                },
                                "no_index_used": {
                                    "type": "integer",
                                    "description": "The number of executions of this statement in the window that used no index."
                                },
                                "no_good_index_used": {
                                    "type": "integer",
                                    "description": "The number of executions of this statement in the window that used no good index."
                                },
                                "avg_wait_us": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The average execution time of this statement in the window, in microseconds; null without a call."
                                },
                                "no_index_share": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The share of the executions of this statement in the window that used no index, as a fraction with four decimals; null without a call."
                                },
                                "rows_examined_per_row_sent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The rows read for each row returned by this statement in the window, with two decimals; null when no row was returned."
                                },
                                "impact_index": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "0 to 100: the statement's share of the window's time, weighted up by its no-index share; null without a call or without time in the window."
                                }
                            },
                            "required": [
                                "digest_key",
                                "schema_key",
                                "schema_name",
                                "statement_text",
                                "text_truncated",
                                "first_seen_at",
                                "last_seen_at",
                                "calls",
                                "total_wait_us",
                                "lock_time_us",
                                "rows_examined",
                                "rows_sent",
                                "rows_affected",
                                "errors",
                                "warnings",
                                "tmp_disk_tables",
                                "tmp_tables",
                                "full_joins",
                                "full_scans",
                                "sort_merge_passes",
                                "no_index_used",
                                "no_good_index_used",
                                "avg_wait_us",
                                "no_index_share",
                                "rows_examined_per_row_sent",
                                "impact_index"
                            ]
                        }
                    },
                    "other": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "All the other statements: the window's totals less the rows shown; null for a counts-only database.",
                        "properties": {
                            "calls": {
                                "type": "integer",
                                "description": "The number of executions of all the other statements in the window."
                            },
                            "total_wait_us": {
                                "type": "integer",
                                "description": "The total execution time of all the other statements in the window, in microseconds."
                            },
                            "lock_time_us": {
                                "type": "integer",
                                "description": "The total time all the other statements in the window spent waiting for locks, in microseconds."
                            },
                            "rows_examined": {
                                "type": "integer",
                                "description": "The number of rows read by all the other statements in the window."
                            },
                            "rows_sent": {
                                "type": "integer",
                                "description": "The number of rows returned by all the other statements in the window."
                            },
                            "rows_affected": {
                                "type": "integer",
                                "description": "The number of rows changed by all the other statements in the window."
                            },
                            "errors": {
                                "type": "integer",
                                "description": "The number of executions of all the other statements in the window that raised an error."
                            },
                            "warnings": {
                                "type": "integer",
                                "description": "The number of warnings raised by all the other statements in the window."
                            },
                            "tmp_disk_tables": {
                                "type": "integer",
                                "description": "The number of temporary tables all the other statements in the window created on disk."
                            },
                            "tmp_tables": {
                                "type": "integer",
                                "description": "The number of temporary tables all the other statements in the window created."
                            },
                            "full_joins": {
                                "type": "integer",
                                "description": "The number of joins of all the other statements in the window that read a table in full because no index served them."
                            },
                            "full_scans": {
                                "type": "integer",
                                "description": "The number of full table scans made by all the other statements in the window."
                            },
                            "sort_merge_passes": {
                                "type": "integer",
                                "description": "The number of merge passes the sorts of all the other statements in the window needed."
                            },
                            "no_index_used": {
                                "type": "integer",
                                "description": "The number of executions of all the other statements in the window that used no index."
                            },
                            "no_good_index_used": {
                                "type": "integer",
                                "description": "The number of executions of all the other statements in the window that used no good index."
                            },
                            "avg_wait_us": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The average execution time of all the other statements in the window, in microseconds; null without a call."
                            },
                            "no_index_share": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The share of the executions of all the other statements in the window that used no index, as a fraction with four decimals; null without a call."
                            },
                            "rows_examined_per_row_sent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The rows read for each row returned by all the other statements in the window, with two decimals; null when no row was returned."
                            }
                        },
                        "required": [
                            "calls",
                            "total_wait_us",
                            "lock_time_us",
                            "rows_examined",
                            "rows_sent",
                            "rows_affected",
                            "errors",
                            "warnings",
                            "tmp_disk_tables",
                            "tmp_tables",
                            "full_joins",
                            "full_scans",
                            "sort_merge_passes",
                            "no_index_used",
                            "no_good_index_used",
                            "avg_wait_us",
                            "no_index_share",
                            "rows_examined_per_row_sent"
                        ]
                    },
                    "totals": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The window's totals; null for a counts-only database.",
                        "properties": {
                            "calls": {
                                "type": "integer",
                                "description": "The number of executions of all statements in the window."
                            },
                            "total_wait_us": {
                                "type": "integer",
                                "description": "The total execution time of all statements in the window, in microseconds."
                            },
                            "lock_time_us": {
                                "type": "integer",
                                "description": "The total time all statements in the window spent waiting for locks, in microseconds."
                            },
                            "rows_examined": {
                                "type": "integer",
                                "description": "The number of rows read by all statements in the window."
                            },
                            "rows_sent": {
                                "type": "integer",
                                "description": "The number of rows returned by all statements in the window."
                            },
                            "rows_affected": {
                                "type": "integer",
                                "description": "The number of rows changed by all statements in the window."
                            },
                            "errors": {
                                "type": "integer",
                                "description": "The number of executions of all statements in the window that raised an error."
                            },
                            "warnings": {
                                "type": "integer",
                                "description": "The number of warnings raised by all statements in the window."
                            },
                            "tmp_disk_tables": {
                                "type": "integer",
                                "description": "The number of temporary tables all statements in the window created on disk."
                            },
                            "tmp_tables": {
                                "type": "integer",
                                "description": "The number of temporary tables all statements in the window created."
                            },
                            "full_joins": {
                                "type": "integer",
                                "description": "The number of joins of all statements in the window that read a table in full because no index served them."
                            },
                            "full_scans": {
                                "type": "integer",
                                "description": "The number of full table scans made by all statements in the window."
                            },
                            "sort_merge_passes": {
                                "type": "integer",
                                "description": "The number of merge passes the sorts of all statements in the window needed."
                            },
                            "no_index_used": {
                                "type": "integer",
                                "description": "The number of executions of all statements in the window that used no index."
                            },
                            "no_good_index_used": {
                                "type": "integer",
                                "description": "The number of executions of all statements in the window that used no good index."
                            },
                            "avg_wait_us": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The average execution time of all statements in the window, in microseconds; null without a call."
                            },
                            "no_index_share": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The share of the executions of all statements in the window that used no index, as a fraction with four decimals; null without a call."
                            },
                            "rows_examined_per_row_sent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The rows read for each row returned by all statements in the window, with two decimals; null when no row was returned."
                            }
                        },
                        "required": [
                            "calls",
                            "total_wait_us",
                            "lock_time_us",
                            "rows_examined",
                            "rows_sent",
                            "rows_affected",
                            "errors",
                            "warnings",
                            "tmp_disk_tables",
                            "tmp_tables",
                            "full_joins",
                            "full_scans",
                            "sort_merge_passes",
                            "no_index_used",
                            "no_good_index_used",
                            "avg_wait_us",
                            "no_index_share",
                            "rows_examined_per_row_sent"
                        ]
                    }
                },
                "required": [
                    "available",
                    "reason",
                    "window",
                    "statements",
                    "other",
                    "totals"
                ],
                "title": "DatabasesQueriesResource"
            },
            "DatabasesReassignResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesReassignResource"
            },
            "DatabasesRefreshSchemaResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesRefreshSchemaResource"
            },
            "DatabasesRestoreFindingResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The finding's uuid."
                    },
                    "rule_key": {
                        "type": "string",
                        "description": "The advisor rule's key, such as `schema.no_primary_key`."
                    },
                    "group": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The rule's group: `config`, `schema`, `workload` or `hardening`."
                    },
                    "object_kind": {
                        "type": "string",
                        "description": "What the finding is about: `instance`, `table`, `index`, `statement`, `account` and so on."
                    },
                    "object_key": {
                        "type": "string",
                        "description": "The object's key, which tells objects apart when their names are hidden."
                    },
                    "object_names": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The object's names; null unless the database shows identifiers.",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `critical`, `warning`, `info`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `open`, `resolved`, `dismissed`."
                    },
                    "statement_text": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "A statement's text; null unless the database shows identifiers."
                    },
                    "first_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the item was first seen.",
                        "x-wt15-instant": true
                    },
                    "last_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the item was last seen.",
                        "x-wt15-instant": true
                    },
                    "resolved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it stopped applying; null while it is open.",
                        "x-wt15-instant": true
                    },
                    "dismissed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it was dismissed; null otherwise.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "rule_key",
                    "group",
                    "object_kind",
                    "object_key",
                    "object_names",
                    "severity",
                    "status",
                    "statement_text",
                    "first_seen_at",
                    "last_seen_at",
                    "resolved_at",
                    "dismissed_at"
                ],
                "title": "DatabasesRestoreFindingResource"
            },
            "DatabasesResumeResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesResumeResource"
            },
            "DatabasesRunAdvisorResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesRunAdvisorResource"
            },
            "DatabasesStorageResource": {
                "type": "object",
                "properties": {
                    "measured_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the sizes were measured; null before the first measurement.",
                        "x-wt15-instant": true
                    },
                    "size_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The instance's size."
                    },
                    "days_to_full": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Days until the storage is full."
                    },
                    "forecast_status": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The forecast's status; null before the first forecast."
                    },
                    "growth_bytes_per_day": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The forecast growth, in bytes per day; null before the first forecast or with too little history."
                    },
                    "projections": {
                        "type": "object",
                        "description": "The forecast's projected size, in bytes, after 30, 90, 180 and 365 days; each null with no forecast or too little history.",
                        "properties": {
                            "days_30": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The projected size in bytes after 30 days."
                            },
                            "days_90": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The projected size in bytes after 90 days."
                            },
                            "days_180": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The projected size in bytes after 180 days."
                            },
                            "days_365": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The projected size in bytes after 365 days."
                            }
                        },
                        "required": [
                            "days_30",
                            "days_90",
                            "days_180",
                            "days_365"
                        ]
                    },
                    "ceiling": {
                        "type": "object",
                        "description": "What the forecast measures against; both null before the first forecast.",
                        "properties": {
                            "source": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "One of `volume`, `manual`, `reported`, `none`."
                            },
                            "bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The ceiling in bytes; null before the first forecast."
                            }
                        },
                        "required": [
                            "source",
                            "bytes"
                        ]
                    },
                    "schemas": {
                        "type": "array",
                        "description": "The current schemas, largest first; empty in `counts` mode. A `name` is null unless the database shows identifiers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "The stored schema key, which tells schemas apart when their names are hidden."
                                },
                                "name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The schema's name; null unless the database shows identifiers."
                                },
                                "size_bytes": {
                                    "type": "integer",
                                    "description": "The schema's size in bytes."
                                },
                                "table_count": {
                                    "type": "integer",
                                    "description": "The number of tables in the schema."
                                }
                            },
                            "required": [
                                "key",
                                "name",
                                "size_bytes",
                                "table_count"
                            ]
                        }
                    },
                    "tables": {
                        "type": "array",
                        "description": "The current tables, largest first; empty in `counts` mode. A `name` is null unless the database shows identifiers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "description": "The stored table key, which tells tables apart when their names are hidden."
                                },
                                "schema_key": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The key of the table's schema."
                                },
                                "name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The table's name; null unless the database shows identifiers."
                                },
                                "size_bytes": {
                                    "type": "integer",
                                    "description": "The table's size in bytes."
                                },
                                "rows_estimate": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "The estimated number of rows in the table; null when not estimated."
                                }
                            },
                            "required": [
                                "key",
                                "schema_key",
                                "name",
                                "size_bytes",
                                "rows_estimate"
                            ]
                        }
                    }
                },
                "required": [
                    "measured_at",
                    "size_bytes",
                    "days_to_full",
                    "forecast_status",
                    "growth_bytes_per_day",
                    "projections",
                    "ceiling",
                    "schemas",
                    "tables"
                ],
                "title": "DatabasesStorageResource"
            },
            "DatabasesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesUpdateResource"
            },
            "DatabasesVerifyResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesVerifyResource"
            },
            "DatabasesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The database's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The database's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The description set for the database; null when none is set."
                    },
                    "provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hosting provider's key, such as `aws_rds_mysql`."
                    },
                    "provider_edition": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The provider's edition of the service, such as `aurora`; null when none applies."
                    },
                    "engine": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The database engine, such as `mysql`; null until it is known."
                    },
                    "engine_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's version as the collector reported it; null until a report arrives."
                    },
                    "engine_flavour": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The engine's flavour, such as `mariadb`; null until it is known."
                    },
                    "privacy_mode": {
                        "type": "string",
                        "description": "How much of the database's text the monitor keeps: `hashed`, `identifiers` or `counts`."
                    },
                    "tls_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector secures its connection to the database with TLS; null when not set."
                    },
                    "connection_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `socket`, `loopback`, `private_network`, `public_endpoint`."
                    },
                    "ca_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Where the database's CA comes from; the engine's vocabulary."
                    },
                    "auth_method": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the collector signs in; the engine's vocabulary."
                    },
                    "credentials": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Where the collector's credentials come from, by reference, never a secret: the method and, by method, the names it reads (`file` `{method}`, `socket` and `aws_iam` `{method, user}`, `aws_secrets_manager` `{method, secret, keys}`, `aws_ssm_parameter` `{method, user, password_parameter, redaction_key_parameter}`); null when none is set. With `file` the collector reads `/etc/wt15-server-agent/databases.d/<database uuid>.cnf` on its server, a path WatchTower15 does not record. `PUT` takes the same object as `credential_ref`, so it can be sent back.",
                        "properties": {
                            "method": {
                                "type": "string",
                                "description": "How the collector finds its credentials: `file`, `socket`, `aws_secrets_manager`, `aws_ssm_parameter` or `aws_iam`. More methods may be added."
                            },
                            "user": {
                                "type": "string",
                                "description": "The database user the collector signs in as; with `socket`, `aws_ssm_parameter` and `aws_iam`."
                            },
                            "secret": {
                                "type": "string",
                                "description": "With `aws_secrets_manager`: the ARN of the AWS Secrets Manager secret that holds the credentials, a reference, never its value."
                            },
                            "keys": {
                                "type": "object",
                                "description": "With `aws_secrets_manager`: the names of the JSON keys inside the secret that hold the user, the password and the redaction key; names, never values.",
                                "properties": {
                                    "user": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the user."
                                    },
                                    "password": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the password: a key name, never the password."
                                    },
                                    "redaction_key": {
                                        "type": "string",
                                        "description": "The name of the JSON key inside the secret that holds the redaction key."
                                    }
                                },
                                "required": [
                                    "user",
                                    "password",
                                    "redaction_key"
                                ]
                            },
                            "password_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the password, a reference, never its value."
                            },
                            "redaction_key_parameter": {
                                "type": "string",
                                "description": "With `aws_ssm_parameter`: the name of the SSM parameter that holds the redaction key, a reference, never its value."
                            }
                        },
                        "required": [
                            "method"
                        ]
                    },
                    "collector_pool": {
                        "type": "object",
                        "description": "The rule that picks the database's collectors, as stored; `GET /v1/databases/{database_uuid}/collectors` lists the servers it picks now, and `PUT` takes the same rule as `collectors`, by uuid.",
                        "properties": {
                            "selection": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "`servers` (the servers listed, in order of preference), `tags` (the servers carrying the tags) or null when no rule is set."
                            },
                            "servers": {
                                "type": "array",
                                "description": "The servers listed, in order of preference; an archived or deleted server is left out.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The name of the server; null unless the key also holds the servers.view scope and its owner may view servers."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "all": {
                                "type": "array",
                                "description": "With `tags`: a server must carry every one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "any": {
                                "type": "array",
                                "description": "With `tags`: a server must carry at least one of these tags.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the tag."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "selection",
                            "servers",
                            "all",
                            "any"
                        ]
                    },
                    "reference_key_fingerprint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reference key check value: a fingerprint, never the key."
                    },
                    "reported_key_fingerprints": {
                        "type": "array",
                        "description": "The distinct key check values the collectors report; `databases.acceptKey` takes one. Never a collector or its server.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `draft`, `awaiting_collector`, `verifying`, `active`, `failing`, `paused`."
                    },
                    "status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the status is what it is: words on a draft or on a database no server can collect, the collector's reason code on a failing one, such as `dns`, `tls_failed` or `auth_failed` (`unreachable` when it gave none); null otherwise. More codes may be added."
                    },
                    "over_privileged": {
                        "type": "boolean",
                        "description": "Whether a collector holds more privilege than it needs."
                    },
                    "layers_available": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the collector's probe found it can read, by layer; null before the first probe.",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "storage": {
                        "type": "object",
                        "description": "The database's storage: its size, growth and forecast.",
                        "properties": {
                            "size_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The database's size in bytes; null before the first measurement."
                            },
                            "growth_30d_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The 30-day projection less the size, while the forecast is `ok`."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The forecast number of days until the storage is full; null when it cannot be forecast."
                            },
                            "forecast_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The forecast's status; null before the first forecast."
                            },
                            "ceiling_gib": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The storage ceiling set by hand, in GiB."
                            },
                            "measured_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the size was measured; null before the first measurement.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "size_bytes",
                            "growth_30d_bytes",
                            "days_to_full",
                            "forecast_status",
                            "ceiling_gib",
                            "measured_at"
                        ]
                    },
                    "schema": {
                        "type": "object",
                        "description": "The schema collector's state; its first seven fields are null while no pass has run.",
                        "properties": {
                            "outcome": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The last attempt's outcome."
                            },
                            "last_attempt_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema pass was attempted; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "last_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the database last answered a schema pass; null while none has.",
                                "x-wt15-instant": true
                            },
                            "next_pass_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next schema pass is due; null while no pass has run.",
                                "x-wt15-instant": true
                            },
                            "paused_reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why passes are paused, when they are."
                            },
                            "paused_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when schema passes are paused; null when they are not.",
                                "x-wt15-instant": true
                            },
                            "object_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The number of tables, views and routines found by the last answered pass; null before one.",
                                "properties": {
                                    "tables": {
                                        "type": "integer",
                                        "description": "The number of tables."
                                    },
                                    "views": {
                                        "type": "integer",
                                        "description": "The number of views."
                                    },
                                    "routines": {
                                        "type": "integer",
                                        "description": "The number of routines."
                                    }
                                },
                                "required": [
                                    "tables",
                                    "views",
                                    "routines"
                                ]
                            },
                            "history_started_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the schema history began; null before it did.",
                                "x-wt15-instant": true
                            },
                            "last_change_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the last schema change was detected; null when none has been.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "outcome",
                            "last_attempt_at",
                            "last_pass_at",
                            "next_pass_at",
                            "paused_reason",
                            "paused_since",
                            "object_counts",
                            "history_started_at",
                            "last_change_at"
                        ]
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a report last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags set on the database.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The database's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "description",
                    "provider",
                    "provider_edition",
                    "engine",
                    "engine_version",
                    "engine_flavour",
                    "privacy_mode",
                    "tls_mode",
                    "connection_type",
                    "ca_source",
                    "auth_method",
                    "credentials",
                    "collector_pool",
                    "reference_key_fingerprint",
                    "reported_key_fingerprints",
                    "health_status",
                    "status",
                    "status_reason",
                    "over_privileged",
                    "layers_available",
                    "storage",
                    "schema",
                    "last_received_at",
                    "tags",
                    "console_url"
                ],
                "title": "DatabasesViewResource"
            },
            "DomainsCheckVerificationResource": {
                "type": "object",
                "properties": {
                    "apex": {
                        "type": "string",
                        "description": "The apex domain the verification covers."
                    },
                    "status": {
                        "description": "One of `none`, `pending`, `verified`, `lost`.",
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "none"
                                ],
                                "x-wt15-open-enum": true
                            }
                        ]
                    },
                    "txt_host": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host of the TXT record to publish."
                    },
                    "txt_value": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The value of the TXT record to publish."
                    },
                    "verified_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the apex was verified most recently; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "first_verified_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the apex was first verified; null when it never was.",
                        "x-wt15-instant": true
                    },
                    "lost_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the verification was lost; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "last_checked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the TXT record was last looked up; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "last_check_result": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The result of the last lookup; null when none has run."
                    },
                    "last_absent_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the TXT record was last found missing; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "consecutive_absent": {
                        "type": "integer",
                        "description": "The number of lookups in a row that did not find the TXT record."
                    },
                    "recheck_until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. Until when an unverified apex is looked up again; null when the apex is verified or has no verification.",
                        "x-wt15-instant": true
                    },
                    "authorised_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The user who authorised the scan.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the user who authorised the scan."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the user who authorised the scan; null when the user has no name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "authorised_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan was authorised; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "terms_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The version of the terms the authoriser accepted; null when none were accepted."
                    },
                    "covers": {
                        "type": "array",
                        "description": "The domains the apex covers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The uuid of a covered domain."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of a covered domain."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "check": {
                        "type": "object",
                        "description": "The result of the lookup this call made, or of the last one within the cooldown.",
                        "properties": {
                            "result": {
                                "type": "string",
                                "description": "The outcome of the lookup."
                            },
                            "message": {
                                "type": "string",
                                "description": "A sentence describing the outcome of the lookup."
                            }
                        },
                        "required": [
                            "result",
                            "message"
                        ]
                    }
                },
                "required": [
                    "apex",
                    "status",
                    "txt_host",
                    "txt_value",
                    "verified_at",
                    "first_verified_at",
                    "lost_at",
                    "last_checked_at",
                    "last_check_result",
                    "last_absent_at",
                    "consecutive_absent",
                    "recheck_until",
                    "authorised_by",
                    "authorised_at",
                    "terms_version",
                    "covers",
                    "check"
                ],
                "title": "DomainsCheckVerificationResource"
            },
            "DomainsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The domain's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The domain name."
                    },
                    "domain_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`apex`, `subdomain` or `wildcard`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `active`, `expired`, `pending` (no expiry scan yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "expired",
                            "active"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "checks": {
                        "type": "object",
                        "description": "Which reachability endpoints are checked.",
                        "properties": {
                            "https_www": {
                                "type": "boolean",
                                "description": "Whether `https://www.` is checked."
                            },
                            "https_non_www": {
                                "type": "boolean",
                                "description": "Whether `https://` on the bare domain is checked."
                            },
                            "http_www": {
                                "type": "boolean",
                                "description": "Whether `http://www.` is checked."
                            },
                            "http_non_www": {
                                "type": "boolean",
                                "description": "Whether `http://` on the bare domain is checked."
                            }
                        },
                        "required": [
                            "https_www",
                            "https_non_www",
                            "http_www",
                            "http_non_www"
                        ]
                    },
                    "scans_enabled": {
                        "type": "object",
                        "description": "Which scan types are switched on.",
                        "properties": {
                            "expiry": {
                                "type": "boolean",
                                "description": "Whether the registration expiry scan is on."
                            },
                            "dns": {
                                "type": "boolean",
                                "description": "Whether the DNS change scan is on."
                            },
                            "ssl": {
                                "type": "boolean",
                                "description": "Whether the SSL certificate expiry scan is on."
                            },
                            "whois": {
                                "type": "boolean",
                                "description": "Whether the WHOIS change scan is on."
                            },
                            "reachability": {
                                "type": "boolean",
                                "description": "Whether the reachability scan is on."
                            }
                        },
                        "required": [
                            "expiry",
                            "dns",
                            "ssl",
                            "whois",
                            "reachability"
                        ]
                    },
                    "registration": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed expiry scan; null until one completes.",
                        "properties": {
                            "registrar": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registrar of the domain; null when the registry does not publish it."
                            },
                            "registration_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration date as `YYYY-MM-DD`; null when unknown."
                            },
                            "expiry_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration expiry date as `YYYY-MM-DD`; null when unknown."
                            },
                            "updated_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The date the registration was last updated, as `YYYY-MM-DD`; null when unknown."
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the registration expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": "boolean",
                                "description": "Whether the registration has expired."
                            },
                            "nameservers": {
                                "type": "array",
                                "description": "The domain's name servers, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "status_codes": {
                                "type": "array",
                                "description": "The registry status codes of the domain, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the expiry scan completed; null when unknown.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "registrar",
                            "registration_date",
                            "expiry_date",
                            "updated_date",
                            "days_until_expiry",
                            "is_expired",
                            "nameservers",
                            "status_codes",
                            "checked_at"
                        ]
                    },
                    "certificate": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed certificate scan; null until one completes.",
                        "properties": {
                            "common_name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate; null when it has none."
                            },
                            "issuer_cn": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate's issuer; null when unknown."
                            },
                            "issuer_org": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The organisation of the certificate's issuer; null when unknown."
                            },
                            "valid_from": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate becomes valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "valid_until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate stops being valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the certificate expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate has expired; null when unknown."
                            },
                            "is_self_signed": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate is self-signed; null when unknown."
                            },
                            "chain_valid": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate chain validates; null when unknown."
                            },
                            "ssl_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "One of `valid`, `warn` (30 days or fewer left), `expired`; null with no verdict."
                            }
                        },
                        "required": [
                            "common_name",
                            "issuer_cn",
                            "issuer_org",
                            "valid_from",
                            "valid_until",
                            "days_until_expiry",
                            "is_expired",
                            "is_self_signed",
                            "chain_valid",
                            "ssl_status"
                        ]
                    },
                    "dns": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The newest completed DNS scan; null with none.",
                        "properties": {
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the DNS scan completed; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "records": {
                                "type": "object",
                                "description": "The DNS records of the scan, by record type.",
                                "properties": {
                                    "a": {
                                        "type": "array",
                                        "description": "The A records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "aaaa": {
                                        "type": "array",
                                        "description": "The AAAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "mx": {
                                        "type": "array",
                                        "description": "The MX records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "txt": {
                                        "type": "array",
                                        "description": "The TXT records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "cname": {
                                        "type": "array",
                                        "description": "The CNAME records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "ns": {
                                        "type": "array",
                                        "description": "The NS records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "soa": {
                                        "type": "array",
                                        "description": "The SOA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "caa": {
                                        "type": "array",
                                        "description": "The CAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "a",
                                    "aaaa",
                                    "mx",
                                    "txt",
                                    "cname",
                                    "ns",
                                    "soa",
                                    "caa"
                                ]
                            }
                        },
                        "required": [
                            "checked_at",
                            "records"
                        ]
                    },
                    "next_scans": {
                        "type": "array",
                        "description": "When each scan type runs next.",
                        "prefixItems": [
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "dns"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "expiry"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "ssl"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            }
                        ],
                        "minItems": 3,
                        "maxItems": 3
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the domain.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The domain's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "domain_type",
                    "status",
                    "health_status",
                    "active",
                    "checks",
                    "scans_enabled",
                    "registration",
                    "certificate",
                    "dns",
                    "next_scans",
                    "tags",
                    "console_url"
                ],
                "title": "DomainsCreateResource"
            },
            "DomainsRunScanResource": {
                "type": "object",
                "properties": {
                    "scan_uuid": {
                        "type": "string",
                        "description": "The queued scan: follow it with `GET /v1/scans/{scan_uuid}`."
                    },
                    "scan_type": {
                        "type": "string",
                        "description": "One of `dns`, `expiry`, `information`, `ssl`."
                    },
                    "status": {
                        "type": "string",
                        "description": "Always `queued` here."
                    },
                    "queued_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan was queued.",
                        "x-wt15-instant": true
                    },
                    "domain_uuid": {
                        "type": "string",
                        "description": "The uuid of the domain the scan belongs to."
                    }
                },
                "required": [
                    "scan_uuid",
                    "scan_type",
                    "status",
                    "queued_at",
                    "domain_uuid"
                ],
                "title": "DomainsRunScanResource"
            },
            "DomainsStartVerificationResource": {
                "type": "object",
                "properties": {
                    "apex": {
                        "type": "string",
                        "description": "The apex domain the verification covers."
                    },
                    "status": {
                        "description": "One of `none`, `pending`, `verified`, `lost`.",
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "none"
                                ],
                                "x-wt15-open-enum": true
                            }
                        ]
                    },
                    "txt_host": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host of the TXT record to publish."
                    },
                    "txt_value": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The value of the TXT record to publish."
                    },
                    "verified_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the apex was verified most recently; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "first_verified_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the apex was first verified; null when it never was.",
                        "x-wt15-instant": true
                    },
                    "lost_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the verification was lost; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "last_checked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the TXT record was last looked up; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "last_check_result": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The result of the last lookup; null when none has run."
                    },
                    "last_absent_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the TXT record was last found missing; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "consecutive_absent": {
                        "type": "integer",
                        "description": "The number of lookups in a row that did not find the TXT record."
                    },
                    "recheck_until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. Until when an unverified apex is looked up again; null when the apex is verified or has no verification.",
                        "x-wt15-instant": true
                    },
                    "authorised_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The user who authorised the scan.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the user who authorised the scan."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the user who authorised the scan; null when the user has no name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "authorised_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan was authorised; null when it has not been.",
                        "x-wt15-instant": true
                    },
                    "terms_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The version of the terms the authoriser accepted; null when none were accepted."
                    },
                    "covers": {
                        "type": "array",
                        "description": "The domains the apex covers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The uuid of a covered domain."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of a covered domain."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "apex",
                    "status",
                    "txt_host",
                    "txt_value",
                    "verified_at",
                    "first_verified_at",
                    "lost_at",
                    "last_checked_at",
                    "last_check_result",
                    "last_absent_at",
                    "consecutive_absent",
                    "recheck_until",
                    "authorised_by",
                    "authorised_at",
                    "terms_version",
                    "covers"
                ],
                "title": "DomainsStartVerificationResource"
            },
            "DomainsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The domain's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The domain name."
                    },
                    "domain_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`apex`, `subdomain` or `wildcard`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `active`, `expired`, `pending` (no expiry scan yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "expired",
                            "active"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "checks": {
                        "type": "object",
                        "description": "Which reachability endpoints are checked.",
                        "properties": {
                            "https_www": {
                                "type": "boolean",
                                "description": "Whether `https://www.` is checked."
                            },
                            "https_non_www": {
                                "type": "boolean",
                                "description": "Whether `https://` on the bare domain is checked."
                            },
                            "http_www": {
                                "type": "boolean",
                                "description": "Whether `http://www.` is checked."
                            },
                            "http_non_www": {
                                "type": "boolean",
                                "description": "Whether `http://` on the bare domain is checked."
                            }
                        },
                        "required": [
                            "https_www",
                            "https_non_www",
                            "http_www",
                            "http_non_www"
                        ]
                    },
                    "scans_enabled": {
                        "type": "object",
                        "description": "Which scan types are switched on.",
                        "properties": {
                            "expiry": {
                                "type": "boolean",
                                "description": "Whether the registration expiry scan is on."
                            },
                            "dns": {
                                "type": "boolean",
                                "description": "Whether the DNS change scan is on."
                            },
                            "ssl": {
                                "type": "boolean",
                                "description": "Whether the SSL certificate expiry scan is on."
                            },
                            "whois": {
                                "type": "boolean",
                                "description": "Whether the WHOIS change scan is on."
                            },
                            "reachability": {
                                "type": "boolean",
                                "description": "Whether the reachability scan is on."
                            }
                        },
                        "required": [
                            "expiry",
                            "dns",
                            "ssl",
                            "whois",
                            "reachability"
                        ]
                    },
                    "registration": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed expiry scan; null until one completes.",
                        "properties": {
                            "registrar": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registrar of the domain; null when the registry does not publish it."
                            },
                            "registration_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration date as `YYYY-MM-DD`; null when unknown."
                            },
                            "expiry_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration expiry date as `YYYY-MM-DD`; null when unknown."
                            },
                            "updated_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The date the registration was last updated, as `YYYY-MM-DD`; null when unknown."
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the registration expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": "boolean",
                                "description": "Whether the registration has expired."
                            },
                            "nameservers": {
                                "type": "array",
                                "description": "The domain's name servers, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "status_codes": {
                                "type": "array",
                                "description": "The registry status codes of the domain, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the expiry scan completed; null when unknown.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "registrar",
                            "registration_date",
                            "expiry_date",
                            "updated_date",
                            "days_until_expiry",
                            "is_expired",
                            "nameservers",
                            "status_codes",
                            "checked_at"
                        ]
                    },
                    "certificate": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed certificate scan; null until one completes.",
                        "properties": {
                            "common_name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate; null when it has none."
                            },
                            "issuer_cn": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate's issuer; null when unknown."
                            },
                            "issuer_org": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The organisation of the certificate's issuer; null when unknown."
                            },
                            "valid_from": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate becomes valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "valid_until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate stops being valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the certificate expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate has expired; null when unknown."
                            },
                            "is_self_signed": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate is self-signed; null when unknown."
                            },
                            "chain_valid": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate chain validates; null when unknown."
                            },
                            "ssl_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "One of `valid`, `warn` (30 days or fewer left), `expired`; null with no verdict."
                            }
                        },
                        "required": [
                            "common_name",
                            "issuer_cn",
                            "issuer_org",
                            "valid_from",
                            "valid_until",
                            "days_until_expiry",
                            "is_expired",
                            "is_self_signed",
                            "chain_valid",
                            "ssl_status"
                        ]
                    },
                    "dns": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The newest completed DNS scan; null with none.",
                        "properties": {
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the DNS scan completed; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "records": {
                                "type": "object",
                                "description": "The DNS records of the scan, by record type.",
                                "properties": {
                                    "a": {
                                        "type": "array",
                                        "description": "The A records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "aaaa": {
                                        "type": "array",
                                        "description": "The AAAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "mx": {
                                        "type": "array",
                                        "description": "The MX records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "txt": {
                                        "type": "array",
                                        "description": "The TXT records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "cname": {
                                        "type": "array",
                                        "description": "The CNAME records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "ns": {
                                        "type": "array",
                                        "description": "The NS records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "soa": {
                                        "type": "array",
                                        "description": "The SOA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "caa": {
                                        "type": "array",
                                        "description": "The CAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "a",
                                    "aaaa",
                                    "mx",
                                    "txt",
                                    "cname",
                                    "ns",
                                    "soa",
                                    "caa"
                                ]
                            }
                        },
                        "required": [
                            "checked_at",
                            "records"
                        ]
                    },
                    "next_scans": {
                        "type": "array",
                        "description": "When each scan type runs next.",
                        "prefixItems": [
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "dns"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "expiry"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "ssl"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            }
                        ],
                        "minItems": 3,
                        "maxItems": 3
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the domain.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The domain's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "domain_type",
                    "status",
                    "health_status",
                    "active",
                    "checks",
                    "scans_enabled",
                    "registration",
                    "certificate",
                    "dns",
                    "next_scans",
                    "tags",
                    "console_url"
                ],
                "title": "DomainsUpdateResource"
            },
            "DomainsUptimeResource": {
                "type": "object",
                "properties": {
                    "endpoints": {
                        "type": "array",
                        "description": "One entry per configured reachability endpoint.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "endpoint": {
                                    "type": "string",
                                    "description": "One of `https_www`, `https_non_www`, `http_www`, `http_non_www`."
                                },
                                "uptime_24h_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The last 24 hours' reachability of the endpoint, as a percentage; null with no data."
                                },
                                "uptime_7d_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The last 7 days' reachability of the endpoint, as a percentage; null with no data."
                                },
                                "uptime_30d_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The last 30 days' reachability of the endpoint, as a percentage; null with no data."
                                },
                                "checks_30d": {
                                    "type": "integer",
                                    "description": "The number of checks of the endpoint in the last 30 days."
                                }
                            },
                            "required": [
                                "endpoint",
                                "uptime_24h_percent",
                                "uptime_7d_percent",
                                "uptime_30d_percent",
                                "checks_30d"
                            ]
                        }
                    },
                    "buckets": {
                        "type": "array",
                        "description": "Present only with `include_buckets=true`, oldest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "bucket": {
                                    "type": "integer",
                                    "description": "Epoch milliseconds: the start of the hour the bucket covers.",
                                    "x-wt15-instant": true
                                },
                                "total": {
                                    "type": "integer",
                                    "description": "The number of checks made in the hour."
                                },
                                "https_www": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The share of the hour's `https://www` checks that succeeded, as a percentage; null with no observation."
                                },
                                "https_non_www": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The share of the hour's `https://` checks on the bare domain that succeeded, as a percentage; null with no observation."
                                },
                                "http_www": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The share of the hour's `http://www` checks that succeeded, as a percentage; null with no observation."
                                },
                                "http_non_www": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The share of the hour's `http://` checks on the bare domain that succeeded, as a percentage; null with no observation."
                                }
                            },
                            "required": [
                                "bucket",
                                "total"
                            ]
                        }
                    }
                },
                "required": [
                    "endpoints"
                ],
                "title": "DomainsUptimeResource"
            },
            "DomainsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The domain's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The domain name."
                    },
                    "domain_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`apex`, `subdomain` or `wildcard`."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `active`, `expired`, `pending` (no expiry scan yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "expired",
                            "active"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "checks": {
                        "type": "object",
                        "description": "Which reachability endpoints are checked.",
                        "properties": {
                            "https_www": {
                                "type": "boolean",
                                "description": "Whether `https://www.` is checked."
                            },
                            "https_non_www": {
                                "type": "boolean",
                                "description": "Whether `https://` on the bare domain is checked."
                            },
                            "http_www": {
                                "type": "boolean",
                                "description": "Whether `http://www.` is checked."
                            },
                            "http_non_www": {
                                "type": "boolean",
                                "description": "Whether `http://` on the bare domain is checked."
                            }
                        },
                        "required": [
                            "https_www",
                            "https_non_www",
                            "http_www",
                            "http_non_www"
                        ]
                    },
                    "scans_enabled": {
                        "type": "object",
                        "description": "Which scan types are switched on.",
                        "properties": {
                            "expiry": {
                                "type": "boolean",
                                "description": "Whether the registration expiry scan is on."
                            },
                            "dns": {
                                "type": "boolean",
                                "description": "Whether the DNS change scan is on."
                            },
                            "ssl": {
                                "type": "boolean",
                                "description": "Whether the SSL certificate expiry scan is on."
                            },
                            "whois": {
                                "type": "boolean",
                                "description": "Whether the WHOIS change scan is on."
                            },
                            "reachability": {
                                "type": "boolean",
                                "description": "Whether the reachability scan is on."
                            }
                        },
                        "required": [
                            "expiry",
                            "dns",
                            "ssl",
                            "whois",
                            "reachability"
                        ]
                    },
                    "registration": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed expiry scan; null until one completes.",
                        "properties": {
                            "registrar": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registrar of the domain; null when the registry does not publish it."
                            },
                            "registration_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration date as `YYYY-MM-DD`; null when unknown."
                            },
                            "expiry_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The registration expiry date as `YYYY-MM-DD`; null when unknown."
                            },
                            "updated_date": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The date the registration was last updated, as `YYYY-MM-DD`; null when unknown."
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the registration expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": "boolean",
                                "description": "Whether the registration has expired."
                            },
                            "nameservers": {
                                "type": "array",
                                "description": "The domain's name servers, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "status_codes": {
                                "type": "array",
                                "description": "The registry status codes of the domain, one per item.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the expiry scan completed; null when unknown.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "registrar",
                            "registration_date",
                            "expiry_date",
                            "updated_date",
                            "days_until_expiry",
                            "is_expired",
                            "nameservers",
                            "status_codes",
                            "checked_at"
                        ]
                    },
                    "certificate": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest completed certificate scan; null until one completes.",
                        "properties": {
                            "common_name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate; null when it has none."
                            },
                            "issuer_cn": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The common name of the certificate's issuer; null when unknown."
                            },
                            "issuer_org": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The organisation of the certificate's issuer; null when unknown."
                            },
                            "valid_from": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate becomes valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "valid_until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the certificate stops being valid; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "days_until_expiry": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days left until the certificate expires; negative once expired, null when unknown."
                            },
                            "is_expired": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate has expired; null when unknown."
                            },
                            "is_self_signed": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate is self-signed; null when unknown."
                            },
                            "chain_valid": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the certificate chain validates; null when unknown."
                            },
                            "ssl_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "One of `valid`, `warn` (30 days or fewer left), `expired`; null with no verdict."
                            }
                        },
                        "required": [
                            "common_name",
                            "issuer_cn",
                            "issuer_org",
                            "valid_from",
                            "valid_until",
                            "days_until_expiry",
                            "is_expired",
                            "is_self_signed",
                            "chain_valid",
                            "ssl_status"
                        ]
                    },
                    "dns": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The newest completed DNS scan; null with none.",
                        "properties": {
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the DNS scan completed; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "records": {
                                "type": "object",
                                "description": "The DNS records of the scan, by record type.",
                                "properties": {
                                    "a": {
                                        "type": "array",
                                        "description": "The A records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "aaaa": {
                                        "type": "array",
                                        "description": "The AAAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "mx": {
                                        "type": "array",
                                        "description": "The MX records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "txt": {
                                        "type": "array",
                                        "description": "The TXT records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "cname": {
                                        "type": "array",
                                        "description": "The CNAME records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "ns": {
                                        "type": "array",
                                        "description": "The NS records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "soa": {
                                        "type": "array",
                                        "description": "The SOA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "caa": {
                                        "type": "array",
                                        "description": "The CAA records, as text lines.",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "a",
                                    "aaaa",
                                    "mx",
                                    "txt",
                                    "cname",
                                    "ns",
                                    "soa",
                                    "caa"
                                ]
                            }
                        },
                        "required": [
                            "checked_at",
                            "records"
                        ]
                    },
                    "next_scans": {
                        "type": "array",
                        "description": "When each scan type runs next.",
                        "prefixItems": [
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "dns"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "expiry"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "description": "The scan type the entry is for.",
                                        "const": "ssl"
                                    },
                                    "at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the scan runs next; null when none is scheduled.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "kind",
                                    "at"
                                ]
                            }
                        ],
                        "minItems": 3,
                        "maxItems": 3
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the domain.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The domain's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "domain_type",
                    "status",
                    "health_status",
                    "active",
                    "checks",
                    "scans_enabled",
                    "registration",
                    "certificate",
                    "dns",
                    "next_scans",
                    "tags",
                    "console_url"
                ],
                "title": "DomainsViewResource"
            },
            "HealthMapResource": {
                "type": "object",
                "properties": {
                    "types": {
                        "type": "array",
                        "description": "One section per requested resource type, in the order servers, domains, services, log sources, custom metrics, databases.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "type": {
                                    "type": "string",
                                    "description": "The resource type: one of `servers`, `domains`, `services`, `log_sources`, `custom_metrics` or `databases`."
                                },
                                "available": {
                                    "type": "boolean",
                                    "description": "Whether the key may view this type; when false, no other field of the section is present."
                                },
                                "total": {
                                    "type": "integer",
                                    "description": "How many resources of this type the map covers, before `include_healthy` and `limit` cut the rows."
                                },
                                "counts": {
                                    "type": "object",
                                    "description": "How many resources are in each bucket, over all `total` resources.",
                                    "properties": {
                                        "critical": {
                                            "type": "integer",
                                            "description": "How many resources are critical."
                                        },
                                        "unreachable": {
                                            "type": "integer",
                                            "description": "How many resources are unreachable."
                                        },
                                        "warning": {
                                            "type": "integer",
                                            "description": "How many resources are in a warning state."
                                        },
                                        "unknown": {
                                            "type": "integer",
                                            "description": "How many resources are of unknown health."
                                        },
                                        "healthy": {
                                            "type": "integer",
                                            "description": "How many resources are healthy."
                                        },
                                        "unwatched": {
                                            "type": "integer",
                                            "description": "How many resources are not watched by any alarm."
                                        }
                                    },
                                    "required": [
                                        "critical",
                                        "unreachable",
                                        "warning",
                                        "unknown",
                                        "healthy",
                                        "unwatched"
                                    ]
                                },
                                "rows": {
                                    "type": "array",
                                    "description": "The map's cells, worst first, after `include_healthy` and `limit` are applied.",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "entity": {
                                                "type": "object",
                                                "description": "The resource the cell stands for.",
                                                "properties": {
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The resource's type, such as `server`."
                                                    },
                                                    "uuid": {
                                                        "type": "string",
                                                        "description": "The resource's uuid."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The resource's name."
                                                    }
                                                },
                                                "required": [
                                                    "type",
                                                    "uuid",
                                                    "name"
                                                ]
                                            },
                                            "console_url": {
                                                "type": "string",
                                                "description": "The address of the resource's page in the WatchTower15 console."
                                            },
                                            "health": {
                                                "type": "string",
                                                "description": "The resource's stored health state."
                                            },
                                            "bucket": {
                                                "type": "string",
                                                "description": "The bucket the cell is counted in: one of `critical`, `unreachable`, `warning`, `unknown`, `healthy` or `unwatched`."
                                            },
                                            "note": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "A short code naming why the cell has its bucket when the alarms alone do not say, such as `no_alarms`; null when there is none."
                                            },
                                            "since_at": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "description": "Epoch milliseconds. When the cell took its current bucket, as near as its incidents can say; null when that is not known.",
                                                "x-wt15-instant": true
                                            },
                                            "issue_count": {
                                                "type": "integer",
                                                "description": "How many incidents are firing on the resource."
                                            },
                                            "issues": {
                                                "type": "array",
                                                "description": "The firing incidents, critical first and oldest first within a severity, cut to a fixed number; empty when the key may not view incidents.",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "severity": {
                                                            "type": "string",
                                                            "description": "One of `warning`, `critical`."
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The name of the alarm that is firing."
                                                        },
                                                        "subject": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "What the incident is about when the resource has several, such as a volume or a port; null when it is the resource itself."
                                                        },
                                                        "since_at": {
                                                            "type": [
                                                                "integer",
                                                                "null"
                                                            ],
                                                            "description": "Epoch milliseconds. When the incident was triggered; null when not known.",
                                                            "x-wt15-instant": true
                                                        },
                                                        "acknowledged": {
                                                            "type": "boolean",
                                                            "description": "Whether the incident has been acknowledged."
                                                        }
                                                    },
                                                    "required": [
                                                        "severity",
                                                        "name",
                                                        "subject",
                                                        "since_at",
                                                        "acknowledged"
                                                    ]
                                                }
                                            }
                                        },
                                        "required": [
                                            "entity",
                                            "console_url",
                                            "health",
                                            "bucket",
                                            "note",
                                            "since_at",
                                            "issue_count",
                                            "issues"
                                        ]
                                    }
                                },
                                "rows_omitted": {
                                    "type": "integer",
                                    "description": "How many of the `total` resources are not in `rows`."
                                }
                            },
                            "required": [
                                "type",
                                "available"
                            ]
                        }
                    }
                },
                "required": [
                    "types"
                ],
                "title": "HealthMapResource"
            },
            "HealthSummaryResource": {
                "type": "object",
                "properties": {
                    "generated_at": {
                        "type": "integer",
                        "description": "Epoch milliseconds. When the counts were read.",
                        "x-wt15-instant": true
                    },
                    "servers": {
                        "type": "object",
                        "description": "The server counts, or `available: false` and nothing else when the key may not view servers.",
                        "properties": {
                            "available": {
                                "type": "boolean",
                                "description": "Whether the key may view this section; when false, no other field is present."
                            },
                            "active": {
                                "type": "integer",
                                "description": "How many servers are active."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "How many active servers are in a warning state."
                            },
                            "critical": {
                                "type": "integer",
                                "description": "How many active servers are in a critical state."
                            },
                            "seen_last_5m": {
                                "type": "integer",
                                "description": "How many servers reported in the last 5 minutes."
                            },
                            "seen_last_1h": {
                                "type": "integer",
                                "description": "How many servers reported in the last hour."
                            },
                            "security": {
                                "type": "object",
                                "description": "The servers the dashboard counts under Security: the active servers its security heat map draws, so a revoked or agent-less server, a pending one and an inactive one are not counted. A server no active Security alarm watches is counted by its stored security health.",
                                "properties": {
                                    "warning": {
                                        "type": "integer",
                                        "description": "How many of them have a security health of warning."
                                    },
                                    "critical": {
                                        "type": "integer",
                                        "description": "How many of them have a security health of critical."
                                    }
                                },
                                "required": [
                                    "warning",
                                    "critical"
                                ]
                            }
                        },
                        "required": [
                            "available"
                        ]
                    },
                    "domains": {
                        "type": "object",
                        "description": "The domain counts, or `available: false` and nothing else when the key may not view domains.",
                        "properties": {
                            "available": {
                                "type": "boolean",
                                "description": "Whether the key may view this section; when false, no other field is present."
                            },
                            "active": {
                                "type": "integer",
                                "description": "How many domains are active."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "How many active domains are in a warning state."
                            },
                            "critical": {
                                "type": "integer",
                                "description": "How many active domains are in a critical state."
                            }
                        },
                        "required": [
                            "available"
                        ]
                    },
                    "services": {
                        "type": "object",
                        "description": "The service counts, or `available: false` and nothing else when the key may not view services.",
                        "properties": {
                            "available": {
                                "type": "boolean",
                                "description": "Whether the key may view this section; when false, no other field is present."
                            },
                            "active": {
                                "type": "integer",
                                "description": "How many services are active."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "How many active services are in a warning state."
                            },
                            "critical": {
                                "type": "integer",
                                "description": "How many active services are in a critical state."
                            }
                        },
                        "required": [
                            "available"
                        ]
                    },
                    "log_sources": {
                        "type": "object",
                        "description": "The log source counts, or `available: false` and nothing else when the key may not view logs.",
                        "properties": {
                            "available": {
                                "type": "boolean",
                                "description": "Whether the key may view this section; when false, no other field is present."
                            },
                            "active": {
                                "type": "integer",
                                "description": "How many log sources are active."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "How many active log sources are in a warning state."
                            },
                            "critical": {
                                "type": "integer",
                                "description": "How many active log sources are in a critical state."
                            },
                            "received_last_5m": {
                                "type": "integer",
                                "description": "How many log sources received logs in the last 5 minutes."
                            },
                            "received_last_1h": {
                                "type": "integer",
                                "description": "How many log sources received logs in the last hour."
                            }
                        },
                        "required": [
                            "available"
                        ]
                    },
                    "scans": {
                        "type": "object",
                        "description": "How many scans ran recently, by kind of resource.",
                        "properties": {
                            "domains": {
                                "type": "object",
                                "description": "The domain scan counts, or `available: false` and nothing else when the key may not view domains.",
                                "properties": {
                                    "available": {
                                        "type": "boolean",
                                        "description": "Whether the key may view this section; when false, no other field is present."
                                    },
                                    "last_1h": {
                                        "type": "integer",
                                        "description": "How many domain scans ran in the last hour."
                                    },
                                    "last_24h": {
                                        "type": "integer",
                                        "description": "How many domain scans ran in the last 24 hours."
                                    }
                                },
                                "required": [
                                    "available"
                                ]
                            },
                            "services": {
                                "type": "object",
                                "description": "The service scan counts, or `available: false` and nothing else when the key may not view services.",
                                "properties": {
                                    "available": {
                                        "type": "boolean",
                                        "description": "Whether the key may view this section; when false, no other field is present."
                                    },
                                    "last_1h": {
                                        "type": "integer",
                                        "description": "How many service scans ran in the last hour."
                                    },
                                    "last_24h": {
                                        "type": "integer",
                                        "description": "How many service scans ran in the last 24 hours."
                                    }
                                },
                                "required": [
                                    "available"
                                ]
                            }
                        },
                        "required": [
                            "domains",
                            "services"
                        ]
                    }
                },
                "required": [
                    "generated_at",
                    "servers",
                    "domains",
                    "services",
                    "log_sources",
                    "scans"
                ],
                "title": "HealthSummaryResource"
            },
            "IncidentsAcknowledgeResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The incident's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `open`, `acknowledged`, `resolved`."
                    },
                    "changed": {
                        "type": "boolean",
                        "description": "Whether this call changed the status: false for an incident that was no longer open."
                    },
                    "acknowledged_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the incident was acknowledged; null if it has not been.",
                        "x-wt15-instant": true
                    },
                    "acknowledged_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who acknowledged the incident; null when nobody did.",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The person's display name; null when it is not known."
                            }
                        },
                        "required": [
                            "name"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "changed",
                    "acknowledged_at",
                    "acknowledged_by"
                ],
                "title": "IncidentsAcknowledgeResource"
            },
            "IncidentsResolveResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The incident's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `open`, `acknowledged`, `resolved`."
                    },
                    "changed": {
                        "type": "boolean",
                        "description": "Whether this call changed the status: false for an incident that was already resolved."
                    },
                    "resolved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the incident was resolved; null if it has not been.",
                        "x-wt15-instant": true
                    },
                    "resolved_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who resolved the incident; null when a person did not (the system resolved it, or it is not resolved).",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The person's display name; null when it is not known."
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "resolution": {
                        "description": "Null when `changed` is false. `accepted`: WatchTower15 accepted the change, and the alarm returns only when the port or service comes back and stops again. `checked_again`: the next alarm pass opens a new incident if the condition still holds."
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "changed",
                    "resolved_at",
                    "resolved_by",
                    "resolution"
                ],
                "title": "IncidentsResolveResource"
            },
            "IncidentsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The incident's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `open`, `acknowledged`, `resolved`."
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `warning`, `critical`."
                    },
                    "message": {
                        "type": "string",
                        "description": "The incident's message, as the alarm worded it when it fired."
                    },
                    "rule_name": {
                        "type": "string",
                        "description": "The alarm's own name, which tells apart two alarms on one metric."
                    },
                    "rule_slug": {
                        "description": "The slug of the catalogue rule behind the alarm; null once the alarm is gone."
                    },
                    "metric_name": {
                        "description": "The catalogue rule's name; null once the alarm is gone."
                    },
                    "scan_type": {
                        "description": "The kind of scan that raises the incident, for a rule that is raised by scans; null otherwise."
                    },
                    "entity": {
                        "type": "object",
                        "description": "The resource the incident is about, of any type that has alarms.",
                        "properties": {
                            "type": {
                                "description": "The type of the resource, such as `server`."
                            },
                            "uuid": {
                                "description": "The uuid of the resource."
                            },
                            "name": {
                                "description": "The name of the resource."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "parent_entity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server of a volume, port or unit; null for every other entity.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "The type of the server, such as `server`."
                            },
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the server."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "server": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server the incident is about: the entity itself for a server incident, its server for a volume, port or unit; null for every other type, which has no server.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the server."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "triggered_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the incident was triggered.",
                        "x-wt15-instant": true
                    },
                    "acknowledged_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the incident was acknowledged; null while it has not been.",
                        "x-wt15-instant": true
                    },
                    "acknowledged_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who acknowledged the incident; null while it has not been.",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The person's display name; null when it is not known."
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "resolved_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the incident was resolved; null while it is open.",
                        "x-wt15-instant": true
                    },
                    "resolved_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who resolved the incident; null while it is open or when the system resolved it.",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The person's display name; null when it is not known."
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "resolved_by_system": {
                        "type": "boolean",
                        "description": "Whether the system resolved it (the condition cleared), not a person."
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The address of the incident's page in the WatchTower15 console."
                    },
                    "change_detail": {
                        "type": "object",
                        "description": "What changed when the incident fired, `{<field>: {old, new}}`, the stored normalised strings (an SSL instant as its text, the one exception to epoch milliseconds); `{}` with none. The WHOIS registrant fields are left out.",
                        "additionalProperties": {
                            "type": "object",
                            "properties": {
                                "old": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The value before the change, as text; null when there was none."
                                },
                                "new": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The value after the change, as text; null when there is none."
                                }
                            },
                            "required": [
                                "old",
                                "new"
                            ]
                        }
                    },
                    "alarm_uuid": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The alarm the incident belongs to; null once it is gone."
                    },
                    "trigger_scan_uuid": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The scan that raised the incident."
                    },
                    "resolve_scan_uuid": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The scan that cleared it."
                    },
                    "notification_sent_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds: when notifications for the trigger were sent; null when none were.",
                        "x-wt15-instant": true
                    },
                    "notification_held_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds: when an alarm snooze on the incident's resource (its server, that server's profile or its service) held its triggered notification; null when none is held. Cleared when the snooze's end releases it, or when it is acknowledged or resolved first.",
                        "x-wt15-instant": true
                    },
                    "notifications": {
                        "type": "array",
                        "description": "The notifications sent for the incident, one for each channel.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "channel": {
                                    "type": "string",
                                    "description": "The channel it went out on, such as `email` or `slack`: an open set."
                                },
                                "status": {
                                    "type": "string",
                                    "description": "How it went: `sent`, `failed`, `skipped` or `queued`, as the notifier records it; an open set."
                                },
                                "sent_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the notification was sent; null when it was not sent.",
                                    "x-wt15-instant": true
                                }
                            },
                            "required": [
                                "channel",
                                "status",
                                "sent_at"
                            ]
                        }
                    },
                    "unit_state": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The state of the systemd unit when the incident opened, so what it was doing is known after it recovers; null for an incident on anything else and for one opened before this was recorded.",
                        "properties": {
                            "active_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "systemd's `ActiveState` of the unit when the incident opened."
                            },
                            "sub_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "systemd's `SubState` of the unit when the incident opened."
                            },
                            "result": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "systemd's `Result` of the unit when the incident opened; null when it was not reported (the unit was active or had not run)."
                            },
                            "exit_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The unit's exit status when the incident opened (systemd's `ExecMainStatus`, or the signal number when `result` is `signal` or `core-dump`); null when not reported."
                            },
                            "state_changed_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the unit's state last changed, as it stood when the incident opened; null when not known.",
                                "x-wt15-instant": true
                            },
                            "active_entered_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the unit last entered `active`, as it stood when the incident opened; null when it has not since it was loaded.",
                                "x-wt15-instant": true
                            },
                            "inventory_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent reported the inventory this state was read from, at most one system-info interval before the incident opened.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "active_state",
                            "sub_state",
                            "result",
                            "exit_code",
                            "state_changed_at",
                            "active_entered_at",
                            "inventory_at"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "severity",
                    "message",
                    "rule_name",
                    "rule_slug",
                    "metric_name",
                    "scan_type",
                    "entity",
                    "parent_entity",
                    "server",
                    "triggered_at",
                    "acknowledged_at",
                    "acknowledged_by",
                    "resolved_at",
                    "resolved_by",
                    "resolved_by_system",
                    "console_url",
                    "change_detail",
                    "alarm_uuid",
                    "trigger_scan_uuid",
                    "resolve_scan_uuid",
                    "notification_sent_at",
                    "notification_held_at",
                    "notifications",
                    "unit_state"
                ],
                "title": "IncidentsViewResource"
            },
            "LogSourcesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a line last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "silence_warning_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a warning; null for the platform default."
                    },
                    "silence_critical_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a critical alarm; null for the platform default."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no lines."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "silence_warning_minutes",
                    "silence_critical_minutes",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "created_at",
                    "tags"
                ],
                "title": "LogSourcesCreateResource"
            },
            "LogSourcesRevokeTokenResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a line last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "silence_warning_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a warning; null for the platform default."
                    },
                    "silence_critical_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a critical alarm; null for the platform default."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no lines."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "silence_warning_minutes",
                    "silence_critical_minutes",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "created_at",
                    "tags"
                ],
                "title": "LogSourcesRevokeTokenResource"
            },
            "LogSourcesRotateTokenResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The uuid of the log source."
                    },
                    "ingest_token": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The ingest token, shown once; null on a replay of the first answer."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; null on a replay of the first answer."
                    }
                },
                "required": [
                    "uuid",
                    "ingest_token",
                    "ingest_token_last_four"
                ],
                "title": "LogSourcesRotateTokenResource"
            },
            "LogSourcesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a line last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "silence_warning_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a warning; null for the platform default."
                    },
                    "silence_critical_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a critical alarm; null for the platform default."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no lines."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "silence_warning_minutes",
                    "silence_critical_minutes",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "created_at",
                    "tags"
                ],
                "title": "LogSourcesUpdateResource"
            },
            "LogSourcesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a line last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "silence_warning_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a warning; null for the platform default."
                    },
                    "silence_critical_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Minutes of silence before a critical alarm; null for the platform default."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no lines."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "silence_warning_minutes",
                    "silence_critical_minutes",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "created_at",
                    "tags"
                ],
                "title": "LogSourcesViewResource"
            },
            "LogsContextResource": {
                "type": "object",
                "properties": {
                    "items": {
                        "type": "array",
                        "description": "The lines, newest first: the newer ones, the line asked for and the older ones.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The line's uuid."
                                },
                                "logged_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the line was logged.",
                                    "x-wt15-instant": true
                                },
                                "time": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The exact time the line is stored at: RFC 3339 UTC with nine fraction digits, so lines inside one millisecond are ordered. Take it with `uuid` to read the line (`GET /v1/logs/{line_uuid}`)."
                                },
                                "console_url": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The console's page of this line (`/logs/<uuid>?at=<time>`); null for a line with no uuid."
                                },
                                "time_source": {
                                    "type": "string",
                                    "description": "Where `logged_at` and `time` come from: `read` (the moment the agent read the line from its file, up to its 15-second collection interval after the event: not the event's time), `parsed` or `late` (the time written in the line's text), `journal` (the journal's event time), `event_log` (the Windows event's own time), `sender` (the time a Log Source's sender gave) or `received` (the backend's receipt time, because the sender gave none that could be used)."
                                },
                                "received_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the backend received the batch the line came in; null for a line stored without it.",
                                    "x-wt15-instant": true
                                },
                                "level": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "One of `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`; null for a line with no level."
                                },
                                "stream": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The stream the line belongs to; null for a line with no stream."
                                },
                                "message": {
                                    "type": "string",
                                    "description": "The line's text."
                                },
                                "source": {
                                    "type": "object",
                                    "description": "Where the line came from.",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "description": "`server` or `log_source`."
                                        },
                                        "uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The source's uuid."
                                        },
                                        "name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The source's name; a deleted source reads as the console labels it."
                                        }
                                    },
                                    "required": [
                                        "type",
                                        "uuid",
                                        "name"
                                    ]
                                },
                                "unit": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The systemd unit that wrote the line (`cloudflared.service`); null for a line that did not come from a journal and for a line from an agent too old to report the unit."
                                },
                                "identifier": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The journal identifier (`SYSLOG_IDENTIFIER`, such as `sshd`); null as `unit` is."
                                },
                                "http": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The access line's parsed fields; null for a line the backend did not parse: only a server file entry with a `format` is.",
                                    "properties": {
                                        "status": {
                                            "type": "integer",
                                            "description": "The HTTP status code."
                                        },
                                        "method": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The request method; null when the request line could not be read."
                                        },
                                        "path": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The request path without its query string; null when the request line could not be read."
                                        },
                                        "upstream_status": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The upstream's status as nginx wrote it (`502, 502` when it tried twice); null when there was none, and for every format but `wt15_relay`."
                                        },
                                        "duration_ms": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "How long the request took, in milliseconds; null for the `nginx_combined` format."
                                        }
                                    },
                                    "required": [
                                        "status",
                                        "method",
                                        "path",
                                        "upstream_status",
                                        "duration_ms"
                                    ]
                                },
                                "is_anchor": {
                                    "type": "boolean",
                                    "description": "True on the line asked for, false on the others."
                                }
                            },
                            "required": [
                                "uuid",
                                "logged_at",
                                "time",
                                "console_url",
                                "time_source",
                                "received_at",
                                "level",
                                "stream",
                                "message",
                                "source",
                                "unit",
                                "identifier",
                                "http",
                                "is_anchor"
                            ]
                        }
                    },
                    "has_newer_more": {
                        "type": "boolean",
                        "description": "True when newer lines exist beyond the ones returned."
                    },
                    "has_older_more": {
                        "type": "boolean",
                        "description": "True when older lines exist beyond the ones returned."
                    }
                },
                "required": [
                    "items",
                    "has_newer_more",
                    "has_older_more"
                ],
                "title": "LogsContextResource"
            },
            "LogsFacetsResource": {
                "type": "object",
                "properties": {
                    "window": {
                        "type": "object",
                        "description": "The time window the lines were counted in; a window that ended in the future ends now.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window: now when the window asked ended in the future.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "levels": {
                        "type": "array",
                        "description": "The levels the matching lines carry, with their line counts.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "level": {
                                    "type": "string",
                                    "description": "The level."
                                },
                                "count": {
                                    "type": "integer",
                                    "description": "The number of matching lines at the level."
                                }
                            },
                            "required": [
                                "level",
                                "count"
                            ]
                        }
                    },
                    "unlevelled_count": {
                        "type": "integer",
                        "description": "The number of matching lines with no level: the lines `levels[]=unknown` selects. `levels` counts only the lines that have one."
                    },
                    "streams": {
                        "type": "array",
                        "description": "The streams of the matching lines, with their line counts; the stream filter is not applied to this list.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "stream": {
                                    "type": "string",
                                    "description": "The stream's name."
                                },
                                "count": {
                                    "type": "integer",
                                    "description": "The number of matching lines in the stream."
                                }
                            },
                            "required": [
                                "stream",
                                "count"
                            ]
                        }
                    }
                },
                "required": [
                    "window",
                    "levels",
                    "unlevelled_count",
                    "streams"
                ],
                "title": "LogsFacetsResource"
            },
            "LogsGroupsResource": {
                "type": "object",
                "properties": {
                    "window": {
                        "type": "object",
                        "description": "The time window the lines were counted in; a window that ended in the future ends now.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window: now when the window asked ended in the future.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "groups": {
                        "type": "array",
                        "description": "The groups, the largest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "value": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The field's value: the stream, level, source uuid, unit, identifier, HTTP status or HTTP path; null for the lines without it."
                                },
                                "count": {
                                    "type": "integer",
                                    "description": "The number of matching lines with this value."
                                }
                            },
                            "required": [
                                "value",
                                "count"
                            ]
                        }
                    }
                },
                "required": [
                    "window",
                    "groups"
                ],
                "title": "LogsGroupsResource"
            },
            "LogsHistogramResource": {
                "type": "object",
                "properties": {
                    "window": {
                        "type": "object",
                        "description": "The time window the lines were counted in; a window that ended in the future ends now.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window: now when the window asked ended in the future.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "step_seconds": {
                        "type": "integer",
                        "description": "The width of a bucket, in whole seconds."
                    },
                    "buckets": {
                        "type": "array",
                        "description": "Only the buckets that hold a line, oldest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "start_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. The bucket's start.",
                                    "x-wt15-instant": true
                                },
                                "total": {
                                    "type": "integer",
                                    "description": "The number of lines in the bucket; the sum of `by_level`."
                                },
                                "by_level": {
                                    "type": "object",
                                    "description": "The bucket's lines counted by level; every key is present, 0 where the bucket has none.",
                                    "properties": {
                                        "debug": {
                                            "type": "integer",
                                            "description": "The number of lines at the `debug` level."
                                        },
                                        "info": {
                                            "type": "integer",
                                            "description": "The number of lines at the `info` level."
                                        },
                                        "notice": {
                                            "type": "integer",
                                            "description": "The number of lines at the `notice` level."
                                        },
                                        "warning": {
                                            "type": "integer",
                                            "description": "The number of lines at the `warning` level."
                                        },
                                        "error": {
                                            "type": "integer",
                                            "description": "The number of lines at the `error` level."
                                        },
                                        "critical": {
                                            "type": "integer",
                                            "description": "The number of lines at the `critical` level."
                                        },
                                        "alert": {
                                            "type": "integer",
                                            "description": "The number of lines at the `alert` level."
                                        },
                                        "emergency": {
                                            "type": "integer",
                                            "description": "The number of lines at the `emergency` level."
                                        },
                                        "unknown": {
                                            "type": "integer",
                                            "description": "The lines with no level, and any level outside the eight."
                                        }
                                    },
                                    "required": [
                                        "debug",
                                        "info",
                                        "notice",
                                        "warning",
                                        "error",
                                        "critical",
                                        "alert",
                                        "emergency",
                                        "unknown"
                                    ]
                                }
                            },
                            "required": [
                                "start_at",
                                "total",
                                "by_level"
                            ]
                        }
                    }
                },
                "required": [
                    "window",
                    "step_seconds",
                    "buckets"
                ],
                "title": "LogsHistogramResource"
            },
            "LogsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The line's uuid."
                    },
                    "logged_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the line was logged.",
                        "x-wt15-instant": true
                    },
                    "time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The exact time the line is stored at: RFC 3339 UTC with nine fraction digits, so lines inside one millisecond are ordered. Take it with `uuid` to read the line (`GET /v1/logs/{line_uuid}`)."
                    },
                    "console_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The console's page of this line (`/logs/<uuid>?at=<time>`); null for a line with no uuid."
                    },
                    "time_source": {
                        "type": "string",
                        "description": "Where `logged_at` and `time` come from: `read` (the moment the agent read the line from its file, up to its 15-second collection interval after the event: not the event's time), `parsed` or `late` (the time written in the line's text), `journal` (the journal's event time), `event_log` (the Windows event's own time), `sender` (the time a Log Source's sender gave) or `received` (the backend's receipt time, because the sender gave none that could be used)."
                    },
                    "received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the backend received the batch the line came in; null for a line stored without it.",
                        "x-wt15-instant": true
                    },
                    "level": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`; null for a line with no level."
                    },
                    "stream": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The stream the line belongs to; null for a line with no stream."
                    },
                    "message": {
                        "type": "string",
                        "description": "The line's text."
                    },
                    "source": {
                        "type": "object",
                        "description": "Where the line came from.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`server` or `log_source`."
                            },
                            "uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The source's uuid."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The source's name; a deleted source reads as the console labels it."
                            }
                        },
                        "required": [
                            "type",
                            "uuid",
                            "name"
                        ]
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The systemd unit that wrote the line (`cloudflared.service`); null for a line that did not come from a journal and for a line from an agent too old to report the unit."
                    },
                    "identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The journal identifier (`SYSLOG_IDENTIFIER`, such as `sshd`); null as `unit` is."
                    },
                    "http": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The access line's parsed fields; null for a line the backend did not parse: only a server file entry with a `format` is.",
                        "properties": {
                            "status": {
                                "type": "integer",
                                "description": "The HTTP status code."
                            },
                            "method": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The request method; null when the request line could not be read."
                            },
                            "path": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The request path without its query string; null when the request line could not be read."
                            },
                            "upstream_status": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The upstream's status as nginx wrote it (`502, 502` when it tried twice); null when there was none, and for every format but `wt15_relay`."
                            },
                            "duration_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How long the request took, in milliseconds; null for the `nginx_combined` format."
                            }
                        },
                        "required": [
                            "status",
                            "method",
                            "path",
                            "upstream_status",
                            "duration_ms"
                        ]
                    },
                    "raw_line": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The text a Log Source's sender submitted for this line, before the backend read it; null for a server line, which never carries it."
                    }
                },
                "required": [
                    "uuid",
                    "logged_at",
                    "time",
                    "console_url",
                    "time_source",
                    "received_at",
                    "level",
                    "stream",
                    "message",
                    "source",
                    "unit",
                    "identifier",
                    "http",
                    "raw_line"
                ],
                "title": "LogsViewResource"
            },
            "MeViewResource": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "object",
                        "description": "The API key that made the request.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The API key's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The API key's name."
                            },
                            "last_four": {
                                "type": "string",
                                "description": "Four characters of the key kept to tell keys apart: the four before its six-character checksum, not its last four. `redacted_key` is the form to show."
                            },
                            "redacted_key": {
                                "type": "string",
                                "description": "The key as the console shows it: the prefix and the key's last four characters (`wt15ak_…Qz3x`), or, for an older key whose last characters were never kept, the four kept characters followed by six dots for the hidden checksum (`wt15ak_…a1b2••••••`)."
                            },
                            "scopes": {
                                "type": "array",
                                "description": "The permission names the key holds, as it was issued.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "effective_scopes": {
                                "type": "array",
                                "description": "The key's scopes its owner's permissions allow now (a person's role, or a service account's roles): what a call can use.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "created_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the key was created.",
                                "x-wt15-instant": true
                            },
                            "expires_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the key expires; it is refused after that instant.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "last_four",
                            "redacted_key",
                            "scopes",
                            "effective_scopes",
                            "created_at",
                            "expires_at"
                        ]
                    },
                    "user": {
                        "type": "object",
                        "description": "The user the key belongs to.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The key owner's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The key owner's display name."
                            },
                            "email": {
                                "type": "string",
                                "description": "The key owner's email address."
                            },
                            "account_type": {
                                "type": "string",
                                "description": "A person, or a service account that owns keys for automation.",
                                "enum": [
                                    "person",
                                    "service_account"
                                ],
                                "x-wt15-open-enum": true
                            },
                            "roles": {
                                "type": [
                                    "array",
                                    "null"
                                ],
                                "description": "A service account's roles, which set what its keys may use; null for a person.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The role's uuid."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The role's name."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "email",
                            "account_type",
                            "roles"
                        ]
                    },
                    "organisation": {
                        "type": "object",
                        "description": "The organisation the key acts in.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The organisation's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The organisation's name."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    }
                },
                "required": [
                    "key",
                    "user",
                    "organisation"
                ],
                "title": "MeViewResource"
            },
            "MetricSourcesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no pushes."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "custom_metrics_count": {
                        "type": "integer",
                        "description": "How many metrics the source owns."
                    },
                    "max_requests_per_minute": {
                        "type": "integer",
                        "description": "The request limit in force: the source's own, else the organisation's."
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the source's metrics are linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "shown_on_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are shown on."
                    },
                    "shown_on_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The first servers they are shown on; null without `servers.view`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "shown_metrics_count": {
                        "type": "integer",
                        "description": "How many of the source's metrics are shown (approved and switched on)."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "custom_metrics_count",
                    "max_requests_per_minute",
                    "created_at",
                    "tags",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "shown_on_servers_count",
                    "shown_on_servers",
                    "shown_metrics_count"
                ],
                "title": "MetricSourcesCreateResource"
            },
            "MetricSourcesPreviewTagChangesResource": {
                "type": "object",
                "properties": {
                    "metrics_count": {
                        "type": "integer",
                        "description": "How many metrics the source owns."
                    },
                    "metrics_changing": {
                        "type": "integer",
                        "description": "How many of the source's metrics would change tags."
                    },
                    "added": {
                        "type": "array",
                        "description": "The tags the change adds to the source, ordered by group then name, each with how many metrics it changes.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The added tag's uuid; null when the tag no longer exists."
                                },
                                "name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The added tag's name; null when the tag no longer exists."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the added tag's group; null for a tag in no group."
                                },
                                "metrics_gaining": {
                                    "type": "integer",
                                    "description": "How many of the source's metrics would gain the tag."
                                },
                                "metrics_already": {
                                    "type": "integer",
                                    "description": "How many of the source's metrics already carry the tag."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group",
                                "metrics_gaining",
                                "metrics_already"
                            ]
                        }
                    },
                    "removed": {
                        "type": "array",
                        "description": "The tags the change removes from the source, ordered by group then name, each with how many metrics it changes.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The removed tag's uuid; null when the tag no longer exists."
                                },
                                "name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The removed tag's name; null when the tag no longer exists."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the removed tag's group; null for a tag in no group."
                                },
                                "metrics_losing": {
                                    "type": "integer",
                                    "description": "How many of the source's metrics would lose the tag."
                                },
                                "metrics_without": {
                                    "type": "integer",
                                    "description": "How many of the source's metrics do not carry the tag."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group",
                                "metrics_losing",
                                "metrics_without"
                            ]
                        }
                    },
                    "metrics": {
                        "type": "array",
                        "description": "The first metrics the change would alter, with the tags each would gain and lose.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The metric's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The metric's name."
                                },
                                "metric_key": {
                                    "type": "string",
                                    "description": "The key a publisher sends the metric under."
                                },
                                "adds": {
                                    "type": "array",
                                    "description": "The tags the metric would gain, each named \"Group: name\" and sorted.",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "removes": {
                                    "type": "array",
                                    "description": "The tags the metric would lose, each named \"Group: name\" and sorted.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "metric_key",
                                "adds",
                                "removes"
                            ]
                        }
                    }
                },
                "required": [
                    "metrics_count",
                    "metrics_changing",
                    "added",
                    "removed",
                    "metrics"
                ],
                "title": "MetricSourcesPreviewTagChangesResource"
            },
            "MetricSourcesRevokeTokenResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no pushes."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "custom_metrics_count": {
                        "type": "integer",
                        "description": "How many metrics the source owns."
                    },
                    "max_requests_per_minute": {
                        "type": "integer",
                        "description": "The request limit in force: the source's own, else the organisation's."
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the source's metrics are linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "shown_on_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are shown on."
                    },
                    "shown_on_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The first servers they are shown on; null without `servers.view`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "shown_metrics_count": {
                        "type": "integer",
                        "description": "How many of the source's metrics are shown (approved and switched on)."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "custom_metrics_count",
                    "max_requests_per_minute",
                    "created_at",
                    "tags",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "shown_on_servers_count",
                    "shown_on_servers",
                    "shown_metrics_count"
                ],
                "title": "MetricSourcesRevokeTokenResource"
            },
            "MetricSourcesRotateTokenResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The uuid of the metric source."
                    },
                    "ingest_token": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The ingest token, shown once; null on a replay of the first answer."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; null on a replay of the first answer."
                    }
                },
                "required": [
                    "uuid",
                    "ingest_token",
                    "ingest_token_last_four"
                ],
                "title": "MetricSourcesRotateTokenResource"
            },
            "MetricSourcesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no pushes."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "custom_metrics_count": {
                        "type": "integer",
                        "description": "How many metrics the source owns."
                    },
                    "max_requests_per_minute": {
                        "type": "integer",
                        "description": "The request limit in force: the source's own, else the organisation's."
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the source's metrics are linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "shown_on_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are shown on."
                    },
                    "shown_on_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The first servers they are shown on; null without `servers.view`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "shown_metrics_count": {
                        "type": "integer",
                        "description": "How many of the source's metrics are shown (approved and switched on)."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "custom_metrics_count",
                    "max_requests_per_minute",
                    "created_at",
                    "tags",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "shown_on_servers_count",
                    "shown_on_servers",
                    "shown_metrics_count"
                ],
                "title": "MetricSourcesUpdateResource"
            },
            "MetricSourcesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The source's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The source's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "The source's slug, its identifier within the organisation."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The source's description; null for none."
                    },
                    "source_type": {
                        "type": "string",
                        "description": "The source's type: `custom_source`; an open set."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "last_received_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a point last arrived; null if none ever did.",
                        "x-wt15-instant": true
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the source is switched on."
                    },
                    "has_ingest_token": {
                        "type": "boolean",
                        "description": "Whether a usable ingest token exists: a source created and not yet given one, or whose token was revoked, accepts no pushes."
                    },
                    "ingest_token_last_four": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The last four characters of the token; never the token."
                    },
                    "ingest_token_created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was minted; null if none was.",
                        "x-wt15-instant": true
                    },
                    "ingest_token_revoked_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the ingest token was revoked; null otherwise.",
                        "x-wt15-instant": true
                    },
                    "custom_metrics_count": {
                        "type": "integer",
                        "description": "How many metrics the source owns."
                    },
                    "max_requests_per_minute": {
                        "type": "integer",
                        "description": "The request limit in force: the source's own, else the organisation's."
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the source was created.",
                        "x-wt15-instant": true
                    },
                    "tags": {
                        "type": "array",
                        "description": "The source's own tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The servers the source's metrics are linked to directly; null without `servers.view`, the count kept.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "linked_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are linked to directly; given even when `linked_servers` is null."
                    },
                    "linked_server_all_tags": {
                        "type": "array",
                        "description": "Servers must carry ALL of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "linked_server_any_tags": {
                        "type": "array",
                        "description": "Servers must carry ANY of these tags.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                },
                                "group": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The name of the tag's group; null for a tag in no group."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "shown_on_servers_count": {
                        "type": "integer",
                        "description": "How many servers the source's metrics are shown on."
                    },
                    "shown_on_servers": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "The first servers they are shown on; null without `servers.view`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The server's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The server's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "shown_metrics_count": {
                        "type": "integer",
                        "description": "How many of the source's metrics are shown (approved and switched on)."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "source_type",
                    "health_status",
                    "last_received_at",
                    "active",
                    "has_ingest_token",
                    "ingest_token_last_four",
                    "ingest_token_created_at",
                    "ingest_token_revoked_at",
                    "custom_metrics_count",
                    "max_requests_per_minute",
                    "created_at",
                    "tags",
                    "linked_servers",
                    "linked_servers_count",
                    "linked_server_all_tags",
                    "linked_server_any_tags",
                    "shown_on_servers_count",
                    "shown_on_servers",
                    "shown_metrics_count"
                ],
                "title": "MetricSourcesViewResource"
            },
            "OrganisationLimitResource": {
                "type": "object",
                "properties": {
                    "limit": {
                        "description": "The limit; null means unlimited.",
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "used": {
                        "description": "What is used of it now.",
                        "type": "number"
                    }
                },
                "required": [
                    "limit",
                    "used"
                ],
                "title": "OrganisationLimitResource"
            },
            "OrganisationViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The organisation's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The organisation's name."
                    },
                    "account_type": {
                        "type": "string",
                        "description": "How the organisation is billed: `courtesy_trial` for an active trial, `courtesy` when WatchTower15 covers its usage, `standard` when it is billed. An open list: values may be added, never removed.",
                        "enum": [
                            "courtesy_trial",
                            "courtesy",
                            "standard"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "data_region": {
                        "type": "string",
                        "description": "The data residency region the organisation chose at registration: `uk` is UK, `eu` is EU, `us` is USA, `latam` is Latam and `sea` is SE-Asia. Set when the organisation was created; it cannot be changed. An open list: values may be added, never removed.",
                        "enum": [
                            "uk",
                            "eu",
                            "us",
                            "latam",
                            "sea"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "courtesy_until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a courtesy or trial ends, null when it has no end date or the organisation is billed.",
                        "x-wt15-instant": true
                    },
                    "billing": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The billing details, `null` unless the key holds `billing.view` (and, for a member's key, the member still holds it): the key is always there.",
                        "properties": {
                            "currency": {
                                "type": "string",
                                "description": "The currency the organisation is billed in, an ISO 4217 code."
                            },
                            "emails": {
                                "type": "array",
                                "description": "Every address that receives the organisation's billing email, the primary first.",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "currency",
                            "emails"
                        ]
                    },
                    "limits": {
                        "type": "object",
                        "description": "The organisation's limits and what is used.",
                        "properties": {
                            "resources": {
                                "type": "object",
                                "description": "Each limit by name, `{limit, used}`, a `limit` of null meaning unlimited: `servers`, `domains`, `services`, `log_sources`, `database_instances`, `users`,\n`reports`, `custom_metrics` and `log_gb_per_period` (GB, with decimals). An open map: keys may be added, never removed.",
                                "additionalProperties": {
                                    "$ref": "#/components/schemas/OrganisationLimitResource"
                                }
                            },
                            "api": {
                                "type": "object",
                                "description": "The calls the API and AI clients may make.",
                                "properties": {
                                    "per_key_per_minute": {
                                        "type": "integer",
                                        "description": "The calls one key may make in a minute."
                                    },
                                    "per_organisation_per_minute": {
                                        "type": "integer",
                                        "description": "The calls the organisation's keys may make in a minute, all together."
                                    },
                                    "per_day": {
                                        "type": "object",
                                        "description": "Today's calls (UTC day) against the daily limit, API and AI-client calls together.",
                                        "properties": {
                                            "limit": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "description": "The calls the organisation may make in a UTC day; null when it has no limit."
                                            },
                                            "used": {
                                                "type": "integer",
                                                "description": "The calls made today. The limit can be reached a little before this says so."
                                            },
                                            "resets_at": {
                                                "type": "integer",
                                                "description": "Epoch milliseconds. When the count starts again: the next 00:00 UTC.",
                                                "x-wt15-instant": true
                                            }
                                        },
                                        "required": [
                                            "limit",
                                            "used",
                                            "resets_at"
                                        ]
                                    }
                                },
                                "required": [
                                    "per_key_per_minute",
                                    "per_organisation_per_minute",
                                    "per_day"
                                ]
                            }
                        },
                        "required": [
                            "resources",
                            "api"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "account_type",
                    "data_region",
                    "courtesy_until",
                    "billing",
                    "limits"
                ],
                "title": "OrganisationViewResource"
            },
            "Problem": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "format": "uri",
                        "description": "A link to the page describing this problem: `https://docs.watchtower15.com/api/errors/<code>/`."
                    },
                    "title": {
                        "type": "string",
                        "description": "A short, human-readable name of the problem."
                    },
                    "status": {
                        "type": "integer",
                        "description": "The HTTP status of the answer."
                    },
                    "code": {
                        "type": "string",
                        "description": "The stable, machine-readable code of the problem; branch on this, never on `title` or `detail`."
                    },
                    "detail": {
                        "type": "string",
                        "description": "What went wrong, in a sentence."
                    },
                    "request_id": {
                        "type": "string",
                        "description": "The request's id; quote it when asking for support."
                    },
                    "errors": {
                        "type": "object",
                        "description": "On a `422`: the parameters at fault, each with its messages.",
                        "additionalProperties": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    },
                    "accepted_parameters": {
                        "type": "array",
                        "description": "No longer sent: an operation ignores a query parameter it does not take, so `unknown_parameter`, which carried this list, is retired.",
                        "deprecated": true,
                        "items": {
                            "type": "string"
                        }
                    },
                    "limit": {
                        "type": "integer",
                        "description": "On a limit problem: the limit that was reached."
                    },
                    "used": {
                        "type": "integer",
                        "description": "On a limit problem: how much of the limit is used."
                    }
                },
                "required": [
                    "type",
                    "title",
                    "status",
                    "code",
                    "detail",
                    "request_id"
                ],
                "title": "Problem"
            },
            "ScansViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The scan's uuid."
                    },
                    "scan_type": {
                        "type": "string",
                        "description": "One of `dns`, `expiry`, `information`, `ssl`."
                    },
                    "domain_uuid": {
                        "type": "string",
                        "description": "The uuid of the domain that was scanned."
                    },
                    "status": {
                        "type": "string",
                        "description": "`queued`, `running`, `completed`, `failed` or `timeout`: an open set."
                    },
                    "outcome": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "What a finished scan found, for example `data_found` or `no_data`; null until it ends. An open set."
                    },
                    "queued_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan was queued.",
                        "x-wt15-instant": true
                    },
                    "started_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan started running; null until it has.",
                        "x-wt15-instant": true
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the scan ended; null until it has.",
                        "x-wt15-instant": true
                    },
                    "execution_time_ms": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How long the scan took, in milliseconds; null until it has ended."
                    },
                    "error_message": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why a scan failed, as the console shows it; null otherwise."
                    }
                },
                "required": [
                    "uuid",
                    "scan_type",
                    "domain_uuid",
                    "status",
                    "outcome",
                    "queued_at",
                    "started_at",
                    "completed_at",
                    "execution_time_ms",
                    "error_message"
                ],
                "title": "ScansViewResource"
            },
            "ServerProfilesAlarmSnoozeSetResource": {
                "type": "object",
                "properties": {
                    "until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                        "x-wt15-instant": true
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reason given when it was set; null when none was."
                    },
                    "set_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it was last set.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "until",
                    "reason",
                    "set_at"
                ],
                "title": "ServerProfilesAlarmSnoozeSetResource"
            },
            "ServerProfilesCreateAlarmTemplateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The template's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The template's own name, else its rule's."
                    },
                    "rule_slug": {
                        "type": "string",
                        "description": "The catalogue rule's slug."
                    },
                    "classification": {
                        "type": "string",
                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`."
                    },
                    "metric_name": {
                        "type": "string",
                        "description": "The catalogue rule's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The catalogue rule's description; null when it has none."
                    },
                    "alarm_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit of the thresholds; null when the rule has none."
                    },
                    "comparison_operator": {
                        "type": "string",
                        "description": "How a reading is compared with the thresholds: the template's own operator, else the rule's default."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the readings in a window are combined before the comparison; null when the template sets none."
                    },
                    "warning_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The template's own value, else the rule's default."
                    },
                    "critical_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The template's own value, else the rule's default."
                    },
                    "warning_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the warning threshold is judged over; null when the template has none."
                    },
                    "critical_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the critical threshold is judged over; null when the template has none."
                    },
                    "warning_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a warning: the template's own count, else the rule's default."
                    },
                    "critical_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a critical: the template's own count, else the rule's default."
                    },
                    "self_resolving": {
                        "type": "boolean",
                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the template's alarms are switched on."
                    },
                    "notify_on_acknowledge": {
                        "type": "boolean",
                        "description": "Whether acknowledging an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                    },
                    "notify_on_resolve": {
                        "type": "boolean",
                        "description": "Whether resolving an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                    },
                    "alarm_policies": {
                        "type": "array",
                        "description": "The policies the template's alarms notify. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The policy's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                }
                            },
                            "required": [
                                "uuid"
                            ]
                        }
                    },
                    "inherited_count": {
                        "type": "integer",
                        "description": "How many servers' alarms still follow this template: a propagation with `apply_to_all` changes them."
                    },
                    "overridden_count": {
                        "type": "integer",
                        "description": "How many servers' alarms were edited by hand and no longer follow this template: a propagation leaves them alone."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "rule_slug",
                    "classification",
                    "metric_name",
                    "description",
                    "alarm_type",
                    "unit",
                    "comparison_operator",
                    "aggregation",
                    "warning_threshold",
                    "critical_threshold",
                    "warning_window_minutes",
                    "critical_window_minutes",
                    "warning_consecutive_failures_count",
                    "critical_consecutive_failures_count",
                    "self_resolving",
                    "active",
                    "notify_on_acknowledge",
                    "notify_on_resolve",
                    "alarm_policies",
                    "inherited_count",
                    "overridden_count"
                ],
                "title": "ServerProfilesCreateAlarmTemplateResource"
            },
            "ServerProfilesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The profile's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The profile's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "Fixed at creation: the value of an install command's `--profile=`."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The profile's description; null when it has none."
                    },
                    "profile_type": {
                        "type": "string",
                        "description": "The profile's type: `default` for the organisation's default profile, otherwise `custom`."
                    },
                    "os": {
                        "type": "string",
                        "description": "The profile's operating system, fixed at creation: one of `linux`, `windows`."
                    },
                    "logging_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no logs."
                    },
                    "telemetry_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no telemetry."
                    },
                    "telemetry_capture_all": {
                        "type": "boolean",
                        "description": "Whether every telemetry option is collected."
                    },
                    "servers_count": {
                        "type": "integer",
                        "description": "How many servers use the profile."
                    },
                    "telemetry_options": {
                        "type": "array",
                        "description": "The telemetry options collected when `telemetry_capture_all` is false: any of `cpu`, `memory`, `swap`, `disk`, `disk_io`, `network`, `load`, `processes` and `systemd`.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "log_files": {
                        "type": "array",
                        "description": "The log files the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log file entry's uuid."
                                },
                                "source_type": {
                                    "type": "string",
                                    "description": "What is collected: `file` for a log file, `journald` for the systemd journal, `windows_event_log` for a Windows Event Log channel."
                                },
                                "path": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The path of the log file, which may be a pattern; null for `journald`."
                                },
                                "format": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "How the backend parses the file's lines at ingest into status, method, path and duration: `nginx_combined`, `wt15_timed` or `wt15_relay`; null when it is not parsed."
                                },
                                "channel": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the Event Log channel; null for the other types."
                                },
                                "min_level": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`; null for the other types."
                                },
                                "event_ids": {
                                    "type": "array",
                                    "description": "For a `windows_event_log` entry, the event ids collected, empty for every event at or above `min_level`; empty for the other types.",
                                    "items": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "source_type",
                                "path",
                                "format",
                                "channel",
                                "min_level",
                                "event_ids"
                            ]
                        }
                    },
                    "log_folders": {
                        "type": "array",
                        "description": "The log folders the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log folder entry's uuid."
                                },
                                "path": {
                                    "type": "string",
                                    "description": "The absolute path of the folder, read literally."
                                },
                                "match_mode": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`; null when not set."
                                },
                                "pattern": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The regular expression for `regex` mode; null otherwise."
                                },
                                "extensions": {
                                    "type": "array",
                                    "description": "The file extensions that apply to the folder's files; may be empty.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "path",
                                "match_mode",
                                "pattern",
                                "extensions"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the profile gives its servers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The profile's own alarm snooze, which holds the alarm notifications of every server using the profile; null when none is live. See `PUT /v1/server-profiles/{server_profile_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "server_led_tagging": {
                        "type": "boolean",
                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                    },
                    "server_led_tag_filter_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `include`, `exclude`; null when server-led tagging is off."
                    },
                    "server_led_tag_groups": {
                        "type": "array",
                        "description": "The tag groups of the filter.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag group's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag group's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "profile_type",
                    "os",
                    "logging_disabled",
                    "telemetry_disabled",
                    "telemetry_capture_all",
                    "servers_count",
                    "telemetry_options",
                    "log_files",
                    "log_folders",
                    "tags",
                    "alarm_snooze",
                    "server_led_tagging",
                    "server_led_tag_filter_mode",
                    "server_led_tag_groups"
                ],
                "title": "ServerProfilesCreateResource"
            },
            "ServerProfilesDuplicateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The profile's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The profile's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "Fixed at creation: the value of an install command's `--profile=`."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The profile's description; null when it has none."
                    },
                    "profile_type": {
                        "type": "string",
                        "description": "The profile's type: `default` for the organisation's default profile, otherwise `custom`."
                    },
                    "os": {
                        "type": "string",
                        "description": "The profile's operating system, fixed at creation: one of `linux`, `windows`."
                    },
                    "logging_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no logs."
                    },
                    "telemetry_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no telemetry."
                    },
                    "telemetry_capture_all": {
                        "type": "boolean",
                        "description": "Whether every telemetry option is collected."
                    },
                    "servers_count": {
                        "type": "integer",
                        "description": "How many servers use the profile."
                    },
                    "telemetry_options": {
                        "type": "array",
                        "description": "The telemetry options collected when `telemetry_capture_all` is false: any of `cpu`, `memory`, `swap`, `disk`, `disk_io`, `network`, `load`, `processes` and `systemd`.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "log_files": {
                        "type": "array",
                        "description": "The log files the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log file entry's uuid."
                                },
                                "source_type": {
                                    "type": "string",
                                    "description": "What is collected: `file` for a log file, `journald` for the systemd journal, `windows_event_log` for a Windows Event Log channel."
                                },
                                "path": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The path of the log file, which may be a pattern; null for `journald`."
                                },
                                "format": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "How the backend parses the file's lines at ingest into status, method, path and duration: `nginx_combined`, `wt15_timed` or `wt15_relay`; null when it is not parsed."
                                },
                                "channel": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the Event Log channel; null for the other types."
                                },
                                "min_level": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`; null for the other types."
                                },
                                "event_ids": {
                                    "type": "array",
                                    "description": "For a `windows_event_log` entry, the event ids collected, empty for every event at or above `min_level`; empty for the other types.",
                                    "items": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "source_type",
                                "path",
                                "format",
                                "channel",
                                "min_level",
                                "event_ids"
                            ]
                        }
                    },
                    "log_folders": {
                        "type": "array",
                        "description": "The log folders the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log folder entry's uuid."
                                },
                                "path": {
                                    "type": "string",
                                    "description": "The absolute path of the folder, read literally."
                                },
                                "match_mode": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`; null when not set."
                                },
                                "pattern": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The regular expression for `regex` mode; null otherwise."
                                },
                                "extensions": {
                                    "type": "array",
                                    "description": "The file extensions that apply to the folder's files; may be empty.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "path",
                                "match_mode",
                                "pattern",
                                "extensions"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the profile gives its servers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The profile's own alarm snooze, which holds the alarm notifications of every server using the profile; null when none is live. See `PUT /v1/server-profiles/{server_profile_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "server_led_tagging": {
                        "type": "boolean",
                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                    },
                    "server_led_tag_filter_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `include`, `exclude`; null when server-led tagging is off."
                    },
                    "server_led_tag_groups": {
                        "type": "array",
                        "description": "The tag groups of the filter.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag group's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag group's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "profile_type",
                    "os",
                    "logging_disabled",
                    "telemetry_disabled",
                    "telemetry_capture_all",
                    "servers_count",
                    "telemetry_options",
                    "log_files",
                    "log_folders",
                    "tags",
                    "alarm_snooze",
                    "server_led_tagging",
                    "server_led_tag_filter_mode",
                    "server_led_tag_groups"
                ],
                "title": "ServerProfilesDuplicateResource"
            },
            "ServerProfilesIndicatorPoliciesResource": {
                "type": "object",
                "additionalProperties": {},
                "title": "ServerProfilesIndicatorPoliciesResource"
            },
            "ServerProfilesPreviewAlarmTemplatePropagationResource": {
                "type": "object",
                "properties": {
                    "resource_count": {
                        "type": "integer",
                        "description": "How many servers are on the profile."
                    },
                    "template_count": {
                        "type": "integer",
                        "description": "How many alarm templates the profile holds."
                    },
                    "changes": {
                        "type": "array",
                        "description": "What a propagation would add or change, one row per template.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "operation": {
                                    "type": "string",
                                    "description": "`add` when the template would only add alarms, `change` when it would also change some."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The template's name."
                                },
                                "rule_slug": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The template's catalogue rule slug."
                                },
                                "servers_added": {
                                    "type": "integer",
                                    "description": "How many servers would get a new alarm."
                                },
                                "servers_updated": {
                                    "type": "integer",
                                    "description": "How many servers' alarms would change; only a propagation with `apply_to_all: true` does it."
                                },
                                "servers_kept_overridden": {
                                    "type": "integer",
                                    "description": "How many servers keep their alarm because it was edited by hand."
                                },
                                "servers_kept_detached": {
                                    "type": "integer",
                                    "description": "How many servers keep no alarm of this rule because it was deleted on that server."
                                }
                            },
                            "required": [
                                "operation",
                                "name",
                                "rule_slug",
                                "servers_added",
                                "servers_updated",
                                "servers_kept_overridden",
                                "servers_kept_detached"
                            ]
                        }
                    },
                    "removals": {
                        "type": "array",
                        "description": "What a propagation with `apply_to_all: true` would remove: alarms whose template is gone, one row per alarm name.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "operation": {
                                    "type": "string",
                                    "description": "Always `remove`."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The alarm's name."
                                },
                                "rule_slug": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The alarm's catalogue rule slug."
                                },
                                "servers_removed": {
                                    "type": "integer",
                                    "description": "How many servers' alarms would be removed."
                                },
                                "servers_kept_overridden": {
                                    "type": "integer",
                                    "description": "How many servers keep their alarm because it was edited by hand."
                                },
                                "open_incidents_resolved": {
                                    "type": "integer",
                                    "description": "How many open incidents the removal would resolve."
                                }
                            },
                            "required": [
                                "operation",
                                "name",
                                "rule_slug",
                                "servers_removed",
                                "servers_kept_overridden",
                                "open_incidents_resolved"
                            ]
                        }
                    }
                },
                "required": [
                    "resource_count",
                    "template_count",
                    "changes",
                    "removals"
                ],
                "title": "ServerProfilesPreviewAlarmTemplatePropagationResource"
            },
            "ServerProfilesPropagateAlarmTemplatesResource": {
                "type": "object",
                "properties": {
                    "resource_count": {
                        "type": "integer",
                        "description": "How many servers are on the profile."
                    },
                    "apply_to_all": {
                        "type": "boolean",
                        "description": "Whether the propagation also updated and removed alarms (`apply_to_all` was true)."
                    },
                    "added": {
                        "type": "integer",
                        "description": "How many alarms were added."
                    },
                    "updated": {
                        "type": "integer",
                        "description": "How many alarms were changed to the template's values."
                    },
                    "removed": {
                        "type": "integer",
                        "description": "How many alarms were removed because their template is gone."
                    },
                    "kept_overridden": {
                        "type": "integer",
                        "description": "How many alarms were left as they are because they were edited by hand."
                    },
                    "kept_detached": {
                        "type": "integer",
                        "description": "How many alarms were left deleted because they were deleted on that server."
                    }
                },
                "required": [
                    "resource_count",
                    "apply_to_all",
                    "added",
                    "updated",
                    "removed",
                    "kept_overridden",
                    "kept_detached"
                ],
                "title": "ServerProfilesPropagateAlarmTemplatesResource"
            },
            "ServerProfilesUpdateAlarmTemplateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The template's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The template's own name, else its rule's."
                    },
                    "rule_slug": {
                        "type": "string",
                        "description": "The catalogue rule's slug."
                    },
                    "classification": {
                        "type": "string",
                        "description": "The catalogue rule's classification: one of `operations`, `security`, `monitoring`."
                    },
                    "metric_name": {
                        "type": "string",
                        "description": "The catalogue rule's name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The catalogue rule's description; null when it has none."
                    },
                    "alarm_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`boolean` or `threshold`, as the catalogue rule says."
                    },
                    "unit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The unit of the thresholds; null when the rule has none."
                    },
                    "comparison_operator": {
                        "type": "string",
                        "description": "How a reading is compared with the thresholds: the template's own operator, else the rule's default."
                    },
                    "aggregation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "How the readings in a window are combined before the comparison; null when the template sets none."
                    },
                    "warning_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The template's own value, else the rule's default."
                    },
                    "critical_threshold": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The template's own value, else the rule's default."
                    },
                    "warning_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the warning threshold is judged over; null when the template has none."
                    },
                    "critical_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The window, in minutes, the critical threshold is judged over; null when the template has none."
                    },
                    "warning_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a warning: the template's own count, else the rule's default."
                    },
                    "critical_consecutive_failures_count": {
                        "type": "integer",
                        "description": "Consecutive evaluations before a critical: the template's own count, else the rule's default."
                    },
                    "self_resolving": {
                        "type": "boolean",
                        "description": "Whether the alarm clears itself when the condition ends (it sends no resolve notification)."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether the template's alarms are switched on."
                    },
                    "notify_on_acknowledge": {
                        "type": "boolean",
                        "description": "Whether acknowledging an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                    },
                    "notify_on_resolve": {
                        "type": "boolean",
                        "description": "Whether resolving an incident of the template's alarms notifies: the template's own flag, else the catalogue's."
                    },
                    "alarm_policies": {
                        "type": "array",
                        "description": "The policies the template's alarms notify. A caller holding `policies.view` (the key's scope and the user's permission) gets each policy's `name`; without it, the uuid alone.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The policy's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The policy's name; present only for a caller holding `policies.view`."
                                }
                            },
                            "required": [
                                "uuid"
                            ]
                        }
                    },
                    "inherited_count": {
                        "type": "integer",
                        "description": "How many servers' alarms still follow this template: a propagation with `apply_to_all` changes them."
                    },
                    "overridden_count": {
                        "type": "integer",
                        "description": "How many servers' alarms were edited by hand and no longer follow this template: a propagation leaves them alone."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "rule_slug",
                    "classification",
                    "metric_name",
                    "description",
                    "alarm_type",
                    "unit",
                    "comparison_operator",
                    "aggregation",
                    "warning_threshold",
                    "critical_threshold",
                    "warning_window_minutes",
                    "critical_window_minutes",
                    "warning_consecutive_failures_count",
                    "critical_consecutive_failures_count",
                    "self_resolving",
                    "active",
                    "notify_on_acknowledge",
                    "notify_on_resolve",
                    "alarm_policies",
                    "inherited_count",
                    "overridden_count"
                ],
                "title": "ServerProfilesUpdateAlarmTemplateResource"
            },
            "ServerProfilesUpdateIndicatorPolicyResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the policy."
                    },
                    "indicator": {
                        "type": "string",
                        "description": "The rule: `exe_world_writable` or `tmp_executable`."
                    },
                    "scope": {
                        "type": "string",
                        "description": "Whether the policy is the `profile`'s or the `server`'s."
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`on` or `off`; null on a server policy that inherits its profile's."
                    },
                    "severity": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`critical`, `warning` or `info`; null leaves the rule's own."
                    },
                    "known_folders": {
                        "type": "array",
                        "description": "The known execution folders.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "reason": {
                        "type": "string",
                        "description": "Why the policy is in force."
                    },
                    "review_on": {
                        "type": "string",
                        "description": "The day the policy is looked at again, `YYYY-MM-DD`."
                    },
                    "review_due": {
                        "type": "boolean",
                        "description": "Whether that day has passed; the policy stays in force."
                    },
                    "updated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the policy was last written.",
                        "x-wt15-instant": true
                    },
                    "updated_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who wrote it last: a `user` or an `api_key`, by name.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "Whether a `user` or an `api_key` wrote the policy last."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of that person or key."
                            }
                        },
                        "required": [
                            "type",
                            "name"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "indicator",
                    "scope",
                    "state",
                    "severity",
                    "known_folders",
                    "reason",
                    "review_on",
                    "review_due",
                    "updated_at",
                    "updated_by"
                ],
                "title": "ServerProfilesUpdateIndicatorPolicyResource"
            },
            "ServerProfilesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The profile's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The profile's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "Fixed at creation: the value of an install command's `--profile=`."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The profile's description; null when it has none."
                    },
                    "profile_type": {
                        "type": "string",
                        "description": "The profile's type: `default` for the organisation's default profile, otherwise `custom`."
                    },
                    "os": {
                        "type": "string",
                        "description": "The profile's operating system, fixed at creation: one of `linux`, `windows`."
                    },
                    "logging_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no logs."
                    },
                    "telemetry_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no telemetry."
                    },
                    "telemetry_capture_all": {
                        "type": "boolean",
                        "description": "Whether every telemetry option is collected."
                    },
                    "servers_count": {
                        "type": "integer",
                        "description": "How many servers use the profile."
                    },
                    "telemetry_options": {
                        "type": "array",
                        "description": "The telemetry options collected when `telemetry_capture_all` is false: any of `cpu`, `memory`, `swap`, `disk`, `disk_io`, `network`, `load`, `processes` and `systemd`.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "log_files": {
                        "type": "array",
                        "description": "The log files the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log file entry's uuid."
                                },
                                "source_type": {
                                    "type": "string",
                                    "description": "What is collected: `file` for a log file, `journald` for the systemd journal, `windows_event_log` for a Windows Event Log channel."
                                },
                                "path": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The path of the log file, which may be a pattern; null for `journald`."
                                },
                                "format": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "How the backend parses the file's lines at ingest into status, method, path and duration: `nginx_combined`, `wt15_timed` or `wt15_relay`; null when it is not parsed."
                                },
                                "channel": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the Event Log channel; null for the other types."
                                },
                                "min_level": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`; null for the other types."
                                },
                                "event_ids": {
                                    "type": "array",
                                    "description": "For a `windows_event_log` entry, the event ids collected, empty for every event at or above `min_level`; empty for the other types.",
                                    "items": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "source_type",
                                "path",
                                "format",
                                "channel",
                                "min_level",
                                "event_ids"
                            ]
                        }
                    },
                    "log_folders": {
                        "type": "array",
                        "description": "The log folders the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log folder entry's uuid."
                                },
                                "path": {
                                    "type": "string",
                                    "description": "The absolute path of the folder, read literally."
                                },
                                "match_mode": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`; null when not set."
                                },
                                "pattern": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The regular expression for `regex` mode; null otherwise."
                                },
                                "extensions": {
                                    "type": "array",
                                    "description": "The file extensions that apply to the folder's files; may be empty.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "path",
                                "match_mode",
                                "pattern",
                                "extensions"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the profile gives its servers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The profile's own alarm snooze, which holds the alarm notifications of every server using the profile; null when none is live. See `PUT /v1/server-profiles/{server_profile_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "server_led_tagging": {
                        "type": "boolean",
                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                    },
                    "server_led_tag_filter_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `include`, `exclude`; null when server-led tagging is off."
                    },
                    "server_led_tag_groups": {
                        "type": "array",
                        "description": "The tag groups of the filter.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag group's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag group's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "profile_type",
                    "os",
                    "logging_disabled",
                    "telemetry_disabled",
                    "telemetry_capture_all",
                    "servers_count",
                    "telemetry_options",
                    "log_files",
                    "log_folders",
                    "tags",
                    "alarm_snooze",
                    "server_led_tagging",
                    "server_led_tag_filter_mode",
                    "server_led_tag_groups"
                ],
                "title": "ServerProfilesUpdateResource"
            },
            "ServerProfilesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The profile's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The profile's name."
                    },
                    "slug": {
                        "type": "string",
                        "description": "Fixed at creation: the value of an install command's `--profile=`."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The profile's description; null when it has none."
                    },
                    "profile_type": {
                        "type": "string",
                        "description": "The profile's type: `default` for the organisation's default profile, otherwise `custom`."
                    },
                    "os": {
                        "type": "string",
                        "description": "The profile's operating system, fixed at creation: one of `linux`, `windows`."
                    },
                    "logging_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no logs."
                    },
                    "telemetry_disabled": {
                        "type": "boolean",
                        "description": "Whether the agent collects no telemetry."
                    },
                    "telemetry_capture_all": {
                        "type": "boolean",
                        "description": "Whether every telemetry option is collected."
                    },
                    "servers_count": {
                        "type": "integer",
                        "description": "How many servers use the profile."
                    },
                    "telemetry_options": {
                        "type": "array",
                        "description": "The telemetry options collected when `telemetry_capture_all` is false: any of `cpu`, `memory`, `swap`, `disk`, `disk_io`, `network`, `load`, `processes` and `systemd`.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "log_files": {
                        "type": "array",
                        "description": "The log files the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log file entry's uuid."
                                },
                                "source_type": {
                                    "type": "string",
                                    "description": "What is collected: `file` for a log file, `journald` for the systemd journal, `windows_event_log` for a Windows Event Log channel."
                                },
                                "path": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The path of the log file, which may be a pattern; null for `journald`."
                                },
                                "format": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "How the backend parses the file's lines at ingest into status, method, path and duration: `nginx_combined`, `wt15_timed` or `wt15_relay`; null when it is not parsed."
                                },
                                "channel": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the Event Log channel; null for the other types."
                                },
                                "min_level": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "For a `windows_event_log` entry, the least severe level collected: `critical`, `error`, `warning` or `information`; null for the other types."
                                },
                                "event_ids": {
                                    "type": "array",
                                    "description": "For a `windows_event_log` entry, the event ids collected, empty for every event at or above `min_level`; empty for the other types.",
                                    "items": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "source_type",
                                "path",
                                "format",
                                "channel",
                                "min_level",
                                "event_ids"
                            ]
                        }
                    },
                    "log_folders": {
                        "type": "array",
                        "description": "The log folders the agent collects.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The log folder entry's uuid."
                                },
                                "path": {
                                    "type": "string",
                                    "description": "The absolute path of the folder, read literally."
                                },
                                "match_mode": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Which files in the folder are collected: `all` for every file, `regex` for those matching `pattern`; null when not set."
                                },
                                "pattern": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The regular expression for `regex` mode; null otherwise."
                                },
                                "extensions": {
                                    "type": "array",
                                    "description": "The file extensions that apply to the folder's files; may be empty.",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "uuid",
                                "path",
                                "match_mode",
                                "pattern",
                                "extensions"
                            ]
                        }
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the profile gives its servers.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The profile's own alarm snooze, which holds the alarm notifications of every server using the profile; null when none is live. See `PUT /v1/server-profiles/{server_profile_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "server_led_tagging": {
                        "type": "boolean",
                        "description": "Whether servers of this profile take tags from the profile's own tag groups."
                    },
                    "server_led_tag_filter_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `include`, `exclude`; null when server-led tagging is off."
                    },
                    "server_led_tag_groups": {
                        "type": "array",
                        "description": "The tag groups of the filter.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag group's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag group's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "slug",
                    "description",
                    "profile_type",
                    "os",
                    "logging_disabled",
                    "telemetry_disabled",
                    "telemetry_capture_all",
                    "servers_count",
                    "telemetry_options",
                    "log_files",
                    "log_folders",
                    "tags",
                    "alarm_snooze",
                    "server_led_tagging",
                    "server_led_tag_filter_mode",
                    "server_led_tag_groups"
                ],
                "title": "ServerProfilesViewResource"
            },
            "ServersAlarmSnoozeSetResource": {
                "type": "object",
                "properties": {
                    "until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                        "x-wt15-instant": true
                    },
                    "source": {
                        "type": "string",
                        "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                    },
                    "server": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server's own snooze; null when it has none.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's own snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            },
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the profile's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "until",
                            "reason",
                            "set_at"
                        ]
                    }
                },
                "required": [
                    "until",
                    "source",
                    "server",
                    "profile"
                ],
                "title": "ServersAlarmSnoozeSetResource"
            },
            "ServersApproveResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersApproveResource"
            },
            "ServersArchiveResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersArchiveResource"
            },
            "ServersContainerResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the container."
                    },
                    "runtime": {
                        "type": "string",
                        "description": "The container runtime: `docker`, `podman`, `containerd`, `cri-o` or `unknown`."
                    },
                    "container_id": {
                        "type": "string",
                        "description": "The runtime's own id of the container (a hexadecimal string), never a WatchTower15 id."
                    },
                    "image_ref": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The image the container runs, as the runtime names it; null when the agent could not read it. It comes from the host, so treat it as untrusted text."
                    },
                    "image_digest": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The image's digest, `sha256:` and 64 hexadecimal characters; null when the agent could not read it."
                    },
                    "state": {
                        "type": "string",
                        "description": "`running`, or `gone` once the agent no longer lists the container."
                    },
                    "started_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the container started; null when the agent did not read it.",
                        "x-wt15-instant": true
                    },
                    "first_seen_at": {
                        "type": "integer",
                        "description": "Epoch milliseconds. When the agent first listed the container.",
                        "x-wt15-instant": true
                    },
                    "last_seen_at": {
                        "type": "integer",
                        "description": "Epoch milliseconds. When the agent last listed the container.",
                        "x-wt15-instant": true
                    },
                    "gone_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the container was last missing from the agent's list; null while it runs.",
                        "x-wt15-instant": true
                    },
                    "inventory": {
                        "type": "object",
                        "description": "The container's inventory: what the agent read inside it.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "The inventory's state."
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Why the inventory is `failed` or `unsupported`."
                            },
                            "reported_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported the inventory.",
                                "x-wt15-instant": true
                            },
                            "matched_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the packages were last matched against known vulnerabilities.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "status",
                            "reason",
                            "reported_at",
                            "matched_at"
                        ]
                    },
                    "findings": {
                        "type": "object",
                        "description": "The container's open vulnerability findings, by level.",
                        "properties": {
                            "open": {
                                "type": "integer",
                                "description": "The open findings."
                            },
                            "critical": {
                                "type": "integer",
                                "description": "Open findings at the critical level."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Open findings at the warning level."
                            },
                            "info": {
                                "type": "integer",
                                "description": "Open findings at the info level."
                            },
                            "kev": {
                                "type": "integer",
                                "description": "Open findings that are known exploited vulnerabilities."
                            }
                        },
                        "required": [
                            "open",
                            "critical",
                            "warning",
                            "info",
                            "kev"
                        ]
                    },
                    "findings_by_source": {
                        "type": "object",
                        "description": "The container's open findings by source, then by level.",
                        "properties": {
                            "os_package": {
                                "type": "object",
                                "description": "Open findings matched from the container's operating-system packages, by level.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Open os package findings at the critical level."
                                    },
                                    "warning": {
                                        "type": "integer",
                                        "description": "Open os package findings at the warning level."
                                    },
                                    "info": {
                                        "type": "integer",
                                        "description": "Open os package findings at the info level."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "warning",
                                    "info"
                                ]
                            },
                            "runtime": {
                                "type": "object",
                                "description": "Open findings matched from the container's language runtime inside the container, by level.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Open runtime findings at the critical level."
                                    },
                                    "warning": {
                                        "type": "integer",
                                        "description": "Open runtime findings at the warning level."
                                    },
                                    "info": {
                                        "type": "integer",
                                        "description": "Open runtime findings at the info level."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "warning",
                                    "info"
                                ]
                            },
                            "library": {
                                "type": "object",
                                "description": "Open findings matched from the container's language dependencies inside the container, by level.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Open library findings at the critical level."
                                    },
                                    "warning": {
                                        "type": "integer",
                                        "description": "Open library findings at the warning level."
                                    },
                                    "info": {
                                        "type": "integer",
                                        "description": "Open library findings at the info level."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "warning",
                                    "info"
                                ]
                            }
                        },
                        "required": [
                            "os_package",
                            "runtime",
                            "library"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "runtime",
                    "container_id",
                    "image_ref",
                    "image_digest",
                    "state",
                    "started_at",
                    "first_seen_at",
                    "last_seen_at",
                    "gone_at",
                    "inventory",
                    "findings",
                    "findings_by_source"
                ],
                "title": "ServersContainerResource"
            },
            "ServersDiskReportResource": {
                "type": "object",
                "properties": {
                    "report": {
                        "type": "object",
                        "description": "The report's state: when it was made and what it found. `generated_at` and the summary fields describe the snapshot served, so a failed run leaves them describing the report it kept.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `idle` (no report yet), `requested`, `running`, `expired`, `ok`, `partial` (the walk hit a limit) or `failed`."
                            },
                            "trigger": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "What asked for the report: `first_seen`, `scheduled` or `alarm`; null before the first one."
                            },
                            "requested_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the report was last asked for; null before the first one.",
                                "x-wt15-instant": true
                            },
                            "generated_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the served snapshot was made; null until a walk has stored one.",
                                "x-wt15-instant": true
                            },
                            "duration_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How long the walk took, in milliseconds; null until one has finished."
                            },
                            "walked_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Bytes the walk counted under the volume; null until one has finished."
                            },
                            "unaccounted_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Used space the walk could not attribute to a path, in bytes; can be negative. Null until one has finished."
                            },
                            "entry_count": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many entries the walk looked at; null until one has finished."
                            },
                            "truncated": {
                                "type": "boolean",
                                "description": "Whether a limit cut the walk short."
                            },
                            "largest_path": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The biggest path the walk found; null until one has finished."
                            },
                            "largest_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The size of the biggest path, in bytes; null until one has finished."
                            },
                            "alarm_incident_uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The UUID of the disk alarm incident that asked for this report; null when none did."
                            },
                            "error": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "A failed run's message; null otherwise."
                            }
                        },
                        "required": [
                            "status",
                            "trigger",
                            "requested_at",
                            "generated_at",
                            "duration_ms",
                            "walked_bytes",
                            "unaccounted_bytes",
                            "entry_count",
                            "truncated",
                            "largest_path",
                            "largest_bytes",
                            "alarm_incident_uuid",
                            "error"
                        ]
                    },
                    "snapshot": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The snapshot of the last finished walk; null until one is stored, and when `snapshot_error` is set.",
                        "additionalProperties": {}
                    },
                    "snapshot_error": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `missing` (the stored object is gone), `too_large` (it inflates past the limit) or `corrupt` (it cannot be read); null when the snapshot was read, or there is none."
                    }
                },
                "required": [
                    "report",
                    "snapshot",
                    "snapshot_error"
                ],
                "title": "ServersDiskReportResource"
            },
            "ServersDismissSecurityFindingResource": {
                "type": "object",
                "properties": {
                    "kind": {
                        "type": "string",
                        "description": "One of `vulnerability`, `posture`, `indicator`.",
                        "enum": [
                            "indicator",
                            "posture",
                            "vulnerability"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the finding."
                    },
                    "title": {
                        "type": "string",
                        "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `critical`, `high`, `medium`, `low`, `info`, `warning`, as the finding's level."
                    },
                    "status": {
                        "type": "string",
                        "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                    },
                    "location": {
                        "type": "object",
                        "description": "Where the finding was found: `{kind, container_uuid, image_ref}`, `kind` being `host` or `container`; posture checks and compromise indicators are always the host's.",
                        "properties": {
                            "kind": {
                                "type": "string",
                                "description": "`host`, or `container` for a vulnerability found in a container."
                            },
                            "container_uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's uuid; null on the host, and when the container is no longer on record."
                            },
                            "image_ref": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                            }
                        },
                        "required": [
                            "kind",
                            "container_uuid",
                            "image_ref"
                        ]
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                    },
                    "dismissal": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Null when the finding is not dismissed; `scope` is `server` or `organisation` for a posture check, `server` for a compromise indicator and null for a vulnerability.",
                        "properties": {
                            "by": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the person who dismissed the finding; null when not known."
                            },
                            "at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the finding was dismissed.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given for the dismissal."
                            },
                            "review_on": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The day the dismissal is reviewed, `YYYY-MM-DD`; null when none was set."
                            },
                            "scope": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Whether a posture check is dismissed for this `server` or the whole `organisation`; `server` for a compromise indicator; null for a vulnerability."
                            }
                        },
                        "required": [
                            "by",
                            "at",
                            "reason",
                            "review_on",
                            "scope"
                        ]
                    },
                    "history": {
                        "type": "array",
                        "description": "The finding's history, newest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "event": {
                                    "type": "string",
                                    "description": "What happened to the finding."
                                },
                                "occurred_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When it happened.",
                                    "x-wt15-instant": true
                                },
                                "context": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Details of the event; null when it has none.",
                                    "additionalProperties": {}
                                },
                                "by": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Who caused the event; null when the system did.",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "description": "The display name of the person."
                                        }
                                    },
                                    "required": [
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "event",
                                "occurred_at",
                                "context",
                                "by"
                            ]
                        }
                    },
                    "vulnerability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The vulnerability's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "posture": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The posture check's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "indicator": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The compromise indicator's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "kind",
                    "uuid",
                    "title",
                    "severity",
                    "status",
                    "location",
                    "source",
                    "dismissal",
                    "history",
                    "vulnerability",
                    "posture",
                    "indicator"
                ],
                "title": "ServersDismissSecurityFindingResource"
            },
            "ServersForgetPortResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the port."
                    },
                    "retired_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the port was retired; null when it was removed instead.",
                        "x-wt15-instant": true
                    },
                    "deleted": {
                        "type": "boolean",
                        "description": "Whether the port was removed rather than retired, which happens to an ephemeral port that was not tracked."
                    },
                    "incidents_resolved": {
                        "type": "integer",
                        "description": "How many open incidents of the port's alarms were resolved silently."
                    }
                },
                "required": [
                    "uuid",
                    "retired_at",
                    "deleted",
                    "incidents_resolved"
                ],
                "title": "ServersForgetPortResource"
            },
            "ServersIndicatorPoliciesResource": {
                "type": "object",
                "additionalProperties": {},
                "title": "ServersIndicatorPoliciesResource"
            },
            "ServersLatestResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "agent_status": {
                        "type": "string",
                        "description": "One of `active`, `pending_approval`, `revoked`."
                    },
                    "connectivity_state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set. Null when no agent reports."
                    },
                    "agent_last_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                        "x-wt15-instant": true
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "sample": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The newest sample of the last 15 minutes; null when there is none.",
                        "properties": {
                            "sampled_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the sample was taken.",
                                "x-wt15-instant": true
                            },
                            "cpu_usage_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "CPU in use, as a percentage of all cores."
                            },
                            "memory_usage_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Memory in use, as a percentage of the total."
                            },
                            "memory_used_mb": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Memory in use, in MB."
                            },
                            "memory_free_mb": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Memory free, in MB."
                            },
                            "swap_usage_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Swap in use, as a percentage of the total swap."
                            },
                            "swap_used_mb": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Swap in use, in MB."
                            },
                            "memory_commit_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "On a Windows server, the commit charge: memory promised to programs, as a percentage of the commit limit (memory plus page file); null on Linux."
                            },
                            "load_avg_1m": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The load average over one minute."
                            },
                            "load_avg_5m": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The load average over five minutes."
                            },
                            "load_avg_15m": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The load average over fifteen minutes."
                            },
                            "disk_usage_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Disk space in use, as a percentage of the total."
                            },
                            "disk_used_gb": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Disk space in use, in GB."
                            },
                            "disk_free_gb": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Disk space free, in GB."
                            },
                            "disk_io_read_mbps": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Disk read throughput, in MB per second."
                            },
                            "disk_io_write_mbps": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Disk write throughput, in MB per second."
                            },
                            "net_in_mbps": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Network inbound throughput, in MB per second."
                            },
                            "net_out_mbps": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "Network outbound throughput, in MB per second."
                            },
                            "process_count": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The number of processes running."
                            }
                        },
                        "required": [
                            "sampled_at",
                            "cpu_usage_percent",
                            "memory_usage_percent",
                            "memory_used_mb",
                            "memory_free_mb",
                            "swap_usage_percent",
                            "swap_used_mb",
                            "memory_commit_percent",
                            "load_avg_1m",
                            "load_avg_5m",
                            "load_avg_15m",
                            "disk_usage_percent",
                            "disk_used_gb",
                            "disk_free_gb",
                            "disk_io_read_mbps",
                            "disk_io_write_mbps",
                            "net_in_mbps",
                            "net_out_mbps",
                            "process_count"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "agent_status",
                    "connectivity_state",
                    "agent_last_seen_at",
                    "booted_at",
                    "alarm_summary",
                    "sample"
                ],
                "title": "ServersLatestResource"
            },
            "ServersMetricsResource": {
                "type": "object",
                "properties": {
                    "server": {
                        "type": "object",
                        "description": "The server the series belong to.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "family": {
                        "type": "string",
                        "description": "One of `cpu`, `memory`, `load`, `disk`, `network`, `tcp`, `saturation`, `kernel_limits`."
                    },
                    "window": {
                        "type": "object",
                        "description": "The window the series cover.",
                        "properties": {
                            "from": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The start of the window answered, which can be later than asked for when the store keeps less history.",
                                "x-wt15-instant": true
                            },
                            "to": {
                                "type": "integer",
                                "description": "Epoch milliseconds. The end of the window answered.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "from",
                            "to"
                        ]
                    },
                    "source": {
                        "type": "string",
                        "description": "`raw` (the hot store, 30 days) or `rollup` (the hourly rollup)."
                    },
                    "step_seconds": {
                        "type": "integer",
                        "description": "The width of one step in seconds: a point is the aggregate of a step."
                    },
                    "series": {
                        "type": "array",
                        "description": "The family's series, one entry per metric and label combination; a series the server does not report is absent.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "The internal series key, e.g. `cpu_usage_percent`, `io_read_mbps`."
                                },
                                "unit": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "One of `percent`, `MB`, `GB`, `MB/s`, `bytes/s`, `count`, `per_second`; null for a load average."
                                },
                                "labels": {
                                    "type": "object",
                                    "description": "What tells apart the series of one metric; each label is null where it does not apply.",
                                    "properties": {
                                        "mount": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The mount point, on a per-mount series."
                                        },
                                        "device": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The block device, on a disk I/O series."
                                        },
                                        "interface": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The network interface, on a network series."
                                        },
                                        "state": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "A connection state, a CPU mode, a pressure line or a limit, on the series that split by one."
                                        },
                                        "cpu": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "A core, `cpu0` and on, on a per-core series."
                                        }
                                    },
                                    "required": [
                                        "mount",
                                        "device",
                                        "interface",
                                        "state",
                                        "cpu"
                                    ]
                                },
                                "point_meaning": {
                                    "type": "string",
                                    "description": "One of `peak_per_step`, `average_per_step`, `min_per_step`, `count_per_step`, `value_per_step`: what a point is of its step."
                                },
                                "points": {
                                    "type": "array",
                                    "description": "`[t, value]` pairs, `t` epoch milliseconds, `value` a number or null.",
                                    "items": {
                                        "type": "array",
                                        "items": {
                                            "type": [
                                                "number",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            },
                            "required": [
                                "name",
                                "unit",
                                "labels",
                                "point_meaning",
                                "points"
                            ]
                        }
                    },
                    "oom_kills_in_window": {
                        "type": "integer",
                        "description": "The number of out-of-memory kills in the window; present only on the `saturation` family."
                    },
                    "conntrack_loaded": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Whether the connection-tracking table is loaded, null when not reported; present only on the `tcp` family."
                    },
                    "files_host_limited": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Whether the open-files limit is set by the host, null when not reported; present only on the `kernel_limits` family."
                    }
                },
                "required": [
                    "server",
                    "family",
                    "window",
                    "source",
                    "step_seconds",
                    "series"
                ],
                "title": "ServersMetricsResource"
            },
            "ServersOsUpdatesResource": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": "string",
                        "description": "One of `ok`, `no_metadata`, `unsupported`, `failed`, `not_reported`: `not_reported` for a server that never reported (every other field is then null but `recheck`), `no_metadata` for a host whose package manager publishes no metadata, a Windows server included."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The agent's word behind a status other than `ok`, such as `container`, `rpmdb_busy` or `deadline`; null when there is none. On `failed` and `unsupported` the counts are the last good report's."
                    },
                    "package_manager": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "One of `apt`, `dnf`, `yum`; null for a Windows server and for a server that has not reported."
                    },
                    "observed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the agent read the host; null for a server that has not reported.",
                        "x-wt15-instant": true
                    },
                    "reported_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the last report arrived; null for a server that has not reported.",
                        "x-wt15-instant": true
                    },
                    "metadata_refreshed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host's package metadata was last refreshed; null when not known.",
                        "x-wt15-instant": true
                    },
                    "stale": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Whether the last report is older than two days; null for a server that has not reported."
                    },
                    "host": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the host's own package manager sees inside its locked release. `updates_security` is null, never 0, when the host's package sources publish no security data (`security_published` false); `security_by_level` counts the security updates by advisory severity, `unknown` the ones whose advisory carries none of the four, and is null until the host sends a report with the levels, and ALWAYS on an apt server (Ubuntu, Debian), whose agent sends the total and never the levels: an apt server's caller reads `updates_security`; `security_pending_since` is epoch milliseconds, the day the oldest waiting security update was first seen, null when none; `packages_truncated` is true when the stored list stopped at 500 packages. Null for a server that has not reported.",
                        "properties": {
                            "updates_total": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many updates the host's package manager lists inside its locked release; null when none is stored."
                            },
                            "updates_security": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many of them are security updates; null, never 0, when the host's package sources publish no security data."
                            },
                            "security_published": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host's package sources publish security data: false means `updates_security` is null; null when no counts are stored."
                            },
                            "security_by_level": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The security updates by severity; null unless all five levels are stored, and always null on an apt server.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Critical security updates."
                                    },
                                    "important": {
                                        "type": "integer",
                                        "description": "Important security updates."
                                    },
                                    "moderate": {
                                        "type": "integer",
                                        "description": "Moderate security updates."
                                    },
                                    "low": {
                                        "type": "integer",
                                        "description": "Low security updates."
                                    },
                                    "unknown": {
                                        "type": "integer",
                                        "description": "Security updates whose advisory carries none of the four severities."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "important",
                                    "moderate",
                                    "low",
                                    "unknown"
                                ]
                            },
                            "security_pending_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the oldest waiting security update was first seen; null when none waits.",
                                "x-wt15-instant": true
                            },
                            "packages_truncated": {
                                "type": "boolean",
                                "description": "Whether the stored list stopped at 500 packages."
                            }
                        },
                        "required": [
                            "updates_total",
                            "updates_security",
                            "security_published",
                            "security_by_level",
                            "security_pending_since",
                            "packages_truncated"
                        ]
                    },
                    "release_locked": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The Amazon Linux 2023 release the host is locked to: `current`, whether it follows `latest`, the newest release and the day Amazon released it (`YYYY-MM-DD`), how many releases and days the host is behind; null for a host that is not on a locked Amazon Linux 2023 release, and the last four are null when the release is not in Amazon's list.",
                        "properties": {
                            "current": {
                                "type": "string",
                                "description": "The Amazon Linux 2023 release the host is locked to."
                            },
                            "follows_latest": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host follows `latest` instead of a locked release."
                            },
                            "latest": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The newest release Amazon has published; null when the release is not in Amazon's list."
                            },
                            "latest_released_on": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The day Amazon published that release (`YYYY-MM-DD`); null as above."
                            },
                            "releases_behind": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many releases the host is behind; null as above."
                            },
                            "days_behind": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many whole days the host has been behind, from the day Amazon published the first newer release; null as above."
                            }
                        },
                        "required": [
                            "current",
                            "follows_latest",
                            "latest",
                            "latest_released_on",
                            "releases_behind",
                            "days_behind"
                        ]
                    },
                    "at_latest": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "What the host would have if it were at the latest Amazon Linux 2023 release, matched from its package inventory against Amazon's own metadata. `status` is one of `matched`, `no_inventory`, `index_unavailable`, `awaiting_match` (nothing is stored yet); the counts are null unless stored; `security_by_level` is null unless all five levels are stored, so a server whose last match recorded no levels answers null until its next hourly match; `advisory_counts` counts the distinct advisories; `matched_at` and `checked_at` are epoch milliseconds (when the match was made, and last confirmed against a fresh index); `stale` is true when the confirmation is missing or older than two days. Null for a server that is not locked to a release: it follows `latest`, is not Amazon Linux 2023, or reported `unsupported`.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `matched`, `no_inventory`, `index_unavailable`, `awaiting_match`."
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The word behind `no_inventory` or `index_unavailable`; null when `matched` or `awaiting_match`."
                            },
                            "release": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The latest release the match was made against; null when none is stored."
                            },
                            "matched_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the stored result was computed; null when none is stored.",
                                "x-wt15-instant": true
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the match was last confirmed against a fresh index; null when it never was.",
                                "x-wt15-instant": true
                            },
                            "stale": {
                                "type": "boolean",
                                "description": "Whether the match is `matched` and was last confirmed more than two days ago."
                            },
                            "updates_total": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many updates the latest release would install; null unless stored."
                            },
                            "updates_security": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "How many of them are security updates; null unless stored."
                            },
                            "security_by_level": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The security updates by severity; null unless all five levels are stored.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Critical security updates."
                                    },
                                    "important": {
                                        "type": "integer",
                                        "description": "Important security updates."
                                    },
                                    "moderate": {
                                        "type": "integer",
                                        "description": "Moderate security updates."
                                    },
                                    "low": {
                                        "type": "integer",
                                        "description": "Low security updates."
                                    },
                                    "unknown": {
                                        "type": "integer",
                                        "description": "Security updates whose advisory carries none of the four severities."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "important",
                                    "moderate",
                                    "low",
                                    "unknown"
                                ]
                            },
                            "advisory_counts": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The distinct security advisories that name an installed package at a newer version, by severity, as `dnf updateinfo summary` counts them; null unless stored.",
                                "properties": {
                                    "critical": {
                                        "type": "integer",
                                        "description": "Critical advisories."
                                    },
                                    "important": {
                                        "type": "integer",
                                        "description": "Important advisories."
                                    },
                                    "moderate": {
                                        "type": "integer",
                                        "description": "Moderate advisories."
                                    },
                                    "low": {
                                        "type": "integer",
                                        "description": "Low advisories."
                                    },
                                    "unknown": {
                                        "type": "integer",
                                        "description": "Advisories with none of the four severities."
                                    },
                                    "total": {
                                        "type": "integer",
                                        "description": "All of them."
                                    }
                                },
                                "required": [
                                    "critical",
                                    "important",
                                    "moderate",
                                    "low",
                                    "unknown",
                                    "total"
                                ]
                            },
                            "kernel_candidate": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The newest kernel of the running kernel's stream at the latest release, when newer than the newest present; null otherwise."
                            },
                            "security_pending_since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. The first match that found a security update; null when none.",
                                "x-wt15-instant": true
                            },
                            "packages_truncated": {
                                "type": "boolean",
                                "description": "Whether more than 500 packages are pending at the latest release."
                            }
                        },
                        "required": [
                            "status",
                            "reason",
                            "release",
                            "matched_at",
                            "checked_at",
                            "stale",
                            "updates_total",
                            "updates_security",
                            "security_by_level",
                            "advisory_counts",
                            "kernel_candidate",
                            "security_pending_since",
                            "packages_truncated"
                        ]
                    },
                    "kernel": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The kernel: the one running, the newest one present on the host, and whether a newer one is waiting; null for a server that has not reported.",
                        "properties": {
                            "running": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The kernel release running now."
                            },
                            "newest_present": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The newest kernel release present on the host."
                            },
                            "update_available": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether a newer kernel is waiting to be installed."
                            }
                        },
                        "required": [
                            "running",
                            "newest_present",
                            "update_available"
                        ]
                    },
                    "reboot": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Whether the host needs a reboot, since when (epoch milliseconds), what said so, and how many packages asked for it; null for a server that has not reported.",
                        "properties": {
                            "required": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host needs a reboot."
                            },
                            "since": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. Since when a reboot has been needed; null when not known.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "What said so, such as `reboot_required_file` or `kernel_newer` on Linux; null when no reboot is needed."
                            },
                            "package_count": {
                                "type": "integer",
                                "description": "How many packages asked for the reboot."
                            }
                        },
                        "required": [
                            "required",
                            "since",
                            "source",
                            "package_count"
                        ]
                    },
                    "recheck": {
                        "type": "object",
                        "description": "The recheck. `state` is the answer `servers.recheckOsUpdates` (`POST /v1/servers/{server_uuid}/os-updates/recheck`, scope `security.edit`) would give now: `available`, or one of `unsupported` (a Windows server), `container`, `agent_update` (the agent needs updating), `not_active`, `pending` (a recheck is waiting for the agent), `too_soon` (one every 10 minutes: `available_at`, epoch milliseconds, is when). `last` is the server's newest recheck: its `uuid`, its `status` (one of `pending`, `dispatched`, `completed`, `expired`) and times in epoch milliseconds; `completed` means a report arrived, and the counts are current only when this summary's `status` is `ok`. Null when the server has none.",
                        "properties": {
                            "state": {
                                "type": "string",
                                "description": "One of `available`, `unsupported`, `container`, `agent_update`, `not_active`, `pending`, `too_soon`. `available` means `POST /v1/servers/{server_uuid}/os-updates/recheck` (scope `security.edit`) will be accepted now."
                            },
                            "available_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the next recheck is allowed; set for `too_soon` only.",
                                "x-wt15-instant": true
                            },
                            "last": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's newest recheck; null when it has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the recheck."
                                    },
                                    "status": {
                                        "type": "string",
                                        "description": "One of `pending`, `dispatched`, `completed`, `expired`; `expired` is computed past `expires_at`."
                                    },
                                    "issued_at": {
                                        "type": "integer",
                                        "description": "Epoch milliseconds. When the recheck was issued.",
                                        "x-wt15-instant": true
                                    },
                                    "expires_at": {
                                        "type": "integer",
                                        "description": "Epoch milliseconds. When the recheck stops waiting for the agent.",
                                        "x-wt15-instant": true
                                    },
                                    "completed_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the agent's report arrived; null until then.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "status",
                                    "issued_at",
                                    "expires_at",
                                    "completed_at"
                                ]
                            }
                        },
                        "required": [
                            "state",
                            "available_at",
                            "last"
                        ]
                    }
                },
                "required": [
                    "status",
                    "reason",
                    "package_manager",
                    "observed_at",
                    "reported_at",
                    "metadata_refreshed_at",
                    "stale",
                    "host",
                    "release_locked",
                    "at_latest",
                    "kernel",
                    "reboot",
                    "recheck"
                ],
                "title": "ServersOsUpdatesResource"
            },
            "ServersProvisionResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "hostname": {
                        "type": "string",
                        "description": "The hostname of the server; null until its agent reports one."
                    },
                    "enrollment_token": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The enrolment token, shown once; null on a replay of the first answer."
                    },
                    "agent_status": {
                        "type": "string",
                        "description": "The agent's status: `active`, `pending_approval` or `revoked`."
                    },
                    "agent_channel": {
                        "type": "string",
                        "description": "The agent channel the token is for: `stable` or `beta`."
                    }
                },
                "required": [
                    "uuid",
                    "hostname",
                    "enrollment_token",
                    "agent_status",
                    "agent_channel"
                ],
                "title": "ServersProvisionResource"
            },
            "ServersReactivateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersReactivateResource"
            },
            "ServersRecheckOsUpdatesResource": {
                "type": "object",
                "properties": {
                    "state": {
                        "type": "string",
                        "description": "One of `available`, `unsupported`, `container`, `agent_update`, `not_active`, `pending`, `too_soon`: `pending` right after an accepted recheck."
                    },
                    "available_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the next recheck is allowed; set for `too_soon` only.",
                        "x-wt15-instant": true
                    },
                    "last": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The recheck just issued: its `uuid`, its `status` (one of `pending`, `dispatched`, `completed`, `expired`) and its times in epoch milliseconds.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the recheck."
                            },
                            "status": {
                                "type": "string",
                                "description": "One of `pending`, `dispatched`, `completed`, `expired`; `expired` is computed past `expires_at`."
                            },
                            "issued_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the recheck was issued.",
                                "x-wt15-instant": true
                            },
                            "expires_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the recheck stops waiting for the agent.",
                                "x-wt15-instant": true
                            },
                            "completed_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent's report arrived; null until then.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "uuid",
                            "status",
                            "issued_at",
                            "expires_at",
                            "completed_at"
                        ]
                    }
                },
                "required": [
                    "state",
                    "available_at",
                    "last"
                ],
                "title": "ServersRecheckOsUpdatesResource"
            },
            "ServersRecheckPostureResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersRecheckPostureResource"
            },
            "ServersRestoreSecurityFindingResource": {
                "type": "object",
                "properties": {
                    "kind": {
                        "type": "string",
                        "description": "One of `vulnerability`, `posture`, `indicator`.",
                        "enum": [
                            "indicator",
                            "posture",
                            "vulnerability"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the finding."
                    },
                    "title": {
                        "type": "string",
                        "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `critical`, `high`, `medium`, `low`, `info`, `warning`, as the finding's level."
                    },
                    "status": {
                        "type": "string",
                        "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                    },
                    "location": {
                        "type": "object",
                        "description": "Where the finding was found: `{kind, container_uuid, image_ref}`, `kind` being `host` or `container`; posture checks and compromise indicators are always the host's.",
                        "properties": {
                            "kind": {
                                "type": "string",
                                "description": "`host`, or `container` for a vulnerability found in a container."
                            },
                            "container_uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's uuid; null on the host, and when the container is no longer on record."
                            },
                            "image_ref": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                            }
                        },
                        "required": [
                            "kind",
                            "container_uuid",
                            "image_ref"
                        ]
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                    },
                    "dismissal": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Null when the finding is not dismissed; `scope` is `server` or `organisation` for a posture check, `server` for a compromise indicator and null for a vulnerability.",
                        "properties": {
                            "by": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the person who dismissed the finding; null when not known."
                            },
                            "at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the finding was dismissed.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given for the dismissal."
                            },
                            "review_on": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The day the dismissal is reviewed, `YYYY-MM-DD`; null when none was set."
                            },
                            "scope": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Whether a posture check is dismissed for this `server` or the whole `organisation`; `server` for a compromise indicator; null for a vulnerability."
                            }
                        },
                        "required": [
                            "by",
                            "at",
                            "reason",
                            "review_on",
                            "scope"
                        ]
                    },
                    "history": {
                        "type": "array",
                        "description": "The finding's history, newest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "event": {
                                    "type": "string",
                                    "description": "What happened to the finding."
                                },
                                "occurred_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When it happened.",
                                    "x-wt15-instant": true
                                },
                                "context": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Details of the event; null when it has none.",
                                    "additionalProperties": {}
                                },
                                "by": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Who caused the event; null when the system did.",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "description": "The display name of the person."
                                        }
                                    },
                                    "required": [
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "event",
                                "occurred_at",
                                "context",
                                "by"
                            ]
                        }
                    },
                    "vulnerability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The vulnerability's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "posture": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The posture check's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "indicator": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The compromise indicator's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "kind",
                    "uuid",
                    "title",
                    "severity",
                    "status",
                    "location",
                    "source",
                    "dismissal",
                    "history",
                    "vulnerability",
                    "posture",
                    "indicator"
                ],
                "title": "ServersRestoreSecurityFindingResource"
            },
            "ServersRevokeResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersRevokeResource"
            },
            "ServersRotateTokenResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "enrollment_token": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The new enrolment token, shown once; null on a replay of the first answer."
                    },
                    "agent_status": {
                        "type": "string",
                        "description": "The agent's status: `active`, `pending_approval` or `revoked`."
                    }
                },
                "required": [
                    "uuid",
                    "enrollment_token",
                    "agent_status"
                ],
                "title": "ServersRotateTokenResource"
            },
            "ServersSecurityFindingResource": {
                "type": "object",
                "properties": {
                    "kind": {
                        "type": "string",
                        "description": "One of `vulnerability`, `posture`, `indicator`.",
                        "enum": [
                            "indicator",
                            "posture",
                            "vulnerability"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the finding."
                    },
                    "title": {
                        "type": "string",
                        "description": "The vulnerability id for a vulnerability, the check's title for a posture check, the indicator's title for a compromise indicator."
                    },
                    "severity": {
                        "type": "string",
                        "description": "One of `critical`, `high`, `medium`, `low`, `info`, `warning`, as the finding's level."
                    },
                    "status": {
                        "type": "string",
                        "description": "`open`, `dismissed` or `resolved` for a vulnerability or a compromise indicator; `pass`, `fail`, `not_applicable` or `not_measured` for a posture check."
                    },
                    "location": {
                        "type": "object",
                        "description": "Where the finding was found: `{kind, container_uuid, image_ref}`, `kind` being `host` or `container`; posture checks and compromise indicators are always the host's.",
                        "properties": {
                            "kind": {
                                "type": "string",
                                "description": "`host`, or `container` for a vulnerability found in a container."
                            },
                            "container_uuid": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's uuid; null on the host, and when the container is no longer on record."
                            },
                            "image_ref": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The container's image; null on the host, when not known, or when the container is no longer on record."
                            }
                        },
                        "required": [
                            "kind",
                            "container_uuid",
                            "image_ref"
                        ]
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "What was matched, for a vulnerability: `os_package`, `runtime` (a language runtime) or `library` (a language dependency); null for the other kinds."
                    },
                    "dismissal": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Null when the finding is not dismissed; `scope` is `server` or `organisation` for a posture check, `server` for a compromise indicator and null for a vulnerability.",
                        "properties": {
                            "by": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The name of the person who dismissed the finding; null when not known."
                            },
                            "at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the finding was dismissed.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given for the dismissal."
                            },
                            "review_on": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The day the dismissal is reviewed, `YYYY-MM-DD`; null when none was set."
                            },
                            "scope": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Whether a posture check is dismissed for this `server` or the whole `organisation`; `server` for a compromise indicator; null for a vulnerability."
                            }
                        },
                        "required": [
                            "by",
                            "at",
                            "reason",
                            "review_on",
                            "scope"
                        ]
                    },
                    "history": {
                        "type": "array",
                        "description": "The finding's history, newest first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "event": {
                                    "type": "string",
                                    "description": "What happened to the finding."
                                },
                                "occurred_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When it happened.",
                                    "x-wt15-instant": true
                                },
                                "context": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Details of the event; null when it has none.",
                                    "additionalProperties": {}
                                },
                                "by": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "Who caused the event; null when the system did.",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "description": "The display name of the person."
                                        }
                                    },
                                    "required": [
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "event",
                                "occurred_at",
                                "context",
                                "by"
                            ]
                        }
                    },
                    "vulnerability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The vulnerability's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "posture": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The posture check's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    },
                    "indicator": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The compromise indicator's own fields; null for the other kinds.",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "kind",
                    "uuid",
                    "title",
                    "severity",
                    "status",
                    "location",
                    "source",
                    "dismissal",
                    "history",
                    "vulnerability",
                    "posture",
                    "indicator"
                ],
                "title": "ServersSecurityFindingResource"
            },
            "ServersUpdateIndicatorPolicyResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the policy."
                    },
                    "indicator": {
                        "type": "string",
                        "description": "The rule: `exe_world_writable` or `tmp_executable`."
                    },
                    "scope": {
                        "type": "string",
                        "description": "Whether the policy is the `profile`'s or the `server`'s."
                    },
                    "state": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`on` or `off`; null on a server policy that inherits its profile's."
                    },
                    "severity": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "`critical`, `warning` or `info`; null leaves the rule's own."
                    },
                    "known_folders": {
                        "type": "array",
                        "description": "The known execution folders.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "reason": {
                        "type": "string",
                        "description": "Why the policy is in force."
                    },
                    "review_on": {
                        "type": "string",
                        "description": "The day the policy is looked at again, `YYYY-MM-DD`."
                    },
                    "review_due": {
                        "type": "boolean",
                        "description": "Whether that day has passed; the policy stays in force."
                    },
                    "updated_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the policy was last written.",
                        "x-wt15-instant": true
                    },
                    "updated_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who wrote it last: a `user` or an `api_key`, by name.",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "Whether a `user` or an `api_key` wrote the policy last."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of that person or key."
                            }
                        },
                        "required": [
                            "type",
                            "name"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "indicator",
                    "scope",
                    "state",
                    "severity",
                    "known_folders",
                    "reason",
                    "review_on",
                    "review_due",
                    "updated_at",
                    "updated_by"
                ],
                "title": "ServersUpdateIndicatorPolicyResource"
            },
            "ServersUpdatePortResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the port."
                    },
                    "port": {
                        "type": "integer",
                        "description": "The port number."
                    },
                    "protocol": {
                        "type": "string",
                        "description": "One of `tcp`, `udp`."
                    },
                    "bind_scope": {
                        "type": "string",
                        "description": "`any`, `loopback` or `specific`; the addresses only for `specific`."
                    },
                    "addresses": {
                        "type": "array",
                        "description": "The bound addresses of a `specific` bind; empty for any other.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "process_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The owner's kernel `comm`, never a command line."
                    },
                    "is_open": {
                        "type": "boolean",
                        "description": "Whether the port is listening now."
                    },
                    "state": {
                        "type": "string",
                        "description": "`open` or `closed`."
                    },
                    "opened_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the port was last seen opening; null when not known.",
                        "x-wt15-instant": true
                    },
                    "closed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the port was last seen closing; null while it is open.",
                        "x-wt15-instant": true
                    },
                    "first_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the agent first reported the port.",
                        "x-wt15-instant": true
                    },
                    "tracked": {
                        "type": "boolean",
                        "description": "Whether a user asked for this ephemeral port to be tracked."
                    },
                    "expected": {
                        "type": "boolean",
                        "description": "Whether the port is marked as expected to be open."
                    },
                    "charted": {
                        "type": "boolean",
                        "description": "Whether the port has a series, alarms and a history: not ephemeral, or ephemeral and tracked."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "retired_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the port was retired; null while it is not retired.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "uuid",
                    "port",
                    "protocol",
                    "bind_scope",
                    "addresses",
                    "process_name",
                    "is_open",
                    "state",
                    "opened_at",
                    "closed_at",
                    "first_seen_at",
                    "tracked",
                    "expected",
                    "charted",
                    "health_status",
                    "retired_at"
                ],
                "title": "ServersUpdatePortResource"
            },
            "ServersUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersUpdateResource"
            },
            "ServersUpdateVolumeResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the volume."
                    },
                    "mount_point": {
                        "type": "string",
                        "description": "The mount point of the volume."
                    },
                    "device": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The block device; null when the agent does not report it."
                    },
                    "filesystem_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The filesystem type; null when the agent does not report it."
                    },
                    "total_gb": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "The volume's size in gigabytes, as the agent reports it."
                    },
                    "used_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Bytes in use; null when no usage is available."
                    },
                    "free_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Bytes free; null when no usage is available."
                    },
                    "used_percent": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Space in use as a percentage; null when no usage is available."
                    },
                    "inodes_used_percent": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "description": "Inodes in use as a percentage; null for a filesystem that keeps no inode count or when no usage is available."
                    },
                    "read_only": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null when the agent does not report it."
                    },
                    "classification": {
                        "type": "string",
                        "description": "`pending`, `monitored`, or an `excluded_*` reason."
                    },
                    "monitored": {
                        "type": "boolean",
                        "description": "Whether the volume is monitored."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "open_incidents": {
                        "type": "object",
                        "description": "Open and acknowledged incidents by severity; `acknowledged` is the subset of those.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Open incidents at critical severity."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Open incidents at warning severity."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the open incidents, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "acknowledged"
                        ]
                    },
                    "first_seen_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the agent first reported the volume.",
                        "x-wt15-instant": true
                    },
                    "forecast": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The volume's growth forecast, fitted on its daily peaks of used space with the method of the database growth forecast. Null for a volume that is not monitored, on a server that is archived or inactive, and before the first calculation.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `ok`, `insufficient_history` (fewer than 7 days of history in the fit) and `not_growing`."
                            },
                            "used_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The bytes used today by the fit's value, not the raw latest reading; null when the volume has no history yet."
                            },
                            "capacity_bytes": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The volume's capacity in bytes, used plus free, as the alarm and `used_percent` read it (reserved blocks are not in it); null when no capacity was read, and then every `days_to_*` is null."
                            },
                            "growth_bytes_per_day": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The growth in bytes a day; null without a fit, and zero or negative when the volume is not growing."
                            },
                            "growth_low": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The low end of the growth band in bytes a day (the 10th percentile of the pairwise slopes); null without a fit."
                            },
                            "growth_high": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The high end of the growth band in bytes a day (the 90th percentile of the pairwise slopes); null without a fit."
                            },
                            "projection_30d": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The fitted bytes used 30 days from now, never below 0; null without a fit."
                            },
                            "projection_90d": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The fitted bytes used 90 days from now, never below 0; null without a fit."
                            },
                            "projection_180d": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The fitted bytes used 180 days from now, never below 0; null without a fit."
                            },
                            "projection_365d": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The fitted bytes used 365 days from now, never below 0; null without a fit."
                            },
                            "days_to_warning": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days until the volume reaches its warning threshold; 0 when it is already at or past it; null without a fit, a capacity or a growth above 0; at most 3650."
                            },
                            "days_to_critical": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days until the volume reaches its critical threshold; 0 when it is already at or past it; null without a fit, a capacity or a growth above 0; at most 3650."
                            },
                            "days_to_full": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Whole days until the volume is full (used reaches its capacity); 0 when it already is; null without a fit, a capacity or a growth above 0; at most 3650, which means more than 10 years."
                            },
                            "warning_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The warning threshold in percent of the capacity that `days_to_warning` was measured with; null when the volume has none."
                            },
                            "critical_percent": {
                                "type": [
                                    "number",
                                    "null"
                                ],
                                "description": "The critical threshold in percent of the capacity that `days_to_critical` was measured with; null when the volume has none."
                            },
                            "history_days": {
                                "type": "integer",
                                "description": "The days of history the fit read, at most 90."
                            },
                            "fit_window_days": {
                                "type": "integer",
                                "description": "The days of the fit's window: the history after the last clean-up, or the last 30 days when the growth changed."
                            },
                            "segment_started_on": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The day after the last clean-up the fit starts from, as `YYYY-MM-DD` in UTC; null when none was found or without a fit."
                            },
                            "computed_at": {
                                "type": "integer",
                                "description": "Epoch milliseconds. When the forecast was calculated.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "status",
                            "used_bytes",
                            "capacity_bytes",
                            "growth_bytes_per_day",
                            "growth_low",
                            "growth_high",
                            "projection_30d",
                            "projection_90d",
                            "projection_180d",
                            "projection_365d",
                            "days_to_warning",
                            "days_to_critical",
                            "days_to_full",
                            "warning_percent",
                            "critical_percent",
                            "history_days",
                            "fit_window_days",
                            "segment_started_on",
                            "computed_at"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "mount_point",
                    "device",
                    "filesystem_type",
                    "total_gb",
                    "used_bytes",
                    "free_bytes",
                    "used_percent",
                    "inodes_used_percent",
                    "read_only",
                    "classification",
                    "monitored",
                    "health_status",
                    "open_incidents",
                    "first_seen_at",
                    "forecast"
                ],
                "title": "ServersUpdateVolumeResource"
            },
            "ServersViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The UUID of the server."
                    },
                    "name": {
                        "type": "string",
                        "description": "The display name when one is set, else the hostname."
                    },
                    "display_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own label, as set; null when none (`name` is the shown name)."
                    },
                    "server_profile": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server profile; null when none.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The UUID of the server profile."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server profile."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "hostname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The hostname the agent reports; null when it has not reported one."
                    },
                    "ip_address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The address the agent's last heartbeat came from: a proxy's, for a box behind one. The box's own addresses are `public_ipv4` and `network_interfaces`."
                    },
                    "supplier_identifier": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The instance id the cloud supplier gives the server (`i-0abc…`), as you recorded it; null when none is set. The server list's `search` matches it."
                    },
                    "supplier_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The cloud supplier's name, as you recorded it; null when none is set."
                    },
                    "public_ipv4": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The box's own public IPv4 address, from its latest security facts; null until the agent reports one, and when it has none. The server list's `search` matches it by prefix."
                    },
                    "connection": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "How the agent reaches the API, from the latest system-information scan; null when that is not reported (agents before 1.1.18, or no system information pushed yet): null is never \"direct\".",
                        "properties": {
                            "type": {
                                "type": "string",
                                "description": "`direct` or `proxy`."
                            },
                            "proxy_host": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The proxy's host, without credentials; null for a direct connection."
                            },
                            "proxy_port": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The proxy's port; null for a direct connection."
                            }
                        },
                        "required": [
                            "type",
                            "proxy_host",
                            "proxy_port"
                        ]
                    },
                    "os_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system, `linux` or `windows`."
                    },
                    "os_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "From the latest system-information scan; null until one is pushed."
                    },
                    "os_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The operating system's version; null until a system-information scan is pushed."
                    },
                    "kernel_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The kernel version; null until a system-information scan is pushed."
                    },
                    "cpu_model": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The CPU model; null until a system-information scan is pushed."
                    },
                    "cpu_cores": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The logical core count; null until the agent reports it, never a guessed 1."
                    },
                    "total_memory_mb": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's memory in MB; null until the agent reports it."
                    },
                    "booted_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the host booted; null when its agent never reported it.",
                        "x-wt15-instant": true
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The host's own time zone, as its agent reports it."
                    },
                    "utc_offset_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "The host's offset from UTC, in seconds; null when its agent never reported it."
                    },
                    "in_container": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Null until an agent that reports it pushes system information."
                    },
                    "health_status": {
                        "type": "string",
                        "description": "The server's Operational Health: one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "security_health_status": {
                        "type": "string",
                        "description": "The server's Security Health, from the open incidents of its security alarms (vulnerabilities, updates, posture, exposure, compromise indicators, and the freshness of the package list and the posture facts those findings rest on): one of `unknown`, `healthy`, `warning`, `critical`. `unknown` until a security alarm has measured the server; a fresh package list or fresh posture facts alone never lift it."
                    },
                    "monitoring_health_status": {
                        "type": "string",
                        "description": "The server's Monitoring Health, from the open incidents of the alarms that watch WatchTower15's own collection from the server (the agent's heartbeat and its listening-ports and system-services collectors): one of `unknown`, `healthy`, `warning`, `critical`."
                    },
                    "overall_health_status": {
                        "type": "string",
                        "description": "The worst known of the three healths: `critical`, else `warning`, else `healthy`, and `unknown` only when all three are."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "archived_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the server was archived; null for a server that is not archived.",
                        "x-wt15-instant": true
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Your own free-text notes about the server, as `PUT /v1/servers/{server_uuid}` wrote them; null when none. The list does not carry them."
                    },
                    "agent": {
                        "type": "object",
                        "description": "The server's agent.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `active`, `pending_approval`, `revoked`."
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The agent's version; null when no agent has reported."
                            },
                            "capabilities": {
                                "type": "array",
                                "description": "What the agent can do, as it reported.",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_seen_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the agent last reported; null when it never did.",
                                "x-wt15-instant": true
                            },
                            "connectivity_state": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Connected, catching up, delayed, unreachable, rejected, powered off or never seen: an open set."
                            }
                        },
                        "required": [
                            "status",
                            "version",
                            "capabilities",
                            "last_seen_at",
                            "connectivity_state"
                        ]
                    },
                    "disks": {
                        "type": "array",
                        "description": "The server's disks, as the agent reported them.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "mount_point": {
                                    "type": "string",
                                    "description": "The mount point of the disk."
                                },
                                "device": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The block device; null when not reported."
                                },
                                "filesystem_type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The filesystem type; null when not reported."
                                },
                                "total_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The disk's size in GB; null when not reported."
                                },
                                "used_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null with no usage sample, never 0."
                                },
                                "free_gb": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "The free space in GB; null with no usage sample."
                                },
                                "used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "used / (used + free), what `df` prints; null with no sample."
                                },
                                "inodes_used_percent": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Null for a filesystem that keeps no inode count."
                                }
                            },
                            "required": [
                                "mount_point",
                                "device",
                                "filesystem_type",
                                "total_gb",
                                "used_gb",
                                "free_gb",
                                "used_percent",
                                "inodes_used_percent"
                            ]
                        }
                    },
                    "network_interfaces": {
                        "type": "array",
                        "description": "The server's network interfaces.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "interface_name": {
                                    "type": "string",
                                    "description": "The name of the interface."
                                },
                                "ipv4_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv4 address; null when it has none."
                                },
                                "ipv6_address": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The interface's IPv6 address; null when it has none."
                                },
                                "is_up": {
                                    "type": "boolean",
                                    "description": "Whether the interface is up."
                                }
                            },
                            "required": [
                                "interface_name",
                                "ipv4_address",
                                "ipv6_address",
                                "is_up"
                            ]
                        }
                    },
                    "alarm_summary": {
                        "type": "object",
                        "description": "The count of the server's alarms by state, over its own alarms and its volumes', ports' and units'.",
                        "properties": {
                            "critical": {
                                "type": "integer",
                                "description": "Alarms firing at critical, over the server's own alarms and its volumes', ports' and units'."
                            },
                            "warning": {
                                "type": "integer",
                                "description": "Alarms firing at warning."
                            },
                            "ok": {
                                "type": "integer",
                                "description": "Alarms that are scored and not firing."
                            },
                            "inactive": {
                                "type": "integer",
                                "description": "Alarms the evaluator does not score."
                            },
                            "acknowledged": {
                                "type": "integer",
                                "description": "Of the firing ones, the acknowledged."
                            }
                        },
                        "required": [
                            "critical",
                            "warning",
                            "ok",
                            "inactive",
                            "acknowledged"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The alarm snooze holding this server's alarm notifications, from its own snooze and its profile's; null when none is live.\nThe alarms keep evaluating while it lasts; see `PUT /v1/servers/{server_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the server's alarm notifications are released: the later of its own snooze's end and its profile's.",
                                "x-wt15-instant": true
                            },
                            "source": {
                                "type": "string",
                                "description": "Which snooze ends later and so sets `until`: `server` or `profile`."
                            },
                            "server": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The server's own snooze; null when it has none.",
                                "properties": {
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the server's own snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            },
                            "profile": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The snooze of the server's profile, which covers the server too; null when the profile has none.",
                                "properties": {
                                    "uuid": {
                                        "type": "string",
                                        "description": "The UUID of the server profile."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the server profile."
                                    },
                                    "until": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When the profile's snooze ends.",
                                        "x-wt15-instant": true
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The reason given when it was set; null when none was."
                                    },
                                    "set_at": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Epoch milliseconds. When it was last set.",
                                        "x-wt15-instant": true
                                    }
                                },
                                "required": [
                                    "uuid",
                                    "name",
                                    "until",
                                    "reason",
                                    "set_at"
                                ]
                            }
                        },
                        "required": [
                            "until",
                            "source",
                            "server",
                            "profile"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags the server carries.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The UUID of the tag."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the tag."
                                },
                                "group": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "The tag's group; null only when the group is gone.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The UUID of the tag group."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the tag group."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "group"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The server's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "display_name",
                    "server_profile",
                    "hostname",
                    "ip_address",
                    "supplier_identifier",
                    "supplier_name",
                    "public_ipv4",
                    "connection",
                    "os_type",
                    "os_name",
                    "os_version",
                    "kernel_version",
                    "cpu_model",
                    "cpu_cores",
                    "total_memory_mb",
                    "booted_at",
                    "timezone",
                    "utc_offset_seconds",
                    "in_container",
                    "health_status",
                    "security_health_status",
                    "monitoring_health_status",
                    "overall_health_status",
                    "active",
                    "archived_at",
                    "notes",
                    "agent",
                    "disks",
                    "network_interfaces",
                    "alarm_summary",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServersViewResource"
            },
            "ServicesAlarmSnoozeSetResource": {
                "type": "object",
                "properties": {
                    "until": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the service's snooze ends.",
                        "x-wt15-instant": true
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The reason given when it was set; null when none was."
                    },
                    "set_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When it was last set.",
                        "x-wt15-instant": true
                    }
                },
                "required": [
                    "until",
                    "reason",
                    "set_at"
                ],
                "title": "ServicesAlarmSnoozeSetResource"
            },
            "ServicesCollectorPreviewResource": {
                "type": "object",
                "properties": {
                    "servers": {
                        "type": "array",
                        "description": "The servers the rule matches: the candidates first, in the order their roles go, then the excluded ones.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The uuid of the server."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The name of the server."
                                },
                                "agent_version": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The version of the server's agent; null when unknown."
                                },
                                "agent_last_seen_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds: when the server's agent was last heard; null when it never was.",
                                    "x-wt15-instant": true
                                },
                                "service_capability": {
                                    "type": "boolean",
                                    "description": "Whether the server can run this check."
                                },
                                "carries": {
                                    "type": "integer",
                                    "description": "How many services the server already checks."
                                },
                                "role": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The role the server would get in the pool: `active`, `standby` or `cold`; null when the server is excluded."
                                },
                                "excluded_because": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the server is left out; null when it is picked."
                                }
                            },
                            "required": [
                                "uuid",
                                "name",
                                "agent_version",
                                "agent_last_seen_at",
                                "service_capability",
                                "carries",
                                "role",
                                "excluded_because"
                            ]
                        }
                    },
                    "warnings": {
                        "type": "array",
                        "description": "Warnings about the pool the rule would make: `no_match` or `single_pool`.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string",
                                    "description": "The warning's code: `no_match` or `single_pool`."
                                },
                                "message": {
                                    "type": "string",
                                    "description": "The warning, as a sentence."
                                }
                            },
                            "required": [
                                "code",
                                "message"
                            ]
                        }
                    }
                },
                "required": [
                    "servers",
                    "warnings"
                ],
                "title": "ServicesCollectorPreviewResource"
            },
            "ServicesCollectorsResource": {
                "type": "object",
                "properties": {
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the pool is awaiting a collector or failing, such as `dns` or `blocked_destination`; null otherwise."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collectors": {
                        "type": "array",
                        "description": "The members of the pool, the active one first.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "server": {
                                    "type": "object",
                                    "description": "The member's server: its uuid and its name.",
                                    "properties": {
                                        "uuid": {
                                            "type": "string",
                                            "description": "The uuid of the server."
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the server."
                                        }
                                    },
                                    "required": [
                                        "uuid",
                                        "name"
                                    ]
                                },
                                "role": {
                                    "type": "string",
                                    "description": "One of `active` and `standby` (active-standby mode), `member` (every-collector mode) and `cold` (a candidate, probed but not checking)."
                                },
                                "eligible": {
                                    "type": "boolean",
                                    "description": "Whether the server can be a collector of this service."
                                },
                                "excluded_because": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the server cannot check right now; null when it can."
                                },
                                "last_check_at": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Epoch milliseconds. When the member last checked or probed the service; null if it has not.",
                                    "x-wt15-instant": true
                                },
                                "last_check_ok": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ],
                                    "description": "Whether that check passed; null if there is none."
                                },
                                "last_check_reason": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why that check failed, a short name such as `timeout`; null when it passed."
                                }
                            },
                            "required": [
                                "server",
                                "role",
                                "eligible",
                                "excluded_because",
                                "last_check_at",
                                "last_check_ok",
                                "last_check_reason"
                            ]
                        }
                    }
                },
                "required": [
                    "pool_mode",
                    "collector_status",
                    "collector_status_reason",
                    "member_limit",
                    "quorum_n",
                    "collectors"
                ],
                "title": "ServicesCollectorsResource"
            },
            "ServicesCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesCreateResource"
            },
            "ServicesDuplicateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesDuplicateResource"
            },
            "ServicesImportResource": {
                "type": "object",
                "properties": {
                    "step": {
                        "type": "object",
                        "description": "The step the source makes, ready for `steps` in a create or an update. Every credential in it is a `{{param.name}}` reference.",
                        "additionalProperties": {}
                    },
                    "parameters_needed": {
                        "type": "array",
                        "description": "The Parameters to add to the service: each name and the place that reads it.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "The Parameter to add to the service: the name its `{{param.name}}` reference uses."
                                },
                                "for": {
                                    "type": "string",
                                    "description": "Where the reference stands in the step, such as `auth.password`, `request.headers.Authorization` or `request.url`."
                                }
                            },
                            "required": [
                                "name",
                                "for"
                            ]
                        }
                    },
                    "unread_flags": {
                        "type": "array",
                        "description": "The flags or parts of the source that were not read.",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "step",
                    "parameters_needed",
                    "unread_flags"
                ],
                "title": "ServicesImportResource"
            },
            "ServicesParameterTestResultResource": {
                "anyOf": [
                    {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `pending` (the collector has not answered yet) or `done`."
                            },
                            "requested_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the test was asked for; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "completed_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the collector answered; null while the test is pending.",
                                "x-wt15-instant": true
                            },
                            "results": {
                                "type": "array",
                                "description": "The results by parameter name, without any value; empty while the test is pending.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the parameter that was tested."
                                        },
                                        "found": {
                                            "type": "boolean",
                                            "description": "Whether the parameter was found."
                                        },
                                        "length": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "The length of the value that was found; null when it was not found. The value itself is never returned."
                                        },
                                        "source": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "A summary of where the value was found, such as a file path; null when it was not found."
                                        },
                                        "error": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why the parameter could not be read; null when there was no error."
                                        },
                                        "at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Where the selector stopped, when it did; null otherwise."
                                        }
                                    },
                                    "required": [
                                        "name",
                                        "found",
                                        "length",
                                        "source",
                                        "error",
                                        "at"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "status",
                            "requested_at",
                            "completed_at",
                            "results"
                        ]
                    },
                    {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "Always `none` here: no test has been asked for, or the last one was answered more than 10 minutes ago.",
                                "const": "none"
                            },
                            "requested_at": {
                                "type": "null",
                                "description": "Always null here: there is no test."
                            },
                            "completed_at": {
                                "type": "null",
                                "description": "Always null here: there is no test."
                            },
                            "results": {
                                "type": "array",
                                "description": "Always empty here: there is no test.",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        },
                        "required": [
                            "status",
                            "requested_at",
                            "completed_at",
                            "results"
                        ]
                    }
                ],
                "title": "ServicesParameterTestResultResource"
            },
            "ServicesPauseResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesPauseResource"
            },
            "ServicesReassignResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesReassignResource"
            },
            "ServicesResumeResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesResumeResource"
            },
            "ServicesRunNowResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesRunNowResource"
            },
            "ServicesRunsViewResource": {
                "type": "object",
                "properties": {
                    "run_uuid": {
                        "type": "string",
                        "description": "The run's uuid."
                    },
                    "collector": {
                        "type": "object",
                        "description": "The server that ran it.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server that ran it."
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The server's name; null when the server is gone."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "version_uuid": {
                        "type": "string",
                        "description": "The saved version this run ran."
                    },
                    "version": {
                        "type": "integer",
                        "description": "The version's number."
                    },
                    "trigger": {
                        "type": "string",
                        "description": "Why the run happened."
                    },
                    "status": {
                        "type": "string",
                        "description": "How the run ended."
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why a `budget_exceeded` or `refused` run ended so."
                    },
                    "started_at": {
                        "type": "integer",
                        "description": "Epoch milliseconds. When the run started.",
                        "x-wt15-instant": true
                    },
                    "completed_at": {
                        "type": "integer",
                        "description": "Epoch milliseconds. When the run completed.",
                        "x-wt15-instant": true
                    },
                    "duration_ms": {
                        "type": "integer",
                        "description": "How long the run took, in milliseconds."
                    },
                    "budget_ms": {
                        "type": "integer",
                        "description": "The run's time budget, in milliseconds."
                    },
                    "attempts": {
                        "type": "integer",
                        "description": "How many times the run was tried."
                    },
                    "failed_step_uuid": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The first step that failed and stopped the run."
                    },
                    "failed_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why that step failed."
                    },
                    "steps_run": {
                        "type": "integer",
                        "description": "How many steps ran."
                    },
                    "eventful": {
                        "type": "boolean",
                        "description": "Whether the run is kept for ten years."
                    },
                    "retention": {
                        "type": "string",
                        "description": "`recent` or `history`."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The steps in order, every one present.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "step_uuid": {
                                    "type": "string",
                                    "description": "The step's uuid."
                                },
                                "position": {
                                    "type": "integer",
                                    "description": "The step's place in the definition, from 1."
                                },
                                "name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "The step's name in the service's current version; null when the step is no longer in it."
                                },
                                "type": {
                                    "type": "string",
                                    "description": "The kind of step, such as `http`, `tcp` or `dns`."
                                },
                                "status": {
                                    "type": "string",
                                    "description": "One of `passed`, `failed`, `skipped` (an earlier step stopped the run) and `budget_exceeded`."
                                },
                                "critical": {
                                    "type": "boolean",
                                    "description": "Whether a failure of this step fails the run."
                                },
                                "reason": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why the step failed, a short name such as `timeout`; null when it did not."
                                },
                                "attempts": {
                                    "type": "integer",
                                    "description": "How many times the step was tried: 1 plus its retries or polls."
                                },
                                "started_at": {
                                    "type": "integer",
                                    "description": "Epoch milliseconds: when the step started.",
                                    "x-wt15-instant": true
                                },
                                "duration_ms": {
                                    "type": "integer",
                                    "description": "How long the step took, retries included, in milliseconds."
                                },
                                "observed": {
                                    "type": "object",
                                    "description": "The numbers and flags the step saw, by type: for `http` the `status_code`, `response_time_ms` and the timings; never a text.",
                                    "additionalProperties": {
                                        "type": [
                                            "number",
                                            "boolean",
                                            "string"
                                        ]
                                    }
                                },
                                "assertions": {
                                    "type": "array",
                                    "description": "Each assertion's outcome, in order: whether it passed, why not, and the number or flag it read.",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "passed": {
                                                "type": "boolean",
                                                "description": "Whether the assertion passed."
                                            },
                                            "reason": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "Why it did not pass, a short name; null when it passed."
                                            },
                                            "observed": {
                                                "description": "The number or flag it read; null when what it read is not one. A text is never returned.",
                                                "type": [
                                                    "number",
                                                    "boolean",
                                                    "null"
                                                ]
                                            },
                                            "observed_type": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "The kind of value it read, such as `number`, `string` or `missing`; null when not known."
                                            },
                                            "observed_length": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "description": "The length of what it read; null when not known."
                                            }
                                        },
                                        "required": [
                                            "passed",
                                            "reason",
                                            "observed",
                                            "observed_type",
                                            "observed_length"
                                        ]
                                    }
                                },
                                "extractions": {
                                    "type": "array",
                                    "description": "Each extraction's outcome, in order: its name, whether the value was found and why not; never the value.",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string",
                                                "description": "The variable the extraction fills."
                                            },
                                            "extracted": {
                                                "type": "boolean",
                                                "description": "Whether the value was found."
                                            },
                                            "reason": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "Why it was not, a short name; null when it was."
                                            }
                                        },
                                        "required": [
                                            "name",
                                            "extracted",
                                            "reason"
                                        ]
                                    }
                                },
                                "evidence": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "description": "What the step's server answered at the step's last attempt, masked: every value the run used (Parameters, variables, extracted values, authentication) is written as a reference such as `{{param.name}}`, and a sensitive header's value is withheld. A closed object whose keys depend on the step type (each key below names the type it belongs to); at most 16,384 bytes. Null when the step kept none: `evidence_dropped` says why, or `evidence_hidden` is true.",
                                    "properties": {
                                        "attempt": {
                                            "type": "integer",
                                            "description": "Every type: the attempt this evidence belongs to, from 1."
                                        },
                                        "of": {
                                            "type": "integer",
                                            "description": "Every type: how many attempts the step made in all."
                                        },
                                        "answered": {
                                            "type": "boolean",
                                            "description": "Every type: false when the last attempt got no answer (a refused connection, a failed lookup, a timeout); the evidence then holds only `attempt`, `of` and, for `http`, `request`."
                                        },
                                        "withheld_reason": {
                                            "type": "string",
                                            "description": "Every type: `short_value` when a value the run used was too short to mask (fewer than 4 characters), so every text and list the evidence would hold is withheld."
                                        },
                                        "request": {
                                            "type": "string",
                                            "description": "http steps only: `<METHOD> <URL>` without its query string, at most 2,064 bytes."
                                        },
                                        "version": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "http steps only: the protocol version of the answer, such as `HTTP/1.1`."
                                        },
                                        "status": {
                                            "type": "integer",
                                            "description": "http and websocket steps only: the HTTP status of the answer (websocket: the handshake's, 101 when it upgraded)."
                                        },
                                        "headers": {
                                            "type": "array",
                                            "description": "http steps only: the answer's headers, lower-cased names in order, at most 64, each value at most 1,024 bytes; a sensitive header keeps its name with `value` null and `withheld` true.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The header's name, lower-cased."
                                                    },
                                                    "value": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "The header's value; null when withheld."
                                                    },
                                                    "withheld": {
                                                        "type": "boolean",
                                                        "description": "True when the value is never kept (a cookie, a token, an authorization header)."
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "value",
                                                    "withheld"
                                                ]
                                            }
                                        },
                                        "headers_omitted": {
                                            "type": "integer",
                                            "description": "http steps only: how many headers were left out to fit the 16,384-byte limit."
                                        },
                                        "body": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "http steps only: the first 8,192 bytes of the answer's body when it is text, masked; null otherwise."
                                        },
                                        "body_bytes": {
                                            "type": "integer",
                                            "description": "http steps only: the body's length in bytes."
                                        },
                                        "body_kept": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "http steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`; null when the body is withheld."
                                        },
                                        "body_decompressed": {
                                            "type": "boolean",
                                            "description": "http steps only: true when the transport decompressed a gzip body, so `content-encoding` and `content-length` are absent."
                                        },
                                        "code": {
                                            "type": "integer",
                                            "description": "grpc steps only: the call's status code, 0 to 16."
                                        },
                                        "message": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "grpc and websocket steps only: the status message (grpc, at most 1,024 bytes) or the first message received (websocket, at most 8,192 bytes), masked; null when none."
                                        },
                                        "reply": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "grpc, tcp and udp steps only: the reply, masked (grpc: JSON, at most 8,192 bytes; tcp and udp: at most 512 bytes read, written as text or hex); null when none came."
                                        },
                                        "reply_kept": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "grpc steps only: `whole`, `first_8kb`, `step_cap` or `run_cap`; null with no reply."
                                        },
                                        "reply_bytes": {
                                            "type": "integer",
                                            "description": "grpc, tcp and udp steps only: the reply's length in bytes, 0 with none."
                                        },
                                        "trailers": {
                                            "type": "array",
                                            "description": "grpc steps only: the trailer names, lower-cased and sorted, at most 64; never a value.",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "trailers_omitted": {
                                            "type": "integer",
                                            "description": "grpc steps only: how many trailer names were left out."
                                        },
                                        "message_kept": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "websocket steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`."
                                        },
                                        "message_bytes": {
                                            "type": "integer",
                                            "description": "websocket steps only: the first message's length in bytes, 0 with none."
                                        },
                                        "reply_encoding": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "tcp and udp steps only: `text` or `hex`, how `reply` is written; null with no reply."
                                        },
                                        "records": {
                                            "type": "array",
                                            "description": "dns steps only: the answer records in order, at most 50.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The record type, such as `A` or `TXT`."
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The owner name with its trailing dot."
                                                    },
                                                    "ttl": {
                                                        "type": "integer",
                                                        "description": "Seconds the record may be cached."
                                                    },
                                                    "data": {
                                                        "type": "string",
                                                        "description": "The record's data as `dig` prints it, at most 1,024 bytes."
                                                    },
                                                    "data_bytes": {
                                                        "type": "integer",
                                                        "description": "The length of that form in bytes, so a cut shows."
                                                    }
                                                },
                                                "required": [
                                                    "type",
                                                    "name",
                                                    "ttl",
                                                    "data",
                                                    "data_bytes"
                                                ]
                                            }
                                        },
                                        "records_omitted": {
                                            "type": "integer",
                                            "description": "dns steps only: how many records were left out."
                                        },
                                        "subject": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "tls steps only: the certificate's subject distinguished name, at most 1,024 bytes."
                                        },
                                        "issuer": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "tls steps only: the certificate's issuer distinguished name, at most 1,024 bytes."
                                        },
                                        "names": {
                                            "type": "array",
                                            "description": "tls steps only: the certificate's DNS names and addresses in its order, at most 50.",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "names_omitted": {
                                            "type": "integer",
                                            "description": "tls steps only: how many names were left out."
                                        },
                                        "not_before": {
                                            "type": "integer",
                                            "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate becomes valid.",
                                            "x-wt15-instant": true
                                        },
                                        "not_after": {
                                            "type": "integer",
                                            "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate expires.",
                                            "x-wt15-instant": true
                                        },
                                        "protocol": {
                                            "type": "string",
                                            "description": "tls steps only: the protocol negotiated, such as `TLS 1.3`."
                                        },
                                        "cipher": {
                                            "type": "string",
                                            "description": "tls steps only: the cipher suite negotiated."
                                        },
                                        "lines": {
                                            "type": "array",
                                            "description": "smtp steps only: the server's reply lines in order, at most 50, each at most 512 bytes; never a line the collector sent.",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "lines_omitted": {
                                            "type": "integer",
                                            "description": "smtp steps only: how many lines were left out."
                                        }
                                    }
                                },
                                "evidence_dropped": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Why a step has no evidence when it could have: `invalid` (the collector sent evidence outside its bounds), `switched_off` (the step's evidence is switched off), `run_cap` (the run's evidence reached 98,304 bytes) or `pool` (the collector's evidence memory was full); null otherwise."
                                },
                                "evidence_hidden": {
                                    "type": "boolean",
                                    "description": "True when the caller does not hold the `service_evidence.view` permission (or scope): `evidence` is then null whatever the step kept."
                                }
                            },
                            "required": [
                                "step_uuid",
                                "position",
                                "name",
                                "type",
                                "status",
                                "critical",
                                "reason",
                                "attempts",
                                "started_at",
                                "duration_ms",
                                "observed",
                                "assertions",
                                "extractions",
                                "evidence",
                                "evidence_dropped",
                                "evidence_hidden"
                            ]
                        }
                    }
                },
                "required": [
                    "run_uuid",
                    "collector",
                    "version_uuid",
                    "version",
                    "trigger",
                    "status",
                    "reason",
                    "started_at",
                    "completed_at",
                    "duration_ms",
                    "budget_ms",
                    "attempts",
                    "failed_step_uuid",
                    "failed_reason",
                    "steps_run",
                    "eventful",
                    "retention",
                    "steps"
                ],
                "title": "ServicesRunsViewResource"
            },
            "ServicesTestParametersResource": {
                "anyOf": [
                    {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "One of `pending` (the collector has not answered yet) or `done`."
                            },
                            "requested_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the test was asked for; null when unknown.",
                                "x-wt15-instant": true
                            },
                            "completed_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the collector answered; null while the test is pending.",
                                "x-wt15-instant": true
                            },
                            "results": {
                                "type": "array",
                                "description": "The results by parameter name, without any value; empty while the test is pending.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the parameter that was tested."
                                        },
                                        "found": {
                                            "type": "boolean",
                                            "description": "Whether the parameter was found."
                                        },
                                        "length": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "The length of the value that was found; null when it was not found. The value itself is never returned."
                                        },
                                        "source": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "A summary of where the value was found, such as a file path; null when it was not found."
                                        },
                                        "error": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why the parameter could not be read; null when there was no error."
                                        },
                                        "at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Where the selector stopped, when it did; null otherwise."
                                        }
                                    },
                                    "required": [
                                        "name",
                                        "found",
                                        "length",
                                        "source",
                                        "error",
                                        "at"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "status",
                            "requested_at",
                            "completed_at",
                            "results"
                        ]
                    },
                    {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "Always `none` here: no test has been asked for, or the last one was answered more than 10 minutes ago.",
                                "const": "none"
                            },
                            "requested_at": {
                                "type": "null",
                                "description": "Always null here: there is no test."
                            },
                            "completed_at": {
                                "type": "null",
                                "description": "Always null here: there is no test."
                            },
                            "results": {
                                "type": "array",
                                "description": "Always empty here: there is no test.",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        },
                        "required": [
                            "status",
                            "requested_at",
                            "completed_at",
                            "results"
                        ]
                    }
                ],
                "title": "ServicesTestParametersResource"
            },
            "ServicesTestRunsStartNewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The test's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `waiting` (no collector has picked it up), `picked_up`, `passed`, `failed` and `no_answer` (the collector did not answer in time)."
                    },
                    "collector": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server that runs the test; null if it is gone.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server that ran the test."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server that ran the test."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "requested_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test was asked for.",
                        "x-wt15-instant": true
                    },
                    "picked_up_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the collector picked the test up; null before.",
                        "x-wt15-instant": true
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test ended; null while it runs.",
                        "x-wt15-instant": true
                    },
                    "run": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The run of a service that does not fit a single check: how it ended and each step's outcome and response shape; null for a service that does, and while the test is still in flight.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "How the run ended: `passed`, `failed`, `budget_exceeded` (the run used its whole time budget) or `refused` (the collector would not run the definition)."
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "A short name for why a `budget_exceeded` or `refused` run ended so; null otherwise."
                            },
                            "refused_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "For a `refused` run, where in the definition the collector stopped, as a path such as `steps[2].type`; null otherwise."
                            },
                            "attempts": {
                                "type": "integer",
                                "description": "How many times the run was tried: 1 plus its fast retries."
                            },
                            "duration_ms": {
                                "type": "integer",
                                "description": "How long the whole run took, in milliseconds."
                            },
                            "steps": {
                                "type": "array",
                                "description": "The run's steps in order, every step present: an earlier failure leaves the later ones `skipped`; empty for a `refused` run.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "step_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The step's uuid; null for a step of a definition that was not saved."
                                        },
                                        "position": {
                                            "type": "integer",
                                            "description": "The step's place in the definition, from 1."
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The kind of step, such as `http`, `tcp` or `dns`."
                                        },
                                        "status": {
                                            "type": "string",
                                            "description": "One of `passed`, `failed`, `skipped` (an earlier step stopped the run) and `budget_exceeded`."
                                        },
                                        "critical": {
                                            "type": "boolean",
                                            "description": "Whether a failure of this step fails the run."
                                        },
                                        "reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why the step failed, a short name such as `timeout`; null when it did not."
                                        },
                                        "attempts": {
                                            "type": "integer",
                                            "description": "How many times the step was tried: 1 plus its retries or polls."
                                        },
                                        "duration_ms": {
                                            "type": "integer",
                                            "description": "How long the step took, retries included, in milliseconds."
                                        },
                                        "observed": {
                                            "type": "object",
                                            "description": "The numbers and flags the step saw, by type; never a text.",
                                            "additionalProperties": {
                                                "type": [
                                                    "number",
                                                    "boolean",
                                                    "string"
                                                ]
                                            }
                                        },
                                        "assertions": {
                                            "type": "array",
                                            "description": "Each assertion's outcome, in order: whether it passed, why not, and the number or flag it read.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "extractions": {
                                            "type": "array",
                                            "description": "Each extraction's outcome, in order: its name, whether the value was found and why not; never the value.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "response_shape": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "The structure of what the step received, never its content: the status, the header names, and the body's keys, types and lengths. Null for a step that has none.",
                                            "additionalProperties": {}
                                        },
                                        "evidence": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "What the step's server answered at the step's last attempt, masked: every value the run used (Parameters, variables, extracted values, authentication) is written as a reference such as `{{param.name}}`, and a sensitive header's value is withheld. A closed object whose keys depend on the step type (each key below names the type it belongs to); at most 16,384 bytes. Null when the step kept none: `evidence_dropped` says why, or `evidence_hidden` is true.",
                                            "properties": {
                                                "attempt": {
                                                    "type": "integer",
                                                    "description": "Every type: the attempt this evidence belongs to, from 1."
                                                },
                                                "of": {
                                                    "type": "integer",
                                                    "description": "Every type: how many attempts the step made in all."
                                                },
                                                "answered": {
                                                    "type": "boolean",
                                                    "description": "Every type: false when the last attempt got no answer (a refused connection, a failed lookup, a timeout); the evidence then holds only `attempt`, `of` and, for `http`, `request`."
                                                },
                                                "withheld_reason": {
                                                    "type": "string",
                                                    "description": "Every type: `short_value` when a value the run used was too short to mask (fewer than 4 characters), so every text and list the evidence would hold is withheld."
                                                },
                                                "request": {
                                                    "type": "string",
                                                    "description": "http steps only: `<METHOD> <URL>` without its query string, at most 2,064 bytes."
                                                },
                                                "version": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the protocol version of the answer, such as `HTTP/1.1`."
                                                },
                                                "status": {
                                                    "type": "integer",
                                                    "description": "http and websocket steps only: the HTTP status of the answer (websocket: the handshake's, 101 when it upgraded)."
                                                },
                                                "headers": {
                                                    "type": "array",
                                                    "description": "http steps only: the answer's headers, lower-cased names in order, at most 64, each value at most 1,024 bytes; a sensitive header keeps its name with `value` null and `withheld` true.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The header's name, lower-cased."
                                                            },
                                                            "value": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The header's value; null when withheld."
                                                            },
                                                            "withheld": {
                                                                "type": "boolean",
                                                                "description": "True when the value is never kept (a cookie, a token, an authorization header)."
                                                            }
                                                        },
                                                        "required": [
                                                            "name",
                                                            "value",
                                                            "withheld"
                                                        ]
                                                    }
                                                },
                                                "headers_omitted": {
                                                    "type": "integer",
                                                    "description": "http steps only: how many headers were left out to fit the 16,384-byte limit."
                                                },
                                                "body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the first 8,192 bytes of the answer's body when it is text, masked; null otherwise."
                                                },
                                                "body_bytes": {
                                                    "type": "integer",
                                                    "description": "http steps only: the body's length in bytes."
                                                },
                                                "body_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`; null when the body is withheld."
                                                },
                                                "body_decompressed": {
                                                    "type": "boolean",
                                                    "description": "http steps only: true when the transport decompressed a gzip body, so `content-encoding` and `content-length` are absent."
                                                },
                                                "code": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: the call's status code, 0 to 16."
                                                },
                                                "message": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc and websocket steps only: the status message (grpc, at most 1,024 bytes) or the first message received (websocket, at most 8,192 bytes), masked; null when none."
                                                },
                                                "reply": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc, tcp and udp steps only: the reply, masked (grpc: JSON, at most 8,192 bytes; tcp and udp: at most 512 bytes read, written as text or hex); null when none came."
                                                },
                                                "reply_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc steps only: `whole`, `first_8kb`, `step_cap` or `run_cap`; null with no reply."
                                                },
                                                "reply_bytes": {
                                                    "type": "integer",
                                                    "description": "grpc, tcp and udp steps only: the reply's length in bytes, 0 with none."
                                                },
                                                "trailers": {
                                                    "type": "array",
                                                    "description": "grpc steps only: the trailer names, lower-cased and sorted, at most 64; never a value.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "trailers_omitted": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: how many trailer names were left out."
                                                },
                                                "message_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "websocket steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`."
                                                },
                                                "message_bytes": {
                                                    "type": "integer",
                                                    "description": "websocket steps only: the first message's length in bytes, 0 with none."
                                                },
                                                "reply_encoding": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tcp and udp steps only: `text` or `hex`, how `reply` is written; null with no reply."
                                                },
                                                "records": {
                                                    "type": "array",
                                                    "description": "dns steps only: the answer records in order, at most 50.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The record type, such as `A` or `TXT`."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The owner name with its trailing dot."
                                                            },
                                                            "ttl": {
                                                                "type": "integer",
                                                                "description": "Seconds the record may be cached."
                                                            },
                                                            "data": {
                                                                "type": "string",
                                                                "description": "The record's data as `dig` prints it, at most 1,024 bytes."
                                                            },
                                                            "data_bytes": {
                                                                "type": "integer",
                                                                "description": "The length of that form in bytes, so a cut shows."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "name",
                                                            "ttl",
                                                            "data",
                                                            "data_bytes"
                                                        ]
                                                    }
                                                },
                                                "records_omitted": {
                                                    "type": "integer",
                                                    "description": "dns steps only: how many records were left out."
                                                },
                                                "subject": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's subject distinguished name, at most 1,024 bytes."
                                                },
                                                "issuer": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's issuer distinguished name, at most 1,024 bytes."
                                                },
                                                "names": {
                                                    "type": "array",
                                                    "description": "tls steps only: the certificate's DNS names and addresses in its order, at most 50.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "names_omitted": {
                                                    "type": "integer",
                                                    "description": "tls steps only: how many names were left out."
                                                },
                                                "not_before": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate becomes valid.",
                                                    "x-wt15-instant": true
                                                },
                                                "not_after": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate expires.",
                                                    "x-wt15-instant": true
                                                },
                                                "protocol": {
                                                    "type": "string",
                                                    "description": "tls steps only: the protocol negotiated, such as `TLS 1.3`."
                                                },
                                                "cipher": {
                                                    "type": "string",
                                                    "description": "tls steps only: the cipher suite negotiated."
                                                },
                                                "lines": {
                                                    "type": "array",
                                                    "description": "smtp steps only: the server's reply lines in order, at most 50, each at most 512 bytes; never a line the collector sent.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "lines_omitted": {
                                                    "type": "integer",
                                                    "description": "smtp steps only: how many lines were left out."
                                                }
                                            }
                                        },
                                        "evidence_dropped": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why a step has no evidence when it could have: `invalid` (the collector sent evidence outside its bounds), `switched_off` (the step's evidence is switched off), `run_cap` (the run's evidence reached 98,304 bytes) or `pool` (the collector's evidence memory was full); null otherwise."
                                        },
                                        "evidence_hidden": {
                                            "type": "boolean",
                                            "description": "True when the caller does not hold the `service_evidence.view` permission (or scope): `evidence` is then null whatever the step kept."
                                        }
                                    },
                                    "required": [
                                        "step_uuid",
                                        "position",
                                        "type",
                                        "status",
                                        "critical",
                                        "reason",
                                        "attempts",
                                        "duration_ms",
                                        "observed",
                                        "assertions",
                                        "extractions",
                                        "response_shape",
                                        "evidence",
                                        "evidence_dropped",
                                        "evidence_hidden"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "status",
                            "reason",
                            "refused_at",
                            "attempts",
                            "duration_ms",
                            "steps"
                        ]
                    },
                    "result": {
                        "type": "object",
                        "description": "Each check's result, once the collector has answered it; null for a check not answered or not asked.",
                        "properties": {
                            "reachability": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The reachability check: whether the destination answered. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_reachable": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the destination answered; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why a check failed, a short name such as `timeout` or `refused`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the check took; null when not measured."
                                    }
                                },
                                "required": [
                                    "is_reachable",
                                    "reason",
                                    "error_message",
                                    "response_time_ms"
                                ]
                            },
                            "response": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The response check: the status, the body checks and each assertion. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_up": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the response check passed as a whole; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the response check failed, a short name such as `status_mismatch` or `assertion_failed`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the response took; null when not measured."
                                    },
                                    "http_status_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The HTTP status the service answered; null when there was none."
                                    },
                                    "status_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the status was one of the expected ones; null when not checked."
                                    },
                                    "body_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body checks passed; null when not checked."
                                    },
                                    "content_type_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the content type was the expected one; null when not checked."
                                    },
                                    "body_format_valid": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body was valid for the expected format; null when not checked."
                                    },
                                    "content_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The content type the service answered; null when there was none."
                                    },
                                    "response_size_bytes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The size of the response body in bytes; null when not measured."
                                    },
                                    "expected_http_statuses": {
                                        "type": "array",
                                        "description": "The statuses that count as up; empty means the status is not checked.",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "assertion_results": {
                                        "type": "array",
                                        "description": "Each assertion's result, in the order of the definition; empty when the check has no assertions or did not run.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "select": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What the assertion read; null for the whole body."
                                                },
                                                "comparison": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "How it compared."
                                                },
                                                "value": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What it compared against."
                                                },
                                                "passed": {
                                                    "type": "boolean",
                                                    "description": "Whether it passed."
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Why it did not pass, a short name; null when it passed."
                                                },
                                                "observed": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The number it read, as text; null when what it read is not a number. A text is never returned."
                                                },
                                                "observed_type": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The kind of value it read, such as `number`, `string` or `missing`; null when not known."
                                                },
                                                "observed_length": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "The length of what it read; null when not known."
                                                }
                                            },
                                            "required": [
                                                "select",
                                                "comparison",
                                                "value",
                                                "passed",
                                                "reason",
                                                "observed",
                                                "observed_type",
                                                "observed_length"
                                            ]
                                        }
                                    },
                                    "smtp_step": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the step that ended the check; null otherwise."
                                    },
                                    "smtp_reply_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last reply code; null otherwise."
                                    },
                                    "smtp_enhanced_status": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last enhanced status code; null otherwise."
                                    }
                                },
                                "required": [
                                    "is_up",
                                    "reason",
                                    "error_message",
                                    "response_time_ms",
                                    "http_status_code",
                                    "status_match",
                                    "body_match",
                                    "content_type_match",
                                    "body_format_valid",
                                    "content_type",
                                    "response_size_bytes",
                                    "expected_http_statuses",
                                    "assertion_results",
                                    "smtp_step",
                                    "smtp_reply_code",
                                    "smtp_enhanced_status"
                                ]
                            }
                        },
                        "required": [
                            "reachability",
                            "response"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "collector",
                    "requested_at",
                    "picked_up_at",
                    "completed_at",
                    "run",
                    "result"
                ],
                "title": "ServicesTestRunsStartNewResource"
            },
            "ServicesTestRunsStartSavedResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The test's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `waiting` (no collector has picked it up), `picked_up`, `passed`, `failed` and `no_answer` (the collector did not answer in time)."
                    },
                    "collector": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server that runs the test; null if it is gone.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server that ran the test."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server that ran the test."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "requested_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test was asked for.",
                        "x-wt15-instant": true
                    },
                    "picked_up_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the collector picked the test up; null before.",
                        "x-wt15-instant": true
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test ended; null while it runs.",
                        "x-wt15-instant": true
                    },
                    "run": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The run of a service that does not fit a single check: how it ended and each step's outcome and response shape; null for a service that does, and while the test is still in flight.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "How the run ended: `passed`, `failed`, `budget_exceeded` (the run used its whole time budget) or `refused` (the collector would not run the definition)."
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "A short name for why a `budget_exceeded` or `refused` run ended so; null otherwise."
                            },
                            "refused_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "For a `refused` run, where in the definition the collector stopped, as a path such as `steps[2].type`; null otherwise."
                            },
                            "attempts": {
                                "type": "integer",
                                "description": "How many times the run was tried: 1 plus its fast retries."
                            },
                            "duration_ms": {
                                "type": "integer",
                                "description": "How long the whole run took, in milliseconds."
                            },
                            "steps": {
                                "type": "array",
                                "description": "The run's steps in order, every step present: an earlier failure leaves the later ones `skipped`; empty for a `refused` run.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "step_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The step's uuid; null for a step of a definition that was not saved."
                                        },
                                        "position": {
                                            "type": "integer",
                                            "description": "The step's place in the definition, from 1."
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The kind of step, such as `http`, `tcp` or `dns`."
                                        },
                                        "status": {
                                            "type": "string",
                                            "description": "One of `passed`, `failed`, `skipped` (an earlier step stopped the run) and `budget_exceeded`."
                                        },
                                        "critical": {
                                            "type": "boolean",
                                            "description": "Whether a failure of this step fails the run."
                                        },
                                        "reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why the step failed, a short name such as `timeout`; null when it did not."
                                        },
                                        "attempts": {
                                            "type": "integer",
                                            "description": "How many times the step was tried: 1 plus its retries or polls."
                                        },
                                        "duration_ms": {
                                            "type": "integer",
                                            "description": "How long the step took, retries included, in milliseconds."
                                        },
                                        "observed": {
                                            "type": "object",
                                            "description": "The numbers and flags the step saw, by type; never a text.",
                                            "additionalProperties": {
                                                "type": [
                                                    "number",
                                                    "boolean",
                                                    "string"
                                                ]
                                            }
                                        },
                                        "assertions": {
                                            "type": "array",
                                            "description": "Each assertion's outcome, in order: whether it passed, why not, and the number or flag it read.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "extractions": {
                                            "type": "array",
                                            "description": "Each extraction's outcome, in order: its name, whether the value was found and why not; never the value.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "response_shape": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "The structure of what the step received, never its content: the status, the header names, and the body's keys, types and lengths. Null for a step that has none.",
                                            "additionalProperties": {}
                                        },
                                        "evidence": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "What the step's server answered at the step's last attempt, masked: every value the run used (Parameters, variables, extracted values, authentication) is written as a reference such as `{{param.name}}`, and a sensitive header's value is withheld. A closed object whose keys depend on the step type (each key below names the type it belongs to); at most 16,384 bytes. Null when the step kept none: `evidence_dropped` says why, or `evidence_hidden` is true.",
                                            "properties": {
                                                "attempt": {
                                                    "type": "integer",
                                                    "description": "Every type: the attempt this evidence belongs to, from 1."
                                                },
                                                "of": {
                                                    "type": "integer",
                                                    "description": "Every type: how many attempts the step made in all."
                                                },
                                                "answered": {
                                                    "type": "boolean",
                                                    "description": "Every type: false when the last attempt got no answer (a refused connection, a failed lookup, a timeout); the evidence then holds only `attempt`, `of` and, for `http`, `request`."
                                                },
                                                "withheld_reason": {
                                                    "type": "string",
                                                    "description": "Every type: `short_value` when a value the run used was too short to mask (fewer than 4 characters), so every text and list the evidence would hold is withheld."
                                                },
                                                "request": {
                                                    "type": "string",
                                                    "description": "http steps only: `<METHOD> <URL>` without its query string, at most 2,064 bytes."
                                                },
                                                "version": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the protocol version of the answer, such as `HTTP/1.1`."
                                                },
                                                "status": {
                                                    "type": "integer",
                                                    "description": "http and websocket steps only: the HTTP status of the answer (websocket: the handshake's, 101 when it upgraded)."
                                                },
                                                "headers": {
                                                    "type": "array",
                                                    "description": "http steps only: the answer's headers, lower-cased names in order, at most 64, each value at most 1,024 bytes; a sensitive header keeps its name with `value` null and `withheld` true.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The header's name, lower-cased."
                                                            },
                                                            "value": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The header's value; null when withheld."
                                                            },
                                                            "withheld": {
                                                                "type": "boolean",
                                                                "description": "True when the value is never kept (a cookie, a token, an authorization header)."
                                                            }
                                                        },
                                                        "required": [
                                                            "name",
                                                            "value",
                                                            "withheld"
                                                        ]
                                                    }
                                                },
                                                "headers_omitted": {
                                                    "type": "integer",
                                                    "description": "http steps only: how many headers were left out to fit the 16,384-byte limit."
                                                },
                                                "body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the first 8,192 bytes of the answer's body when it is text, masked; null otherwise."
                                                },
                                                "body_bytes": {
                                                    "type": "integer",
                                                    "description": "http steps only: the body's length in bytes."
                                                },
                                                "body_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`; null when the body is withheld."
                                                },
                                                "body_decompressed": {
                                                    "type": "boolean",
                                                    "description": "http steps only: true when the transport decompressed a gzip body, so `content-encoding` and `content-length` are absent."
                                                },
                                                "code": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: the call's status code, 0 to 16."
                                                },
                                                "message": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc and websocket steps only: the status message (grpc, at most 1,024 bytes) or the first message received (websocket, at most 8,192 bytes), masked; null when none."
                                                },
                                                "reply": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc, tcp and udp steps only: the reply, masked (grpc: JSON, at most 8,192 bytes; tcp and udp: at most 512 bytes read, written as text or hex); null when none came."
                                                },
                                                "reply_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc steps only: `whole`, `first_8kb`, `step_cap` or `run_cap`; null with no reply."
                                                },
                                                "reply_bytes": {
                                                    "type": "integer",
                                                    "description": "grpc, tcp and udp steps only: the reply's length in bytes, 0 with none."
                                                },
                                                "trailers": {
                                                    "type": "array",
                                                    "description": "grpc steps only: the trailer names, lower-cased and sorted, at most 64; never a value.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "trailers_omitted": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: how many trailer names were left out."
                                                },
                                                "message_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "websocket steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`."
                                                },
                                                "message_bytes": {
                                                    "type": "integer",
                                                    "description": "websocket steps only: the first message's length in bytes, 0 with none."
                                                },
                                                "reply_encoding": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tcp and udp steps only: `text` or `hex`, how `reply` is written; null with no reply."
                                                },
                                                "records": {
                                                    "type": "array",
                                                    "description": "dns steps only: the answer records in order, at most 50.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The record type, such as `A` or `TXT`."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The owner name with its trailing dot."
                                                            },
                                                            "ttl": {
                                                                "type": "integer",
                                                                "description": "Seconds the record may be cached."
                                                            },
                                                            "data": {
                                                                "type": "string",
                                                                "description": "The record's data as `dig` prints it, at most 1,024 bytes."
                                                            },
                                                            "data_bytes": {
                                                                "type": "integer",
                                                                "description": "The length of that form in bytes, so a cut shows."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "name",
                                                            "ttl",
                                                            "data",
                                                            "data_bytes"
                                                        ]
                                                    }
                                                },
                                                "records_omitted": {
                                                    "type": "integer",
                                                    "description": "dns steps only: how many records were left out."
                                                },
                                                "subject": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's subject distinguished name, at most 1,024 bytes."
                                                },
                                                "issuer": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's issuer distinguished name, at most 1,024 bytes."
                                                },
                                                "names": {
                                                    "type": "array",
                                                    "description": "tls steps only: the certificate's DNS names and addresses in its order, at most 50.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "names_omitted": {
                                                    "type": "integer",
                                                    "description": "tls steps only: how many names were left out."
                                                },
                                                "not_before": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate becomes valid.",
                                                    "x-wt15-instant": true
                                                },
                                                "not_after": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate expires.",
                                                    "x-wt15-instant": true
                                                },
                                                "protocol": {
                                                    "type": "string",
                                                    "description": "tls steps only: the protocol negotiated, such as `TLS 1.3`."
                                                },
                                                "cipher": {
                                                    "type": "string",
                                                    "description": "tls steps only: the cipher suite negotiated."
                                                },
                                                "lines": {
                                                    "type": "array",
                                                    "description": "smtp steps only: the server's reply lines in order, at most 50, each at most 512 bytes; never a line the collector sent.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "lines_omitted": {
                                                    "type": "integer",
                                                    "description": "smtp steps only: how many lines were left out."
                                                }
                                            }
                                        },
                                        "evidence_dropped": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why a step has no evidence when it could have: `invalid` (the collector sent evidence outside its bounds), `switched_off` (the step's evidence is switched off), `run_cap` (the run's evidence reached 98,304 bytes) or `pool` (the collector's evidence memory was full); null otherwise."
                                        },
                                        "evidence_hidden": {
                                            "type": "boolean",
                                            "description": "True when the caller does not hold the `service_evidence.view` permission (or scope): `evidence` is then null whatever the step kept."
                                        }
                                    },
                                    "required": [
                                        "step_uuid",
                                        "position",
                                        "type",
                                        "status",
                                        "critical",
                                        "reason",
                                        "attempts",
                                        "duration_ms",
                                        "observed",
                                        "assertions",
                                        "extractions",
                                        "response_shape",
                                        "evidence",
                                        "evidence_dropped",
                                        "evidence_hidden"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "status",
                            "reason",
                            "refused_at",
                            "attempts",
                            "duration_ms",
                            "steps"
                        ]
                    },
                    "result": {
                        "type": "object",
                        "description": "Each check's result, once the collector has answered it; null for a check not answered or not asked.",
                        "properties": {
                            "reachability": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The reachability check: whether the destination answered. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_reachable": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the destination answered; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why a check failed, a short name such as `timeout` or `refused`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the check took; null when not measured."
                                    }
                                },
                                "required": [
                                    "is_reachable",
                                    "reason",
                                    "error_message",
                                    "response_time_ms"
                                ]
                            },
                            "response": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The response check: the status, the body checks and each assertion. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_up": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the response check passed as a whole; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the response check failed, a short name such as `status_mismatch` or `assertion_failed`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the response took; null when not measured."
                                    },
                                    "http_status_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The HTTP status the service answered; null when there was none."
                                    },
                                    "status_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the status was one of the expected ones; null when not checked."
                                    },
                                    "body_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body checks passed; null when not checked."
                                    },
                                    "content_type_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the content type was the expected one; null when not checked."
                                    },
                                    "body_format_valid": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body was valid for the expected format; null when not checked."
                                    },
                                    "content_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The content type the service answered; null when there was none."
                                    },
                                    "response_size_bytes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The size of the response body in bytes; null when not measured."
                                    },
                                    "expected_http_statuses": {
                                        "type": "array",
                                        "description": "The statuses that count as up; empty means the status is not checked.",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "assertion_results": {
                                        "type": "array",
                                        "description": "Each assertion's result, in the order of the definition; empty when the check has no assertions or did not run.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "select": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What the assertion read; null for the whole body."
                                                },
                                                "comparison": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "How it compared."
                                                },
                                                "value": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What it compared against."
                                                },
                                                "passed": {
                                                    "type": "boolean",
                                                    "description": "Whether it passed."
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Why it did not pass, a short name; null when it passed."
                                                },
                                                "observed": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The number it read, as text; null when what it read is not a number. A text is never returned."
                                                },
                                                "observed_type": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The kind of value it read, such as `number`, `string` or `missing`; null when not known."
                                                },
                                                "observed_length": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "The length of what it read; null when not known."
                                                }
                                            },
                                            "required": [
                                                "select",
                                                "comparison",
                                                "value",
                                                "passed",
                                                "reason",
                                                "observed",
                                                "observed_type",
                                                "observed_length"
                                            ]
                                        }
                                    },
                                    "smtp_step": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the step that ended the check; null otherwise."
                                    },
                                    "smtp_reply_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last reply code; null otherwise."
                                    },
                                    "smtp_enhanced_status": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last enhanced status code; null otherwise."
                                    }
                                },
                                "required": [
                                    "is_up",
                                    "reason",
                                    "error_message",
                                    "response_time_ms",
                                    "http_status_code",
                                    "status_match",
                                    "body_match",
                                    "content_type_match",
                                    "body_format_valid",
                                    "content_type",
                                    "response_size_bytes",
                                    "expected_http_statuses",
                                    "assertion_results",
                                    "smtp_step",
                                    "smtp_reply_code",
                                    "smtp_enhanced_status"
                                ]
                            }
                        },
                        "required": [
                            "reachability",
                            "response"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "collector",
                    "requested_at",
                    "picked_up_at",
                    "completed_at",
                    "run",
                    "result"
                ],
                "title": "ServicesTestRunsStartSavedResource"
            },
            "ServicesTestRunsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The test's uuid."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `waiting` (no collector has picked it up), `picked_up`, `passed`, `failed` and `no_answer` (the collector did not answer in time)."
                    },
                    "collector": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The server that runs the test; null if it is gone.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The uuid of the server that ran the test."
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the server that ran the test."
                            }
                        },
                        "required": [
                            "uuid",
                            "name"
                        ]
                    },
                    "requested_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test was asked for.",
                        "x-wt15-instant": true
                    },
                    "picked_up_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the collector picked the test up; null before.",
                        "x-wt15-instant": true
                    },
                    "completed_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the test ended; null while it runs.",
                        "x-wt15-instant": true
                    },
                    "run": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The run of a service that does not fit a single check: how it ended and each step's outcome and response shape; null for a service that does, and while the test is still in flight.",
                        "properties": {
                            "status": {
                                "type": "string",
                                "description": "How the run ended: `passed`, `failed`, `budget_exceeded` (the run used its whole time budget) or `refused` (the collector would not run the definition)."
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "A short name for why a `budget_exceeded` or `refused` run ended so; null otherwise."
                            },
                            "refused_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "For a `refused` run, where in the definition the collector stopped, as a path such as `steps[2].type`; null otherwise."
                            },
                            "attempts": {
                                "type": "integer",
                                "description": "How many times the run was tried: 1 plus its fast retries."
                            },
                            "duration_ms": {
                                "type": "integer",
                                "description": "How long the whole run took, in milliseconds."
                            },
                            "steps": {
                                "type": "array",
                                "description": "The run's steps in order, every step present: an earlier failure leaves the later ones `skipped`; empty for a `refused` run.",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "step_uuid": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "The step's uuid; null for a step of a definition that was not saved."
                                        },
                                        "position": {
                                            "type": "integer",
                                            "description": "The step's place in the definition, from 1."
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The kind of step, such as `http`, `tcp` or `dns`."
                                        },
                                        "status": {
                                            "type": "string",
                                            "description": "One of `passed`, `failed`, `skipped` (an earlier step stopped the run) and `budget_exceeded`."
                                        },
                                        "critical": {
                                            "type": "boolean",
                                            "description": "Whether a failure of this step fails the run."
                                        },
                                        "reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why the step failed, a short name such as `timeout`; null when it did not."
                                        },
                                        "attempts": {
                                            "type": "integer",
                                            "description": "How many times the step was tried: 1 plus its retries or polls."
                                        },
                                        "duration_ms": {
                                            "type": "integer",
                                            "description": "How long the step took, retries included, in milliseconds."
                                        },
                                        "observed": {
                                            "type": "object",
                                            "description": "The numbers and flags the step saw, by type; never a text.",
                                            "additionalProperties": {
                                                "type": [
                                                    "number",
                                                    "boolean",
                                                    "string"
                                                ]
                                            }
                                        },
                                        "assertions": {
                                            "type": "array",
                                            "description": "Each assertion's outcome, in order: whether it passed, why not, and the number or flag it read.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "extractions": {
                                            "type": "array",
                                            "description": "Each extraction's outcome, in order: its name, whether the value was found and why not; never the value.",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "response_shape": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "The structure of what the step received, never its content: the status, the header names, and the body's keys, types and lengths. Null for a step that has none.",
                                            "additionalProperties": {}
                                        },
                                        "evidence": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "What the step's server answered at the step's last attempt, masked: every value the run used (Parameters, variables, extracted values, authentication) is written as a reference such as `{{param.name}}`, and a sensitive header's value is withheld. A closed object whose keys depend on the step type (each key below names the type it belongs to); at most 16,384 bytes. Null when the step kept none: `evidence_dropped` says why, or `evidence_hidden` is true.",
                                            "properties": {
                                                "attempt": {
                                                    "type": "integer",
                                                    "description": "Every type: the attempt this evidence belongs to, from 1."
                                                },
                                                "of": {
                                                    "type": "integer",
                                                    "description": "Every type: how many attempts the step made in all."
                                                },
                                                "answered": {
                                                    "type": "boolean",
                                                    "description": "Every type: false when the last attempt got no answer (a refused connection, a failed lookup, a timeout); the evidence then holds only `attempt`, `of` and, for `http`, `request`."
                                                },
                                                "withheld_reason": {
                                                    "type": "string",
                                                    "description": "Every type: `short_value` when a value the run used was too short to mask (fewer than 4 characters), so every text and list the evidence would hold is withheld."
                                                },
                                                "request": {
                                                    "type": "string",
                                                    "description": "http steps only: `<METHOD> <URL>` without its query string, at most 2,064 bytes."
                                                },
                                                "version": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the protocol version of the answer, such as `HTTP/1.1`."
                                                },
                                                "status": {
                                                    "type": "integer",
                                                    "description": "http and websocket steps only: the HTTP status of the answer (websocket: the handshake's, 101 when it upgraded)."
                                                },
                                                "headers": {
                                                    "type": "array",
                                                    "description": "http steps only: the answer's headers, lower-cased names in order, at most 64, each value at most 1,024 bytes; a sensitive header keeps its name with `value` null and `withheld` true.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The header's name, lower-cased."
                                                            },
                                                            "value": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "The header's value; null when withheld."
                                                            },
                                                            "withheld": {
                                                                "type": "boolean",
                                                                "description": "True when the value is never kept (a cookie, a token, an authorization header)."
                                                            }
                                                        },
                                                        "required": [
                                                            "name",
                                                            "value",
                                                            "withheld"
                                                        ]
                                                    }
                                                },
                                                "headers_omitted": {
                                                    "type": "integer",
                                                    "description": "http steps only: how many headers were left out to fit the 16,384-byte limit."
                                                },
                                                "body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: the first 8,192 bytes of the answer's body when it is text, masked; null otherwise."
                                                },
                                                "body_bytes": {
                                                    "type": "integer",
                                                    "description": "http steps only: the body's length in bytes."
                                                },
                                                "body_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "http steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`; null when the body is withheld."
                                                },
                                                "body_decompressed": {
                                                    "type": "boolean",
                                                    "description": "http steps only: true when the transport decompressed a gzip body, so `content-encoding` and `content-length` are absent."
                                                },
                                                "code": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: the call's status code, 0 to 16."
                                                },
                                                "message": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc and websocket steps only: the status message (grpc, at most 1,024 bytes) or the first message received (websocket, at most 8,192 bytes), masked; null when none."
                                                },
                                                "reply": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc, tcp and udp steps only: the reply, masked (grpc: JSON, at most 8,192 bytes; tcp and udp: at most 512 bytes read, written as text or hex); null when none came."
                                                },
                                                "reply_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "grpc steps only: `whole`, `first_8kb`, `step_cap` or `run_cap`; null with no reply."
                                                },
                                                "reply_bytes": {
                                                    "type": "integer",
                                                    "description": "grpc, tcp and udp steps only: the reply's length in bytes, 0 with none."
                                                },
                                                "trailers": {
                                                    "type": "array",
                                                    "description": "grpc steps only: the trailer names, lower-cased and sorted, at most 64; never a value.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "trailers_omitted": {
                                                    "type": "integer",
                                                    "description": "grpc steps only: how many trailer names were left out."
                                                },
                                                "message_kept": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "websocket steps only: `whole`, `first_8kb`, `binary`, `not_read`, `step_cap` or `run_cap`."
                                                },
                                                "message_bytes": {
                                                    "type": "integer",
                                                    "description": "websocket steps only: the first message's length in bytes, 0 with none."
                                                },
                                                "reply_encoding": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tcp and udp steps only: `text` or `hex`, how `reply` is written; null with no reply."
                                                },
                                                "records": {
                                                    "type": "array",
                                                    "description": "dns steps only: the answer records in order, at most 50.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The record type, such as `A` or `TXT`."
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The owner name with its trailing dot."
                                                            },
                                                            "ttl": {
                                                                "type": "integer",
                                                                "description": "Seconds the record may be cached."
                                                            },
                                                            "data": {
                                                                "type": "string",
                                                                "description": "The record's data as `dig` prints it, at most 1,024 bytes."
                                                            },
                                                            "data_bytes": {
                                                                "type": "integer",
                                                                "description": "The length of that form in bytes, so a cut shows."
                                                            }
                                                        },
                                                        "required": [
                                                            "type",
                                                            "name",
                                                            "ttl",
                                                            "data",
                                                            "data_bytes"
                                                        ]
                                                    }
                                                },
                                                "records_omitted": {
                                                    "type": "integer",
                                                    "description": "dns steps only: how many records were left out."
                                                },
                                                "subject": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's subject distinguished name, at most 1,024 bytes."
                                                },
                                                "issuer": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "tls steps only: the certificate's issuer distinguished name, at most 1,024 bytes."
                                                },
                                                "names": {
                                                    "type": "array",
                                                    "description": "tls steps only: the certificate's DNS names and addresses in its order, at most 50.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "names_omitted": {
                                                    "type": "integer",
                                                    "description": "tls steps only: how many names were left out."
                                                },
                                                "not_before": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate becomes valid.",
                                                    "x-wt15-instant": true
                                                },
                                                "not_after": {
                                                    "type": "integer",
                                                    "description": "Epoch milliseconds. tls steps only: epoch milliseconds, when the certificate expires.",
                                                    "x-wt15-instant": true
                                                },
                                                "protocol": {
                                                    "type": "string",
                                                    "description": "tls steps only: the protocol negotiated, such as `TLS 1.3`."
                                                },
                                                "cipher": {
                                                    "type": "string",
                                                    "description": "tls steps only: the cipher suite negotiated."
                                                },
                                                "lines": {
                                                    "type": "array",
                                                    "description": "smtp steps only: the server's reply lines in order, at most 50, each at most 512 bytes; never a line the collector sent.",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "lines_omitted": {
                                                    "type": "integer",
                                                    "description": "smtp steps only: how many lines were left out."
                                                }
                                            }
                                        },
                                        "evidence_dropped": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Why a step has no evidence when it could have: `invalid` (the collector sent evidence outside its bounds), `switched_off` (the step's evidence is switched off), `run_cap` (the run's evidence reached 98,304 bytes) or `pool` (the collector's evidence memory was full); null otherwise."
                                        },
                                        "evidence_hidden": {
                                            "type": "boolean",
                                            "description": "True when the caller does not hold the `service_evidence.view` permission (or scope): `evidence` is then null whatever the step kept."
                                        }
                                    },
                                    "required": [
                                        "step_uuid",
                                        "position",
                                        "type",
                                        "status",
                                        "critical",
                                        "reason",
                                        "attempts",
                                        "duration_ms",
                                        "observed",
                                        "assertions",
                                        "extractions",
                                        "response_shape",
                                        "evidence",
                                        "evidence_dropped",
                                        "evidence_hidden"
                                    ]
                                }
                            }
                        },
                        "required": [
                            "status",
                            "reason",
                            "refused_at",
                            "attempts",
                            "duration_ms",
                            "steps"
                        ]
                    },
                    "result": {
                        "type": "object",
                        "description": "Each check's result, once the collector has answered it; null for a check not answered or not asked.",
                        "properties": {
                            "reachability": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The reachability check: whether the destination answered. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_reachable": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the destination answered; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why a check failed, a short name such as `timeout` or `refused`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the check took; null when not measured."
                                    }
                                },
                                "required": [
                                    "is_reachable",
                                    "reason",
                                    "error_message",
                                    "response_time_ms"
                                ]
                            },
                            "response": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "description": "The response check: the status, the body checks and each assertion. Null when it was not asked or the collector has not answered it.",
                                "properties": {
                                    "is_up": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the response check passed as a whole; null when not known."
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Why the response check failed, a short name such as `status_mismatch` or `assertion_failed`; null when it passed."
                                    },
                                    "error_message": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "A short error text; null for none."
                                    },
                                    "response_time_ms": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "Milliseconds the response took; null when not measured."
                                    },
                                    "http_status_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The HTTP status the service answered; null when there was none."
                                    },
                                    "status_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the status was one of the expected ones; null when not checked."
                                    },
                                    "body_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body checks passed; null when not checked."
                                    },
                                    "content_type_match": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the content type was the expected one; null when not checked."
                                    },
                                    "body_format_valid": {
                                        "type": [
                                            "boolean",
                                            "null"
                                        ],
                                        "description": "Whether the body was valid for the expected format; null when not checked."
                                    },
                                    "content_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "The content type the service answered; null when there was none."
                                    },
                                    "response_size_bytes": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "The size of the response body in bytes; null when not measured."
                                    },
                                    "expected_http_statuses": {
                                        "type": "array",
                                        "description": "The statuses that count as up; empty means the status is not checked.",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "assertion_results": {
                                        "type": "array",
                                        "description": "Each assertion's result, in the order of the definition; empty when the check has no assertions or did not run.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "select": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What the assertion read; null for the whole body."
                                                },
                                                "comparison": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "How it compared."
                                                },
                                                "value": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "What it compared against."
                                                },
                                                "passed": {
                                                    "type": "boolean",
                                                    "description": "Whether it passed."
                                                },
                                                "reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Why it did not pass, a short name; null when it passed."
                                                },
                                                "observed": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The number it read, as text; null when what it read is not a number. A text is never returned."
                                                },
                                                "observed_type": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "The kind of value it read, such as `number`, `string` or `missing`; null when not known."
                                                },
                                                "observed_length": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "The length of what it read; null when not known."
                                                }
                                            },
                                            "required": [
                                                "select",
                                                "comparison",
                                                "value",
                                                "passed",
                                                "reason",
                                                "observed",
                                                "observed_type",
                                                "observed_length"
                                            ]
                                        }
                                    },
                                    "smtp_step": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the step that ended the check; null otherwise."
                                    },
                                    "smtp_reply_code": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last reply code; null otherwise."
                                    },
                                    "smtp_enhanced_status": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "For an `smtp` service, the last enhanced status code; null otherwise."
                                    }
                                },
                                "required": [
                                    "is_up",
                                    "reason",
                                    "error_message",
                                    "response_time_ms",
                                    "http_status_code",
                                    "status_match",
                                    "body_match",
                                    "content_type_match",
                                    "body_format_valid",
                                    "content_type",
                                    "response_size_bytes",
                                    "expected_http_statuses",
                                    "assertion_results",
                                    "smtp_step",
                                    "smtp_reply_code",
                                    "smtp_enhanced_status"
                                ]
                            }
                        },
                        "required": [
                            "reachability",
                            "response"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "status",
                    "collector",
                    "requested_at",
                    "picked_up_at",
                    "completed_at",
                    "run",
                    "result"
                ],
                "title": "ServicesTestRunsViewResource"
            },
            "ServicesUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesUpdateResource"
            },
            "ServicesVerifyResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesVerifyResource"
            },
            "ServicesVersionsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The version's uuid."
                    },
                    "version": {
                        "type": "integer",
                        "description": "The version's number."
                    },
                    "created_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When the version was saved.",
                        "x-wt15-instant": true
                    },
                    "created_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Who saved it; null when the system did.",
                        "properties": {
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The display name of the person who saved the version."
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name in this version."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The steps of this version; their write-only parts are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The variables of this version.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The run of this version: its budget and its fast retry.",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "uuid",
                    "version",
                    "created_at",
                    "created_by",
                    "name",
                    "steps",
                    "variables",
                    "run"
                ],
                "title": "ServicesVersionsViewResource"
            },
            "ServicesViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The service's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The service's name."
                    },
                    "steps": {
                        "type": "array",
                        "description": "The service's steps, in order. A step has `uuid` (assigned when it is first saved, kept across edits), `name`, `type` (`http`, `grpc`, `websocket`, `tcp`, `udp`, `icmp`, `dns`, `tls`, `smtp` or `wait`), `method`, `scheme`, `host`, `port`, `path` (no query string), `auth` (only its `type`), `options` (the ones its type uses, filled in), `assertions` (at most 20), `extract` (at most 10), `on_success`, `on_failure`, `repeat` and `keep_evidence` (whether the step keeps what its server answered as evidence). Header names and values, bodies, cookies, query strings, payloads, messages, metadata and authentication fields are never returned.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "variables": {
                        "type": "array",
                        "description": "The values generated for each run (`{{var.name}}`): each `{name, generator, …}`, never a value.",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "run": {
                        "type": "object",
                        "description": "The whole run: its budget in seconds and its fast retry.",
                        "properties": {
                            "budget_seconds": {
                                "type": "integer",
                                "description": "The whole run's budget in seconds, 5 to 300; the check interval is at least this rounded up to a minute."
                            },
                            "fast_retry": {
                                "type": "object",
                                "description": "The whole-run fast retry: how often a failed run is retried at once, and how long it waits between tries.",
                                "properties": {
                                    "count": {
                                        "type": "integer",
                                        "description": "How many times a failed run is retried at once, 0 to 3."
                                    },
                                    "interval_ms": {
                                        "type": "integer",
                                        "description": "The pause between fast retries, in milliseconds, 0 to 60,000."
                                    }
                                },
                                "required": [
                                    "count",
                                    "interval_ms"
                                ]
                            }
                        },
                        "required": [
                            "budget_seconds",
                            "fast_retry"
                        ]
                    },
                    "live_version": {
                        "type": "integer",
                        "description": "The number of the version that is live: every save writes a new one, kept for ever."
                    },
                    "check_interval_seconds": {
                        "type": "integer",
                        "description": "Seconds between two checks."
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Whether monitoring is switched on."
                    },
                    "status": {
                        "type": "string",
                        "description": "One of `up`, `down`, `pending` (no reachability result yet) and `suspended` (switched off).",
                        "enum": [
                            "suspended",
                            "pending",
                            "up",
                            "down"
                        ],
                        "x-wt15-open-enum": true
                    },
                    "health_status": {
                        "type": "string",
                        "description": "One of `unknown`, `healthy`, `warning`, `critical`: the effective health (no collectors reads `unknown`)."
                    },
                    "collector_status": {
                        "type": "string",
                        "description": "The collector pool's state: active and standby, or why it is not (`needs_collectors`, `failing`, …)."
                    },
                    "collector_status_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Why the collector pool is awaiting a collector or failing, such as `dns`, `blocked_destination` or `parameter_unavailable`; null otherwise."
                    },
                    "pool_mode": {
                        "type": "string",
                        "description": "`active_standby` or `all_members`."
                    },
                    "member_limit": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many collectors report, in `all_members` mode; null otherwise."
                    },
                    "quorum_n": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "How many members must agree, in `all_members` mode; null otherwise."
                    },
                    "collector_last_result_at": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Epoch milliseconds. When a collector last reported a result; null when none has.",
                        "x-wt15-instant": true
                    },
                    "latest_reachability": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored reachability result; null until one completes.",
                        "properties": {
                            "is_reachable": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the host and port answered within the timeout; null until completed."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The connect time in milliseconds; null when none was measured."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the reachability result completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_reachable",
                            "response_time_ms",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The latest scored response check; null until one completes.",
                        "properties": {
                            "is_up": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether every configured response check passed; null until completed."
                            },
                            "http_status_code": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The HTTP status code received; null when the request failed."
                            },
                            "status_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the status was one of the expected statuses; null when not judged."
                            },
                            "body_match": {
                                "type": [
                                    "boolean",
                                    "null"
                                ],
                                "description": "Whether the body contained the expected text; null when not judged."
                            },
                            "response_time_ms": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "The request time in milliseconds; null when none was measured."
                            },
                            "content_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The `Content-Type` header of the response; null when none was received."
                            },
                            "error_message": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The error text of a failed check, without any parameter value; null when it passed."
                            },
                            "checked_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the response check completed; null while it has not.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "is_up",
                            "http_status_code",
                            "status_match",
                            "body_match",
                            "response_time_ms",
                            "content_type",
                            "error_message",
                            "checked_at"
                        ]
                    },
                    "alarm_snooze": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "The service's own alarm snooze, which holds the alarm notifications of every alarm on the service; null when none is live. See `PUT /v1/services/{service_uuid}/alarm-snooze`.",
                        "properties": {
                            "until": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When the service's snooze ends.",
                                "x-wt15-instant": true
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "The reason given when it was set; null when none was."
                            },
                            "set_at": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Epoch milliseconds. When it was last set.",
                                "x-wt15-instant": true
                            }
                        },
                        "required": [
                            "until",
                            "reason",
                            "set_at"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags attached to the service.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    },
                    "console_url": {
                        "type": "string",
                        "description": "The service's page in the console."
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "steps",
                    "variables",
                    "run",
                    "live_version",
                    "check_interval_seconds",
                    "active",
                    "status",
                    "health_status",
                    "collector_status",
                    "collector_status_reason",
                    "pool_mode",
                    "member_limit",
                    "quorum_n",
                    "collector_last_result_at",
                    "latest_reachability",
                    "latest_response",
                    "alarm_snooze",
                    "tags",
                    "console_url"
                ],
                "title": "ServicesViewResource"
            },
            "TagGroupsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The group's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The group's name."
                    },
                    "service_type": {
                        "type": "string",
                        "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                    },
                    "editable": {
                        "type": "boolean",
                        "description": "Whether the group can be changed in the console; the system groups cannot."
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags in the group.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "service_type",
                    "editable",
                    "tags"
                ],
                "title": "TagGroupsCreateResource"
            },
            "TagGroupsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The group's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The group's name."
                    },
                    "service_type": {
                        "type": "string",
                        "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                    },
                    "editable": {
                        "type": "boolean",
                        "description": "Whether the group can be changed in the console; the system groups cannot."
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags in the group.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "service_type",
                    "editable",
                    "tags"
                ],
                "title": "TagGroupsUpdateResource"
            },
            "TagGroupsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The group's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The group's name."
                    },
                    "service_type": {
                        "type": "string",
                        "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                    },
                    "editable": {
                        "type": "boolean",
                        "description": "Whether the group can be changed in the console; the system groups cannot."
                    },
                    "tags": {
                        "type": "array",
                        "description": "The tags in the group.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uuid": {
                                    "type": "string",
                                    "description": "The tag's uuid."
                                },
                                "name": {
                                    "type": "string",
                                    "description": "The tag's name."
                                }
                            },
                            "required": [
                                "uuid",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "service_type",
                    "editable",
                    "tags"
                ],
                "title": "TagGroupsViewResource"
            },
            "TagsCreateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The tag's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The tag's name."
                    },
                    "group": {
                        "type": "object",
                        "description": "The group the tag belongs to; it is set when the tag is created and never changes.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The group's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The group's name."
                            },
                            "service_type": {
                                "type": "string",
                                "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                            },
                            "editable": {
                                "type": "boolean",
                                "description": "Whether the group can be changed in the console; the system groups cannot."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "service_type",
                            "editable"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "group"
                ],
                "title": "TagsCreateResource"
            },
            "TagsUpdateResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The tag's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The tag's name."
                    },
                    "group": {
                        "type": "object",
                        "description": "The group the tag belongs to; it is set when the tag is created and never changes.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The group's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The group's name."
                            },
                            "service_type": {
                                "type": "string",
                                "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                            },
                            "editable": {
                                "type": "boolean",
                                "description": "Whether the group can be changed in the console; the system groups cannot."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "service_type",
                            "editable"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "group"
                ],
                "title": "TagsUpdateResource"
            },
            "TagsViewResource": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "description": "The tag's uuid."
                    },
                    "name": {
                        "type": "string",
                        "description": "The tag's name."
                    },
                    "group": {
                        "type": "object",
                        "description": "The group the tag belongs to; it is set when the tag is created and never changes.",
                        "properties": {
                            "uuid": {
                                "type": "string",
                                "description": "The group's uuid."
                            },
                            "name": {
                                "type": "string",
                                "description": "The group's name."
                            },
                            "service_type": {
                                "type": "string",
                                "description": "What the group's tags can be put on: one of `none`, `domain`, `service`, `server`, `log_source`, `custom_metric`, `database_instance`."
                            },
                            "editable": {
                                "type": "boolean",
                                "description": "Whether the group can be changed in the console; the system groups cannot."
                            }
                        },
                        "required": [
                            "uuid",
                            "name",
                            "service_type",
                            "editable"
                        ]
                    }
                },
                "required": [
                    "uuid",
                    "name",
                    "group"
                ],
                "title": "TagsViewResource"
            }
        }
    }
}
