{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/hooks/v1/list-lastFires-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "List of lastFires\n",
  "properties": {
    "continuationToken": {
      "description": "A continuation token is returned if there are more results than listed\nhere. You can optionally provide the token in the request payload to\nload the additional results.\n",
      "title": "Continuation Token",
      "type": "string"
    },
    "lastFires": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "description": "The error that occurred when firing the task. This is typically,\nbut not always, an API error message.\n",
            "type": "string"
          },
          "firedBy": {
            "enum": [
              "schedule",
              "triggerHook",
              "triggerHookWithToken",
              "pulseMessage"
            ],
            "type": "string"
          },
          "hookGroupId": {
            "maxLength": 1000,
            "minLength": 1,
            "pattern": "^([a-zA-Z0-9-_]*)$",
            "type": "string"
          },
          "hookId": {
            "maxLength": 1000,
            "minLength": 1,
            "pattern": "^([a-zA-Z0-9-_/]*)$",
            "type": "string"
          },
          "result": {
            "description": "Information about success or failure of firing of the hook",
            "enum": [
              "success",
              "error"
            ],
            "type": "string"
          },
          "taskCreateTime": {
            "description": "Time when the task was created",
            "format": "date-time",
            "type": "string"
          },
          "taskId": {
            "description": "Unique task identifier, this is UUID encoded as\n[URL-safe base64](http://tools.ietf.org/html/rfc4648#section-5) and\nstripped of `=` padding.\n",
            "pattern": "^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$",
            "title": "Task Identifier",
            "type": "string"
          },
          "taskState": {
            "description": "Task state derived from tasks last run status.\nThis value can change through time as tasks are being scheduled, run and re-run.\nIf task doesn't exist or was just created, this value will default to `unknown`.\n",
            "enum": [
              "unknown",
              "unscheduled",
              "pending",
              "running",
              "completed",
              "failed",
              "exception"
            ],
            "type": "string"
          }
        },
        "required": [
          "hookGroupId",
          "hookId",
          "taskId",
          "firedBy",
          "taskCreateTime",
          "result",
          "taskState",
          "error"
        ],
        "type": "object"
      },
      "title": "LastFires",
      "type": "array",
      "uniqueItems": false
    }
  },
  "required": [
    "lastFires"
  ],
  "title": "LastFires list",
  "type": "object"
}