{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-ext-checks-get-response-schema.json",
  "title": "ExtChecksGetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-checks-api-openapi.yml#/components/schemas/ExtChecksGetResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExtCheckResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/SelfLinks"
        }
      ]
    }
  },
  "required": [
    "data",
    "_links"
  ],
  "$defs": {
    "ExtCheckResponse": {
      "type": "object",
      "properties": {
        "internal": {
          "type": "boolean",
          "description": "Is internal (not shown to the customer)"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "skipped",
            "cancelled",
            "failed",
            "warn",
            "successful"
          ],
          "description": "Status of the handle"
        },
        "objectType": {
          "type": "string",
          "enum": [
            "vserver"
          ],
          "description": "Object type to be handled"
        },
        "objectId": {
          "type": "string",
          "description": "ID of the object, to be handled"
        },
        "checkId": {
          "type": "number",
          "description": "Check's id"
        },
        "checkCollectionId": {
          "type": "number",
          "description": "ID of check collection if started in scope of a collection"
        },
        "checkTemplateId": {
          "type": "number",
          "description": "Check Template for this check"
        },
        "name": {
          "type": "string",
          "description": "Name of this check template"
        },
        "note": {
          "type": "string",
          "description": "Note to be shown to the customer"
        },
        "internalNote": {
          "type": "string",
          "description": "Note which is shown only internally to the agent"
        },
        "durationMs": {
          "type": "number",
          "description": "Duration of the check in milliseconds"
        },
        "remedyTemplates": {
          "description": "Remedy templates linked to this check template",
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemedyTemplateSummary"
          }
        },
        "createdDate": {
          "type": "string",
          "format": "date-time",
          "description": "Creation date"
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "Modify date"
        },
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Customer id"
        }
      },
      "required": [
        "internal",
        "status",
        "objectType",
        "objectId",
        "checkId",
        "checkCollectionId",
        "checkTemplateId",
        "name",
        "note",
        "internalNote",
        "durationMs",
        "remedyTemplates",
        "createdDate",
        "modifiedDate",
        "tenantId",
        "customerId"
      ]
    },
    "RemedyTemplateSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "description": "Remedy template id"
        },
        "name": {
          "type": "string",
          "enum": [
            "dummy_remedy_name",
            "success_remedy_name",
            "fail_remedy_name",
            "instance_restart_remedy_name",
            "instance_firewall_detach_remedy_name",
            "instance_live_migration_remedy_name"
          ],
          "description": "Translation key for the remedy name. Possible values: dummy_remedy_name, success_remedy_name, fail_remedy_name, instance_restart_remedy_name, instance_firewall_detach_remedy_name, instance_live_migration_remedy_name"
        },
        "description": {
          "type": "string",
          "enum": [
            "dummy_remedy_description",
            "success_remedy_description",
            "fail_remedy_description",
            "instance_restart_remedy_description",
            "instance_firewall_detach_remedy_description",
            "instance_live_migration_remedy_description"
          ],
          "description": "Translation key for the remedy description. Possible values: dummy_remedy_description, success_remedy_description, fail_remedy_description, instance_restart_remedy_description, instance_firewall_detach_remedy_description, instance_live_migration_remedy_description"
        }
      },
      "required": [
        "id",
        "name",
        "description"
      ]
    },
    "SelfLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        }
      },
      "required": [
        "self"
      ]
    }
  }
}