{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-alert-comment-schema.json",
  "title": "alertComment",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-alert-api-openapi.yml#/components/schemas/microsoft.graph.security.alertComment",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "The comment text."
    },
    "createdByDisplayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The person or app name that submitted the comment."
    },
    "createdDateTime": {
      "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
      "type": "string",
      "description": "The time when the comment was submitted.",
      "format": "date-time"
    },
    "@odata.type": {
      "type": "string"
    }
  }
}