{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-infrastructure-entities-result-schema.json",
  "title": "InfrastructureEntitiesResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-analyze-api-openapi.yml#/components/schemas/InfrastructureEntitiesResult",
  "type": "object",
  "properties": {
    "adjustedTimeframe": {
      "$ref": "#/$defs/AdjustedTimeframe"
    },
    "canLoadMore": {
      "type": "boolean"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InfrastructureItem"
      }
    },
    "next": {
      "$ref": "#/$defs/InfraExploreCursor"
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "description": "represents the total number of results",
      "minimum": 0
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "AdjustedTimeframe": {
      "type": "object",
      "description": "Time frame provided in API request is slightly adjusted in response for faster API response.\nFor example, In request payload, if timeframe is 08:03 - 14:03, which is a 6 hour window size. It is adjusted to 08:05 - 14:00\nAnother example, In request payload, if timeframe is 08:20 - 08:20 (next day) which is a 24h window size. It is adjusted to 08:30 - 08:00 (next day)\n",
      "properties": {
        "to": {
          "type": "integer",
          "format": "int64",
          "description": "end of timeframe expressed as the Unix epoch time in milliseconds. Eg: `ISO 8601` standard time `2024-06-27T05:05:55.615Z` can be represented as `1719464755615` in Unix epoch time in milliseconds."
        },
        "windowSize": {
          "type": "integer",
          "format": "int64",
          "description": "windowSize in milliseconds",
          "minimum": 0
        }
      },
      "required": [
        "to"
      ]
    },
    "EntityHealthInfo": {
      "type": "object",
      "properties": {
        "maxSeverity": {
          "type": "number",
          "format": "double",
          "maximum": 10,
          "minimum": 0
        },
        "openIssues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Event"
          },
          "uniqueItems": true
        }
      },
      "required": [
        "openIssues"
      ]
    },
    "Event": {
      "type": "object",
      "properties": {
        "end": {
          "type": "integer",
          "format": "int64",
          "minimum": 1
        },
        "endpointServiceId": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "entityId": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "entityType": {
          "type": "string",
          "enum": [
            "Entity10",
            "App20",
            "Service20",
            "Endpoint20",
            "Website",
            "Synthetic",
            "MobileApp",
            "Log"
          ]
        },
        "eventConfigurationType": {
          "type": "string"
        },
        "id": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "longFormPluginId": {
          "type": "string"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "metricAccessId": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "plugin": {
          "type": "string",
          "maxLength": 256,
          "minLength": 0
        },
        "problem": {
          "$ref": "#/$defs/Problem"
        },
        "rca": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "shortCode": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "start": {
          "type": "integer",
          "format": "int64",
          "minimum": 1
        },
        "state": {
          "type": "string",
          "maxLength": 8,
          "minLength": 0
        },
        "type": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        }
      },
      "required": [
        "entityId",
        "id",
        "plugin",
        "state",
        "type"
      ]
    },
    "InfraExploreCursor": {
      "type": "object",
      "description": "cursor to use between successive queries"
    },
    "InfrastructureItem": {
      "type": "object",
      "properties": {
        "entityHealthInfo": {
          "$ref": "#/$defs/EntityHealthInfo"
        },
        "label": {
          "type": "string"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        },
        "plugin": {
          "type": "string"
        },
        "snapshotId": {
          "type": "string"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "time": {
          "type": "integer",
          "format": "int64",
          "description": "Epoch time in milliseconds if the snapshot is offline. Set to 9223372036854775807 if the snapshot is online."
        }
      }
    },
    "Problem": {
      "type": "object",
      "properties": {
        "fixSuggestion": {
          "type": "string",
          "maxLength": 65536,
          "minLength": 0
        },
        "id": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "problemText": {
          "type": "string",
          "maxLength": 2048,
          "minLength": 0
        },
        "severity": {
          "type": "integer",
          "format": "int32"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}