{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-alarms-event-schema.json",
  "title": "An Event structure, an application/service will post this proto as an input\nfor the Alarm Center to create Events and Alarms",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-alarms-api-openapi.yml#/components/schemas/alarmsEvent",
  "type": "object",
  "properties": {
    "EventId": {
      "type": "string",
      "description": "Generated uuid to identify uniquely the event. Will be generated by the client lib."
    },
    "origin_service_id": {
      "type": "string",
      "title": "The origin service id of this event"
    },
    "origin_app_id": {
      "type": "string",
      "title": "The origin app id of this event"
    },
    "object_id": {
      "type": "string",
      "title": "The object/model identifier of the faulting event"
    },
    "object_description": {
      "type": "string",
      "title": "The description of the object/model identifier as it should be shown in the GUI"
    },
    "event_type": {
      "type": "integer",
      "format": "int32",
      "title": "Event Type for correlation"
    },
    "Timestamp": {
      "type": "string",
      "format": "int64",
      "description": "The time this event was created. Will be filled by the client lib."
    },
    "EventSeverity": {
      "$ref": "#/$defs/alarmsSeverity",
      "description": "The severity of the Event."
    },
    "Description": {
      "type": "string",
      "description": "A free text, parametrized, description. Do not need to fill if there is an event type..."
    },
    "DescriptionParams": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Parameters for the alarm description."
    },
    "CreateBy": {
      "type": "string",
      "description": "Who created the event, if the user acknowledge the alarm then the source is the same but the creator is not..."
    },
    "EventCategory": {
      "$ref": "#/$defs/alarmsCategory",
      "description": "The event category, e.g. system, network & etc."
    },
    "Flagging": {
      "type": "boolean",
      "format": "boolean",
      "title": "If the event is a flagging event, e.g. raise an alarm"
    }
  },
  "$defs": {
    "alarmsCategory": {
      "type": "string",
      "enum": [
        "InvalidCategory",
        "System",
        "Network",
        "Audit",
        "Security",
        "External"
      ],
      "default": "InvalidCategory",
      "title": "Defines the Category of the Event/Alarm"
    },
    "alarmsSeverity": {
      "type": "string",
      "enum": [
        "InvalidSeverity",
        "Clear",
        "Info",
        "Warning",
        "Minor",
        "Major",
        "Critical"
      ],
      "default": "InvalidSeverity",
      "title": "Defines the Event/Alarm severity"
    }
  }
}