title: swift/upload/complete description: Schema used for simple tests $id: /swift/upload/complete/1.0.0 $schema: 'https://json-schema.org/draft-07/schema#' type: object additionalProperties: false required: - $schema - meta - swift_container - swift_object_prefix - swift_prefix_uri - swift_user properties: $schema: description: > A URI identifying the JSONSchema for this event. This should match an schema's $id in a schema repository. E.g. /schema/title/1.0.0 type: string meta: type: object required: - dt - stream properties: uri: type: string format: uri-reference maxLength: 8192 description: Unique URI identifying the event or entity request_id: description: Unique ID of the request that caused the event type: string id: description: Unique ID of this event type: string dt: type: string format: date-time maxLength: 128 description: 'UTC event datetime, in ISO-8601 format' domain: description: Domain the event or entity pertains to type: string minLength: 1 stream: description: Name of the stream/queue/dataset that this event belongs in type: string minLength: 1 upload_user: description: User that initiated the upload type: string swift_user: description: 'Swift account user, e.g. analytics:admin' type: string swift_container: description: Swift container in which files were uploaded type: string swift_object_prefix: description: Swift object prefix / object name used when uploading type: string swift_prefix_uri: description: > Swift API URI which should be requested in order to get the list of objects for this upload complete event. In the case where this event represents a full directory upload is complete, the URI will have ?prefix=. In the case that this event only represents a single object from a larger directory upload, this will have ?prefix=/. In either case, requesting this URI will get you a list of objects relevant to this event. type: string examples: - $schema: /swift/upload/complete/1.0.0 meta: dt: '2019-07-29T20:12:46.813554Z' id: 9d27895c-da78-4e4f-b968-66622e2b02cd stream: swift.example_container.upload-complete swift_container: example_container swift_object_prefix: '2019-07-29T20:12:46.813554Z/example_prefix' swift_prefix_uri: >- https://ms-fe.svc.eqiad.wmnet/v1/AUTH_analytics/example_container?prefix=2019-07-29T20:12:46.813554Z/example_prefix swift_user: 'analytics:admin' upload_user: example_user