{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-custom-issue-definitions-response-schema.json",
  "title": "CustomIssueDefinitionsResponse",
  "description": "The response object for the custom issues definition.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-customissuedefinitions-api-openapi.yml#/components/schemas/CustomIssueDefinitionsResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "description": "Successfully return list of custom issues definition",
      "items": {
        "$ref": "#/$defs/CustomIssueDefinitionDetail"
      }
    },
    "page": {
      "$ref": "#/$defs/PaginationResponse"
    },
    "version": {
      "type": "string"
    }
  },
  "$defs": {
    "CustomIssueDefinitionDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Custom issue definition unique identifier in Uuid format",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the issue definition"
        },
        "description": {
          "type": "string",
          "description": "The description about the issue definition"
        },
        "profileId": {
          "$ref": "#/$defs/profileId"
        },
        "triggerId": {
          "$ref": "#/$defs/triggerId"
        },
        "rules": {
          "$ref": "#/$defs/rules"
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Indicates whether the issue definition is enabled or not."
        },
        "priority": {
          "type": "string",
          "description": "The Issue definition priority level",
          "enum": [
            "P1",
            "P2",
            "P3",
            "P4"
          ]
        },
        "isDeletable": {
          "type": "boolean",
          "description": "This field indicates whether the issue definition is deletable. Only the global profile issue definitions can be deleted. When deleting an issue definition, the respective custom profile definition will also be automatically removed.",
          "readOnly": true
        },
        "isNotificationEnabled": {
          "type": "boolean",
          "description": "Indicates whether the Custom Issue Notification subscription is enabled or not."
        },
        "createdTime": {
          "type": "integer",
          "description": "The issue created timestamp in Milliseconds. It must be specified in UNIX epochtime in milliseconds",
          "format": "int64",
          "readOnly": true
        },
        "lastUpdatedTime": {
          "type": "integer",
          "description": "The issue last updated timestamp in Milliseconds.",
          "format": "int64",
          "readOnly": true
        }
      }
    },
    "PaginationResponse": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The reference to the limit applied in the Pagination   Request."
        },
        "offset": {
          "type": "integer",
          "description": "The reference to the record offset applied in the   Pagination Request."
        },
        "count": {
          "type": "integer",
          "description": "Total number of records related to the resource after   applying applicable filtering"
        },
        "sortBy": {
          "type": "array",
          "description": "Reference to the sortBy that was applied in the Pagination   Request.",
          "items": {
            "$ref": "#/$defs/PaginationResponse_sortBy"
          }
        }
      }
    },
    "PaginationResponse_sortBy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Field name by which sort is requested"
        },
        "order": {
          "type": "string",
          "description": "Sort order. 'asc' for ascending and 'desc' for   descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "List of field names and corresponding order used to sort   the records."
    },
    "profileId": {
      "type": "string",
      "description": "The profile id associated issue definitions",
      "readOnly": true,
      "default": "global"
    },
    "rule": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the rules. For now, the rule can be defined based on the  syslog.",
          "readOnly": true
        },
        "severity": {
          "type": "integer",
          "description": "The syslog severity level.\n| Severity Level        | Name |\n| ---------------------- | ----------- |\n|0| Emergency|\n|1| Alert|\n|2| Critical|\n|3| Error|\n|4| Warning|\n|5| Notice|\n|6| Info|\n",
          "format": "int32",
          "enum": [
            0,
            1,
            2,
            3,
            4,
            5,
            6
          ]
        },
        "facility": {
          "type": "string",
          "description": "The syslog facility name"
        },
        "mnemonic": {
          "type": "string",
          "description": "The syslog mnemonic name"
        },
        "pattern": {
          "type": "string",
          "description": "Message pattern is expected to contain just message text with dynamic values replaced with ``*.``<br/><br/>For example, in Syslog message \"111769: *08 Mar 2024 19:59:14 GMT: %BGP-5-ADJCHANGE: neighbor 11.10.10.1 Down\" is \"neighbor 11.10.10.1 Down\".<br/><br/>- Input ``neighbor 11.10.10.1 *``, if you expect to track BGP up/down messages with remote 11.10.10.1.<br/><br/>- Input ``neighbor * Down``, if you expect to track all BGP down messages with all remote IPs.<br/><br/>- Input ``neighbor * *``, if you expect to track all BGP down/up messages with all remote IPs\n"
        },
        "occurrences": {
          "type": "integer",
          "description": "The number of occurrences count required for the issue to trigger."
        },
        "durationInMinutes": {
          "type": "integer",
          "description": "The duration in minutes for which the issue must persist to trigger. The maximum supported duration is 15 minutes."
        }
      }
    },
    "rules": {
      "type": "array",
      "description": "The list of more than one rule definition. Currently supported limit of rule is 1. Keep it as array for future usage.",
      "items": {
        "$ref": "#/$defs/rule"
      }
    },
    "triggerId": {
      "type": "string",
      "description": "The common trigger definition id",
      "format": "uuid",
      "readOnly": true
    }
  }
}