{
  "description": "This type represents a threshold.\n",
  "type": "object",
  "required": [
    "id",
    "objectType",
    "objectInstanceId",
    "subjObjectInstanceIds",
    "criteria",
    "_links",
    "callbackUri"
  ],
  "properties": {
    "id": {
      "description": "An identifier with the intention of being globally unique.\n",
      "type": "string"
    },
    "objectType": {
      "description": "Type of measured object. The applicable measured object type for a measurement  is defined in clause 8.2 of ETSI GS NFV-IFA 031.\n",
      "type": "string"
    },
    "objectInstanceId": {
      "description": "An identifier with the intention of being globally unique.\n",
      "type": "string"
    },
    "subjObjectInstanceIds": {
      "description": "Identifiers of the sub-object instances of the measured object instance  associated with this threshold.  May be present if a sub-object is defined in clause 8.2 of ETSI GS NFV-IFA 031 for the related measured object type. If this attribute is absent and a sub-object is defined in clause 8.2 of ETSI  GS NFV-IFA 031 for the related measured object type, thresholds are set for  all sub-object instances of the measured object instance.\n",
      "type": "array",
      "items": {
        "description": "An identifier that is unique for the respective type within a NFV-MANO functional entity, but that need not be globally unique. Representation: string of variable length..\n",
        "type": "string"
      }
    },
    "criteria": {
      "description": "This type represents criteria that define a threshold. * NOTE 1:\tIn the present document, simple thresholds are defined. The definition of additional threshold\n            types is left for future specification.\n* NOTE 2:\tThe hysteresis is defined to prevent storms of threshold crossing notifications.\n            When processing a request to create a threshold, implementations should enforce a suitable minimum\n            value for this attribute (e.g. override the value or reject the request).\n",
      "type": "object",
      "required": [
        "performanceMetric",
        "thresholdType"
      ],
      "properties": {
        "performanceMetric": {
          "description": "Defines the performance metric associated with the threshold.  This attributeΓÇÖs value shall contain the related \"Measurement Name\" values  as defined in clause 8.4 of ETSI GS NFV-IFA 031 \n",
          "type": "string"
        },
        "thresholdType": {
          "description": "Type of threshold. This attribute determines which other attributes are  present in the data structure. Permitted values:\n  - SIMPLE: Single-valued static threshold\n\nIn the present document, simple thresholds are defined. The definition  of additional threshold types is left for future specification.\n",
          "type": "string",
          "enum": [
            "SIMPLE"
          ]
        },
        "simpleThresholdDetails": {
          "description": "Details of a simple threshold. Shall be present if thresholdType=\"SIMPLE\".\n",
          "type": "object",
          "properties": {
            "thresholdValue": {
              "description": "A number defined in IETF RFC 8259.\n",
              "type": "number"
            },
            "hysteresis": {
              "description": "A number defined in IETF RFC 8259.\n",
              "type": "number"
            }
          },
          "required": [
            "thresholdValue",
            "hysteresis"
          ]
        }
      }
    },
    "callbackUri": {
      "description": "String formatted according to IETF RFC 3986.\n",
      "type": "string"
    },
    "_links": {
      "description": "Links for this resource.\n",
      "type": "object",
      "properties": {
        "self": {
          "description": "This type represents a link to a resource using an absolute URI.\n",
          "type": "object",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "description": "String formatted according to IETF RFC 3986.\n",
              "type": "string"
            }
          }
        },
        "object": {
          "description": "This type represents a link to a resource using an absolute URI.\n",
          "type": "object",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "description": "String formatted according to IETF RFC 3986.\n",
              "type": "string"
            }
          }
        }
      },
      "required": [
        "self"
      ]
    }
  }
}