{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/johnson-controls/json-schema/johnson-controls-objects-attribute-samples-response-schema.json",
  "title": "Samples",
  "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/objectsAttributeSamplesResponse",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "The total number of items in the collection."
    },
    "schema": {
      "type": "object",
      "description": "JSON Schema definition of the items property."
    },
    "items": {
      "type": "array",
      "description": "Collection of time series samples.",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "string"
              }
            ]
          },
          "sampleTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time that the sample was recorded."
          },
          "reliability": {
            "type": "string",
            "x-metasysType": "enum",
            "x-metasysEnum": "reliabilityEnumSet",
            "description": "Indicator of the reliability of the sample.\n\nIf at the time of this sample's recording the object had the\nBACnet Status flag of \"FAULT\" set to `true`, this value will be\nset to \"reliabilityEnumSet.unreliable\". Otherwise, the value will\nbe set to \"reliabilityEnumSet.reliable\".\n\n\nThe values for this property come from the `reliabilityEnumSet` enumeration.\nFind the definition of `reliabilityEnumSet` at the relative URL of `/schemas/enums/reliabilityEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration."
          }
        },
        "required": [
          "value",
          "sampleTime",
          "reliability"
        ]
      }
    },
    "self": {
      "type": "string",
      "format": "uri",
      "description": "A link to this collection of value samples."
    },
    "objectUrl": {
      "type": "string",
      "format": "uri",
      "description": "A link to the object that is collecting and storing the samples."
    },
    "attribute": {
      "type": "string",
      "description": "The sampled attribute."
    }
  },
  "required": [
    "total",
    "schema",
    "items",
    "self",
    "objectUrl",
    "attribute"
  ]
}