{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/johnson-controls/json-schema/johnson-controls-trended-attributes-response-schema.json",
  "title": "Time Series Get Trended Attributes Retrieval Success",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/johnson-controls-time-series-api-openapi.yml#/components/schemas/trendedAttributesResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "total": {
      "type": "integer",
      "description": "The total number of items in the collection."
    },
    "items": {
      "type": "array",
      "description": "The collection of available samples.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "samplesUrl": {
            "type": "string",
            "format": "uri",
            "description": "A link to this collection of object value samples."
          },
          "attribute": {
            "type": "string",
            "x-metasysType": "enum",
            "x-metasysEnum": "attributeEnumSet",
            "description": "The attribute on which the samples were taken.\n\nThe values for this property come from the `attributeEnumSet` enumeration.\nFind the definition of `attributeEnumSet` at the relative URL of `/schemas/enums/attributeEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration."
          },
          "attributeSchema": {
            "type": "object",
            "description": "JSON Schema of the attribute being sampled."
          },
          "sampledBy": {
            "type": "array",
            "description": "A list of objects that are sampling this attribute.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "self": {
                  "$ref": "#/$defs/self"
                },
                "item": {
                  "type": "object",
                  "description": "JSON Schema definition of an object.",
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "guid",
                      "description": "The identifier of an object."
                    },
                    "itemReference": {
                      "type": "string",
                      "description": "The fully qualified reference of an object."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of an object."
                    },
                    "enable": {
                      "type": "boolean",
                      "description": "The status of an object."
                    }
                  },
                  "required": [
                    "id",
                    "itemReference",
                    "name",
                    "enable"
                  ]
                }
              },
              "required": [
                "self",
                "item"
              ]
            }
          }
        },
        "required": [
          "samplesUrl",
          "attribute",
          "attributeSchema",
          "sampledBy"
        ]
      }
    },
    "self": {
      "type": "string",
      "format": "uri",
      "description": "A link to this collection."
    }
  },
  "required": [
    "total",
    "items",
    "self"
  ],
  "$defs": {
    "self": {
      "type": "string",
      "description": "A link to this object.",
      "format": "uri",
      "readOnly": true
    }
  }
}