{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/turbonomic/json-schema/turbonomic-group-api-dto-schema.json",
  "title": "GroupApiDTO",
  "description": "Model to describe a Group: a collection of Entities. Subclasses include BillingFamilyApiDTO and ResourceGroupApiDTO.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/turbonomic-openapi.yml#/components/schemas/GroupApiDTO",
  "type": "object",
  "properties": {
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "uuid": {
      "type": "string"
    },
    "displayName": {
      "type": "string",
      "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
    },
    "className": {
      "type": "string"
    },
    "membersCount": {
      "type": "integer",
      "format": "int32",
      "description": "Number of members of the Group"
    },
    "entitiesCount": {
      "type": "integer",
      "format": "int32",
      "description": "Number of entities of the Group"
    },
    "costPrice": {
      "type": "number",
      "format": "float",
      "description": "Cost of the Group per Hour: sum of the costs of the member entities"
    },
    "groupType": {
      "type": "string",
      "description": "The type of service entities comprising the group"
    },
    "severity": {
      "type": "string",
      "description": "Calculated using the highest severity of the member entities",
      "enum": [
        "UNKNOWN",
        "NORMAL",
        "MINOR",
        "MAJOR",
        "CRITICAL"
      ]
    },
    "state": {
      "type": "string",
      "description": "Calculated using the state of the member entities",
      "enum": [
        "UNKNOWN",
        "ACTIVE"
      ]
    },
    "environmentType": {
      "type": "string",
      "description": "Environment type",
      "enum": [
        "HYBRID",
        "CLOUD",
        "ONPREM",
        "UNKNOWN"
      ]
    },
    "scope": {
      "type": "array",
      "description": "Scope within which the criteria have to be applied to the list of specific entity type",
      "items": {
        "type": "string"
      }
    },
    "isStatic": {
      "type": "boolean",
      "description": "True if group is static"
    },
    "logicalOperator": {
      "type": "string",
      "description": "Logical operator to be applied across all the criteria used to create dynamic group.It can take values 'AND', 'OR', 'XOR'"
    },
    "criteriaList": {
      "type": "array",
      "description": "Criteria list of elements, expression type, expression value, seType - needed to create a dynamic group",
      "items": {
        "$ref": "#/$defs/FilterApiDTO"
      }
    },
    "memberUuidList": {
      "type": "array",
      "description": "Uuid list for members of the group - if group is static",
      "items": {
        "type": "string"
      }
    },
    "realtimeMarketReference": {
      "$ref": "#/$defs/BaseApiDTO"
    },
    "stats": {
      "type": "array",
      "description": "Collected monitoring statistics",
      "items": {
        "$ref": "#/$defs/StatSnapshotApiDTO"
      }
    },
    "temporary": {
      "type": "boolean",
      "description": "The Group is only valid for a limited period of time, it will be removed automatically"
    },
    "activeEntitiesCount": {
      "type": "integer",
      "format": "int32",
      "description": "The active entities count of a group"
    },
    "cloudType": {
      "type": "string",
      "description": "Type of the Cloud if environmentType = CLOUD.[DEPRECATED - Use: targetType",
      "enum": [
        "AWS",
        "AZURE",
        "GCP",
        "HYBRID",
        "UNKNOWN",
        "OCI",
        "IBM_CLOUD"
      ]
    },
    "source": {
      "$ref": "#/$defs/TargetApiDTO"
    },
    "memberTypes": {
      "type": "array",
      "description": "The types for immediate members of the group.",
      "items": {
        "type": "string"
      }
    },
    "entityTypes": {
      "type": "array",
      "description": "The types of entities contained in the group. This includes types of entities in nested levels of the group if the group is nested.",
      "items": {
        "type": "string"
      }
    },
    "aspects": {
      "type": "object",
      "description": "Additional info about the Group categorized as Aspects",
      "additionalProperties": {
        "$ref": "#/$defs/EntityAspect"
      }
    },
    "vendorIds": {
      "type": "object",
      "description": "The mapping of target identifier to vendor-provided identity of this group, if the group is discovered",
      "additionalProperties": {
        "type": "string"
      }
    },
    "groupOrigin": {
      "type": "string",
      "description": "Origin of entities and groups",
      "enum": [
        "DISCOVERED",
        "USER",
        "SYSTEM"
      ]
    },
    "targetType": {
      "type": "string",
      "description": "Target type of group entities.  TargetType UNKNOWN if multiple target types"
    },
    "createdAt": {
      "type": "integer",
      "format": "int64",
      "description": "The time at which the group was created, in epoch seconds"
    },
    "updatedAt": {
      "type": "integer",
      "format": "int64",
      "description": "The time at which the group was last updated, in epoch seconds"
    },
    "createdBy": {
      "type": "integer",
      "format": "int64",
      "description": "The OID of the user who created this group"
    },
    "updatedBy": {
      "type": "integer",
      "format": "int64",
      "description": "The OID of the user who last updated this group"
    },
    "description": {
      "type": "string",
      "description": "The description of the group. Maximum 255 characters."
    },
    "groupClassName": {
      "type": "string"
    }
  },
  "$defs": {
    "BaseApiDTO": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "uuid": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
        },
        "className": {
          "type": "string"
        }
      },
      "description": "Basic information of an entity"
    },
    "EntityAspect": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "sli": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Parent class for entity aspects"
    },
    "FilterApiDTO": {
      "type": "object",
      "properties": {
        "expVal": {
          "type": "string",
          "description": "Regex to be searched for"
        },
        "expType": {
          "type": "string",
          "description": "Type of comparator used while building a filter, the allowable values are 'EQ', 'NEQ', 'RXEQ', 'RXNEQ' for strings, 'EQ', 'NEQ', 'GT', 'LT', 'GTE', 'LTE' for numbers'EX', 'NEX' for inclusion in a set of options",
          "enum": [
            "EQ",
            "NEQ",
            "GT",
            "LT",
            "GTE",
            "LTE",
            "RXEQ",
            "RXNEQ",
            "EX",
            "NEX"
          ]
        },
        "filterType": {
          "type": "string",
          "description": "Internal name for criterion such as pmsByName, pmsByDC, storageByPMCluster"
        },
        "caseSensitive": {
          "type": "boolean",
          "description": "Whether the regex is case sensitive"
        },
        "entityType": {
          "type": "string",
          "description": "The entity type which this filter should be applied on"
        },
        "singleLine": {
          "type": "boolean",
          "description": "Whether the regex dot matches all characters including line break characters. Defaults to false."
        }
      },
      "description": "Model used to filter Groups or Entities, every filter is built using a filterType + expType + expVal"
    },
    "InputFieldApiDTO": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "uuid": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
        },
        "className": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Name of the field, used for field identification."
        },
        "value": {
          "type": "string",
          "description": "Field value. Used if field holds primitive value (String, number or boolean"
        },
        "defaultValue": {
          "type": "string",
          "description": "Default value of the field"
        },
        "isMandatory": {
          "type": "boolean",
          "description": "Whether the field is mandatory. Valid targets must have all the mandatory fields set."
        },
        "isSecret": {
          "type": "boolean",
          "description": "Whether the field is secret. This means, that field value is stored in an encrypted value and not shown in any logs."
        },
        "isMultiline": {
          "type": "boolean",
          "description": "Whether the field can have multiline values. Can be only true when the valueType field is set to STRING."
        },
        "isTargetDisplayName": {
          "type": "boolean",
          "description": "Whether the field is used as a target display name."
        },
        "valueType": {
          "type": "string",
          "description": "Type of the value this field holds",
          "enum": [
            "STRING",
            "BOOLEAN",
            "NUMERIC",
            "INTEGER",
            "LIST",
            "OBJECT",
            "GROUP_SCOPE",
            "SECRET"
          ]
        },
        "specificValueType": {
          "type": "string",
          "description": "A specific Type of the value that can't be described in valueType"
        },
        "description": {
          "type": "string",
          "description": "Additional information about what the input to the field should be"
        },
        "verificationRegex": {
          "type": "string",
          "description": "The regex pattern that needs to be satisfied for the input field text"
        },
        "groupProperties": {
          "type": "array",
          "description": "Group scope structure, filled if this field represents group scope value",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "allowedValues": {
          "type": "array",
          "description": "Potential values for this field. If nonempty, value must be one of the choices in the list.",
          "items": {
            "type": "string"
          }
        },
        "dependencyKey": {
          "type": "string",
          "description": "A key of a dependency account value field. If this value is not set, field is declared without any dependencies. If an annotated account value field has a dependency it means that it's presence is logically driven by the dependency field. \n This field is expected to be available ONLY when field specified by {@code dependencyKey} has value {@code dependencyValue}. If this field is not available because of unmet dependency, this field will not be validated and stored in target configuration data. If a dependency for this field is unmet value of this field will be null"
        },
        "dependencyValue": {
          "type": "string",
          "description": "Value of a field of account values referenced by {@code dependencyKey} to enable (activate) the annotated field. Value is specified using a regular expression. Specifying just a string will also work correctly. \nIf a referenced account value field is a boolean field, only \"true\" or \"false\" are supported as values.\n If a referenced account value is an enumeration ({@code allowedValues} is specified) this value is only restricted to contain a subset of the allowed values united using a pipe {@code one|two|four}."
        },
        "secretManager": {
          "$ref": "#/$defs/SecretManagerInfoApiDTO"
        }
      },
      "description": "Basic information of an entity"
    },
    "Link": {
      "type": "object",
      "properties": {
        "rel": {
          "$ref": "#/$defs/LinkRelation"
        },
        "href": {
          "type": "string",
          "readOnly": true
        },
        "hreflang": {
          "type": "string",
          "readOnly": true
        },
        "media": {
          "type": "string",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "readOnly": true
        },
        "deprecation": {
          "type": "string",
          "readOnly": true
        },
        "profile": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "LinkRelation": {
      "type": "object"
    },
    "PatchedTargetDataApiDTO": {
      "type": "object",
      "required": [
        "patchedFields",
        "probeType"
      ],
      "properties": {
        "probeType": {
          "type": "string",
          "description": "Probe type of the patched target."
        },
        "patchedFields": {
          "type": "array",
          "description": "Patched target fields.",
          "items": {
            "$ref": "#/$defs/PatchedTargetFieldApiDTO"
          }
        }
      },
      "description": "Model to describe a patched target data."
    },
    "PatchedTargetFieldApiDTO": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string",
          "description": "Patched field name."
        },
        "fieldValue": {
          "type": "string",
          "description": "Patched field value."
        }
      },
      "description": "Model to describe a field in patched target data."
    },
    "PermissionCheckResultApiDTO": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The IAM permission action, e.g. 'Microsoft.Compute/disks/read'."
        },
        "status": {
          "type": "string",
          "description": "Check status of the permission.",
          "enum": [
            "UNDETERMINED",
            "GRANTED",
            "MISSING"
          ]
        },
        "description": {
          "type": "string",
          "description": "Human-readable description of what the permission is used for."
        },
        "category": {
          "type": "string",
          "description": "High-level permission category grouping.",
          "enum": [
            "WORKLOAD_MONITORING",
            "ACTION_EXECUTION",
            "BILLING"
          ]
        },
        "functionality": {
          "type": "array",
          "description": "Functional areas this permission enables, e.g. 'Discovery of VMs'.",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Check outcome for a single permission entry."
    },
    "SecretManagerInfoApiDTO": {
      "type": "object",
      "properties": {
        "secretProviderId": {
          "type": "string",
          "description": "Secret provider id."
        },
        "secretPath": {
          "type": "string",
          "description": "Path where secret lives."
        }
      }
    },
    "StatApiDTO": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "uuid": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
        },
        "className": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Name"
        },
        "capacity": {
          "$ref": "#/$defs/StatValueApiDTO"
        },
        "reserved": {
          "$ref": "#/$defs/StatValueApiDTO"
        },
        "relatedEntityType": {
          "type": "string",
          "description": "E.G.virtual machine"
        },
        "filters": {
          "type": "array",
          "description": "describe the grouping options used to generate the output",
          "items": {
            "$ref": "#/$defs/StatFilterApiDTO"
          }
        },
        "relatedEntity": {
          "$ref": "#/$defs/BaseApiDTO"
        },
        "numRelatedEntities": {
          "type": "integer",
          "format": "int32",
          "description": "Number of providers or consumers for this statistic, 'relatedEntity' and 'numRelatedEntities' are mutually exclusive"
        },
        "units": {
          "type": "string",
          "description": "Units, used for Commodities stats. E.G. $/h"
        },
        "values": {
          "$ref": "#/$defs/StatValueApiDTO"
        },
        "value": {
          "type": "number",
          "format": "float",
          "description": "Simple value, equal to values.avg."
        },
        "predicted": {
          "type": "number",
          "format": "float",
          "description": "[Beta]: Predicted value for the statistic. Only returns values when the SLO Guard system is turned on"
        },
        "commoditySource": {
          "$ref": "#/$defs/StatCommoditySourceApiDTO"
        },
        "histUtilizations": {
          "type": "array",
          "description": "Commodity historical utilization values",
          "items": {
            "$ref": "#/$defs/StatHistUtilizationApiDTO"
          }
        }
      },
      "description": "Model to describe a Statistic"
    },
    "StatCommoditySourceApiDTO": {
      "type": "object",
      "properties": {
        "capacityCommoditySource": {
          "type": "string",
          "description": "Commodity source for capacity"
        },
        "usedCommoditySource": {
          "type": "string",
          "description": "Commodity source for usage"
        },
        "capacitySourceIndex": {
          "type": "integer",
          "format": "int32",
          "description": "Commodity source operation index for capacity"
        },
        "usedSourceIndex": {
          "type": "integer",
          "format": "int32",
          "description": "Commodity source operation index for usage"
        }
      },
      "description": "Model to describe commodity source for a single statistic, e.g. commodity source for VCPU (capacity and usage)"
    },
    "StatFilterApiDTO": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "type of the filter, E.G: actionTypes, category, ..."
        },
        "value": {
          "type": "string",
          "description": "value of the filter"
        },
        "displayName": {
          "type": "string",
          "description": "display name of the value, E.G: displayName if 'value' is an oid or an enum"
        }
      },
      "description": "Model to describe the filter applied to a Statistic"
    },
    "StatHistUtilizationApiDTO": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Historical utilization type"
        },
        "usage": {
          "type": "number",
          "format": "float",
          "description": "Historical usage"
        },
        "capacity": {
          "type": "number",
          "format": "float",
          "description": "Historical capacity"
        },
        "resizeMaxScalingObservationPeriod": {
          "type": "number",
          "format": "float",
          "description": "Resize max scaling observation period. Affects on amount of data points considered for action generation process. Value in days."
        },
        "resizeScalingAggressiveness": {
          "type": "number",
          "format": "float",
          "description": "Resize scaling aggressiveness. Describes how aggressively Turbonomic will resize in response of resource utilization. Value in percents. 100% least aggressive, 95% most aggressive."
        }
      },
      "description": "Model to describe a historical utilization statistic, e.g. the P95 vCPU or P95 vMEM of a VM over (up to) NN days observation period."
    },
    "StatSnapshotApiDTO": {
      "type": "object",
      "required": [
        "statistics"
      ],
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "uuid": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
        },
        "className": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "description": "When the statistics were recorded"
        },
        "statistics": {
          "type": "array",
          "description": "List of statistics, e.g. Price Index, Commodities values, Cost price, Number of VMs in a Group, ...",
          "items": {
            "$ref": "#/$defs/StatApiDTO"
          }
        },
        "epoch": {
          "type": "string",
          "description": "An indicator of whether the snapshot represents historical, projected or plan data. Should be used in conjunction with the date field to understand the context of this stat snapshot.",
          "enum": [
            "HISTORICAL",
            "CURRENT",
            "PROJECTED",
            "PLAN_SOURCE",
            "PLAN_PROJECTED"
          ]
        }
      },
      "description": "Model to describe the Statistics of a snapshot, contains a list of Statistics for a moment in time"
    },
    "StatValueApiDTO": {
      "type": "object",
      "properties": {
        "max": {
          "type": "number",
          "format": "float",
          "description": "Max value"
        },
        "min": {
          "type": "number",
          "format": "float",
          "description": "Min value"
        },
        "avg": {
          "type": "number",
          "format": "float",
          "description": "Average value"
        },
        "total": {
          "type": "number",
          "format": "float",
          "description": "Total value - sum of average values in a group"
        },
        "totalMax": {
          "type": "number",
          "format": "float",
          "description": "Total max value - sum of max values in a group"
        },
        "totalMin": {
          "type": "number",
          "format": "float",
          "description": "Total min value - sum of min values in a group"
        }
      },
      "description": "Model to describe a single statistic, e.g. the CPU of a PM Group"
    },
    "TargetApiDTO": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "uuid": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "A user readable name of the api object.\nCannot be blank.\nThe UTF-8 encoding must be at most 255 bytes."
        },
        "className": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "description": "Probe category."
        },
        "isProbeRegistered": {
          "type": "boolean",
          "description": "Indicator that is used to determine whether the associated probe is running and registered with the system"
        },
        "uiCategory": {
          "type": "string",
          "description": "Probe UI category."
        },
        "identifyingFields": {
          "type": "array",
          "description": "Array of field names used to differentiate probes of the same category. Most typically either the name/address field, or a combination of address and port.",
          "items": {
            "type": "string"
          }
        },
        "inputFields": {
          "type": "array",
          "description": "List of all InputFieldApiDTO objects for the target, analogous to the target addition form fields in the GUI.",
          "items": {
            "$ref": "#/$defs/InputFieldApiDTO"
          }
        },
        "lastValidated": {
          "type": "string",
          "description": "Date of the last validation - [DEPRECATED - Use: healthSummary.timeOfLastSuccessfulDiscovery]"
        },
        "status": {
          "type": "string",
          "description": "Description of the status of the most recent Validation Operation - [DEPRECATED - Use: healthSummary.healthState]"
        },
        "derivedTargets": {
          "type": "array",
          "description": "Targets derived (created by discovery of) from this target. Populated depending on the TargetRelationship parameter.",
          "items": {
            "$ref": "#/$defs/TargetApiDTO"
          }
        },
        "patchedTargets": {
          "type": "array",
          "description": "Targets patched by this target",
          "items": {
            "$ref": "#/$defs/PatchedTargetDataApiDTO"
          }
        },
        "parentTargets": {
          "type": "array",
          "description": "Targets that created this target. Populated depending on the TargetRelationship parameter.",
          "items": {
            "$ref": "#/$defs/TargetApiDTO"
          }
        },
        "type": {
          "type": "string",
          "description": "Probe type. Turbonomic ships with the following probe types:  AppDynamics, Dynatrace, Datadog, Apptio Cloudability, Arista, AWS, Azure, Cisco UCS Manager, HP OneView, HPE 3PAR, Hyper-V, IBM PowerVM, Instana, JVM, MySQL, NetApp, Nutanix, OpenStack, Oracle, Pure, SQLServer, Tomcat, vCenter, VMM, WebLogic, WebSphere, WMI, XenServer, "
        },
        "subType": {
          "type": "string",
          "description": "Target subType."
        },
        "readonly": {
          "type": "boolean",
          "description": "Whether the target cannot be changed through public APIs."
        },
        "health": {
          "$ref": "#/$defs/TargetHealthApiDTO"
        },
        "lastTargetOperationStages": {
          "type": "array",
          "description": "The status at each stage of the most recent validation or discovery, which ever was more recent. Only returned if 'detail_level' is 'HEALTH_DETAILS'",
          "items": {
            "$ref": "#/$defs/TargetOperationStageApiDTO"
          }
        },
        "lastValidationOperationDetails": {
          "$ref": "#/$defs/TargetOperationDetailsApiDTO"
        },
        "lastDiscoveryOperationDetails": {
          "$ref": "#/$defs/TargetOperationDetailsApiDTO"
        },
        "permissionCheckResults": {
          "type": "array",
          "description": "Per-permission check results from the most recent validation. Only returned if 'detail_level' is 'HEALTH_DETAILS'. Only populated for probe types that perform permission checking.",
          "items": {
            "$ref": "#/$defs/PermissionCheckResultApiDTO"
          }
        },
        "healthSummary": {
          "$ref": "#/$defs/TargetHealthSummaryApiDTO"
        },
        "discoveryMode": {
          "type": "string",
          "description": "The discovery mode for the target.",
          "enum": [
            "ACTIVE",
            "PAUSED"
          ]
        }
      },
      "description": "Model to describe a Target. Targets are used to discover the components to create a connected virtual environment"
    },
    "TargetErrorApiDTO": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "string",
          "description": "The time the error occurred in ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ). For example 2021-07-07T20:33:49Z"
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "description": "An error that was recorded for a target, together with the time it occurred."
    },
    "TargetErrorDetailsApiDTO": {
      "type": "object",
      "required": [
        "targetErrorDetailsClass"
      ],
      "properties": {
        "targetErrorDetailsClass": {
          "type": "string"
        }
      },
      "description": "Additional details related to a target error."
    },
    "TargetHealthApiDTO": {
      "type": "object",
      "required": [
        "healthCategory",
        "healthClassDiscriminator",
        "rollupState",
        "targetName",
        "uuid"
      ],
      "properties": {
        "errorText": {
          "type": "string",
          "description": "Error text (if there's any)."
        },
        "healthCategory": {
          "type": "string",
          "description": "The type of the health checks that are done.",
          "enum": [
            "TARGET",
            "ACTION",
            "COMPONENT"
          ]
        },
        "healthClassDiscriminator": {
          "type": "string",
          "description": "Health type discriminator. Describes which subclass of BaseHealthApiDTO is returned."
        },
        "uuid": {
          "type": "string",
          "description": "UUID of the target."
        },
        "targetName": {
          "type": "string",
          "description": "Target display name."
        },
        "rollupState": {
          "type": "string",
          "description": "The health state of the target including its derived targets.",
          "enum": [
            "CRITICAL",
            "MAJOR",
            "MINOR",
            "NORMAL"
          ]
        },
        "timeOfFirstFailure": {
          "type": "string",
          "description": "Time of first failure of validation/discovery (if the target is in failed state; ISO-8601 formatted String)."
        },
        "targetErrorDetails": {
          "type": "array",
          "description": "Error details related to a target. Supports multiple errors details.",
          "items": {
            "$ref": "#/$defs/TargetErrorDetailsApiDTO"
          }
        },
        "recentErrors": {
          "type": "array",
          "description": "The most recent errors recorded for the target (for example failed discoveries or a failed probe upgrade), newest first. They are kept until the target is deleted.",
          "items": {
            "$ref": "#/$defs/TargetErrorApiDTO"
          }
        },
        "targetStatusSubcategory": {
          "type": "string",
          "enum": [
            "DISCOVERY",
            "VALIDATION",
            "DUPLICATION",
            "DELAYED_DATA"
          ]
        },
        "healthState": {
          "type": "string",
          "enum": [
            "CRITICAL",
            "MAJOR",
            "MINOR",
            "NORMAL"
          ]
        }
      },
      "description": "A DTO that describes the health of a single target."
    },
    "TargetHealthSummaryApiDTO": {
      "type": "object",
      "required": [
        "healthState",
        "rollupState"
      ],
      "properties": {
        "healthState": {
          "type": "string",
          "description": "The target health state.",
          "enum": [
            "CRITICAL",
            "MAJOR",
            "MINOR",
            "NORMAL"
          ]
        },
        "rollupState": {
          "type": "string",
          "description": "The health state of the target including its derived targets.",
          "enum": [
            "CRITICAL",
            "MAJOR",
            "MINOR",
            "NORMAL"
          ]
        },
        "timeOfLastSuccessfulDiscovery": {
          "type": "string",
          "description": "The last time a successful discovery finished on the target in ISO-8601 Format (YYYY-MM-DDTHH:MM:SSZ). For example 2021-07-07T20:33:49Z"
        }
      },
      "description": "A DTO that describes target health."
    },
    "TargetOperationDetailsApiDTO": {
      "type": "object",
      "properties": {
        "stages": {
          "type": "array",
          "description": "The status at each stage of this operation.",
          "items": {
            "$ref": "#/$defs/TargetOperationStageApiDTO"
          }
        },
        "completionTime": {
          "type": "string",
          "description": "The time this operation completed, as an ISO-8601 UTC timestamp (e.g. 2021-07-07T20:33:49Z)."
        }
      },
      "description": "Stage details and completion time for a single target operation."
    },
    "TargetOperationStageApiDTO": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of what this stage is doing (ideally in less that 70 characters). Example of description are \"validating credentials\" or \"retrieving business applications\"."
        },
        "status": {
          "$ref": "#/$defs/TargetOperationStageStatusApiDTO"
        },
        "subStages": {
          "type": "array",
          "description": "List with the subStages of he current stage.",
          "items": {
            "$ref": "#/$defs/TargetOperationStageApiDTO"
          }
        },
        "optional": {
          "type": "boolean",
          "description": "Is stage marked as optional."
        }
      },
      "description": "Holds all information related to a stage of discovery or validation."
    },
    "TargetOperationStageStatusApiDTO": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The state of this stage at the end of the discovery or validation.",
          "enum": [
            "DID_NOT_RUN",
            "SUCCESS",
            "FAILURE",
            "MAJOR"
          ]
        },
        "summary": {
          "type": "string",
          "description": "The short message (ideally 70 characters or less) explaining the stage status. Example of such messages are \"invalid credentials\" or \"4 business application retrieved\"."
        },
        "fullExplanation": {
          "type": "string",
          "description": "The full message explaining the stage status. This explanation may include the instructions\n or hints on how to address issue if there is one."
        }
      },
      "description": "Holds all the information of this particular instance of the discovery or validation stage."
    }
  }
}