{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-ext-check-collections-list-response-schema.json",
  "title": "ExtCheckCollectionsListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-check-collections-api-openapi.yml#/components/schemas/ExtCheckCollectionsListResponse",
  "type": "object",
  "properties": {
    "_pagination": {
      "description": "Data about pagination like how many results, pages, page size.",
      "allOf": [
        {
          "$ref": "#/$defs/PaginationMeta"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExtCheckCollectionResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/Links"
        }
      ]
    }
  },
  "required": [
    "_pagination",
    "data",
    "_links"
  ],
  "$defs": {
    "CheckCollectionCheckTemplates": {
      "type": "object",
      "properties": {
        "checkId": {
          "type": "number",
          "description": "Id of the check"
        },
        "checkTemplateId": {
          "type": "number",
          "description": "Id of the check template"
        },
        "runConcurrent": {
          "type": "boolean",
          "description": "Can this check template be run in parallel with other checks"
        },
        "ignoreErrors": {
          "type": "boolean",
          "description": "Will errors be ignored when running this check template"
        },
        "checkTemplates": {
          "description": "Nested check templates",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CheckCollectionCheckTemplates"
          }
        }
      },
      "required": [
        "checkId",
        "checkTemplateId",
        "runConcurrent",
        "ignoreErrors"
      ]
    },
    "ExtCheckCollectionResponse": {
      "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"
        },
        "checkCollectionId": {
          "type": "number",
          "description": "Check collection's id"
        },
        "checkCollectionTemplateId": {
          "type": "number",
          "description": "Check Collection Template for this check collection"
        },
        "checkTemplates": {
          "description": "Check templates which are part of this collection template",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CheckCollectionCheckTemplates"
          }
        },
        "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"
        },
        "checks": {
          "description": "Checks performed in this check collection",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtCheckResponse"
          }
        }
      },
      "required": [
        "internal",
        "status",
        "objectType",
        "objectId",
        "checkCollectionId",
        "checkCollectionTemplateId",
        "checkTemplates",
        "createdDate",
        "modifiedDate",
        "tenantId",
        "customerId",
        "checks"
      ]
    },
    "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"
      ]
    },
    "Links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        },
        "first": {
          "type": "string",
          "description": "Link to first page, if applicable."
        },
        "previous": {
          "type": "string",
          "description": "Link to previous page, if applicable."
        },
        "next": {
          "type": "string",
          "description": "Link to next page, if applicable."
        },
        "last": {
          "type": "string",
          "description": "Link to last page, if applicable."
        }
      },
      "required": [
        "self",
        "first",
        "last"
      ]
    },
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "size": {
          "type": "number",
          "description": "Number of elements per page."
        },
        "totalElements": {
          "type": "number",
          "description": "Number of overall matched elements."
        },
        "totalPages": {
          "type": "number",
          "description": "Overall number of pages."
        },
        "page": {
          "type": "number",
          "description": "Current number of page."
        }
      },
      "required": [
        "size",
        "totalElements",
        "totalPages",
        "page"
      ]
    },
    "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"
      ]
    }
  }
}