{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-items-collection-log-event-schema.json",
  "title": "ItemsCollectionLogEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-activity-logs-api-openapi.yml#/components/schemas/ItemsCollectionLogEvent",
  "properties": {
    "items": {
      "default": [],
      "items": {
        "$ref": "#/$defs/LogEvent"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "Any": {
      "description": "A value that can be a primitive (String or number), a list, or a map."
    },
    "LogEvent": {
      "description": "A log event.",
      "properties": {
        "attributes": {
          "additionalProperties": {
            "$ref": "#/$defs/Any"
          },
          "description": "Attributes associated with the event, a map from attribute name to attribute value, which may be a nested map or list.",
          "type": "object"
        },
        "eventTimestamp": {
          "description": "Event timestamp that is in the record. Milliseconds from epoch.",
          "format": "int64",
          "type": "integer"
        },
        "id": {
          "description": "Id of the event.",
          "type": "string"
        },
        "message": {
          "description": "The log message.",
          "type": "string"
        },
        "receivedTimestamp": {
          "description": "Timestamp when the event was received by Grepr. Milliseconds from epoch.",
          "format": "int64",
          "type": "integer"
        },
        "severity": {
          "description": "The log severity. Higher numbers mean higher severity, following the OTel format 1-24.",
          "format": "int32",
          "type": "integer"
        },
        "tags": {
          "additionalProperties": {
            "description": "Tags associated with the event, a map from tag name to set of tag values.",
            "items": {
              "description": "Tags associated with the event, a map from tag name to set of tag values.",
              "type": "string"
            },
            "type": "array",
            "uniqueItems": true
          },
          "description": "Tags associated with the event, a map from tag name to set of tag values.",
          "type": "object"
        }
      },
      "required": [
        "eventTimestamp",
        "id",
        "receivedTimestamp"
      ],
      "type": "object"
    }
  }
}