{
  "name": "ProfileData",
  "plural": "ProfileDatas",
  "base": "PersistedModel",
  "options": {
    "hidden": [
      "executorId"
    ]
  },
  "description": "Represents a cpu profile or heap dump gathered from a node process",
  "properties": {
    "executorId": {
      "type": "number",
      "index": 1,
      "description": "The ID of the Executor instance the process was running on"
    },
    "serverServiceId": {
      "type": "number",
      "index": 1,
      "description": "The ID of the Service the process was running"
    },
    "instanceId": {
      "type": "number",
      "index": 1,
      "description": "The ID of the Service instance the process was part of"
    },
    "serviceProcessId": {
      "type": "number",
      "do we need? required": true,
      "index": 1,
      "description": "The ID of the ServiceProcess"
    },
    "type": {
      "type": "string",
      "required": true,
      "description": "The type of captured data: 'cpuprofile' or 'heapsnapshot'"
    },
    "targetId": {
      "type": "number",
      "required": true,
      "description": "The OS Process ID or cluster worker ID of the process.",
      "_comment1": "UNUSED? you can start on a pid, and stop on a wid",
      "_comment2": "so field is unreliable, and appears without possible use"
    },
    "startTime": {
      "type": "date",
      "required": true,
      "description": "Timestamp the cpu profile or heap dump was started"
    },
    "completed": {
      "type": "boolean",
      "default": false,
      "description": "Indicates if the profile generation is still in progress"
    },
    "fileName": {
      "type": "string",
      "description": "The name of the file on the Executor"
    },
    "errored": {
      "type": "string",
      "description": "If an error occurred, this contains the error message"
    }
  },
  "validations": [],
  "relations": {
    "executor": {
      "type": "belongsTo",
      "model": "Executor"
    },
    "serverService": {
      "type": "belongsTo",
      "model": "ServerService"
    }
  },
  "acls": [],
  "methods": []
}
