Skip to content

Commit

Permalink
Merge pull request #29 from umccr/update-event-schema-sequence-run-st…
Browse files Browse the repository at this point in the history
…ate-change

Updated SequenceRunStateChange Event schema with proper envelope
  • Loading branch information
victorskl authored Jun 15, 2023
2 parents a43b520 + d11e3b0 commit bd4d9f1
Showing 1 changed file with 83 additions and 8 deletions.
91 changes: 83 additions & 8 deletions config/event_schemas/SequenceRunStateChange.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,108 @@
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Event"
"title": "SequenceRunStateChange"
},
"paths": {},
"components": {
"schemas": {
"Event": {
"AWSEvent": {
"type": "object",
"required": ["sequence_run_id", "sequence_run_name", "gds_volume_name", "gds_folder_path", "status", "timestamp"],
"required": [
"detail-type",
"resources",
"detail",
"id",
"source",
"time",
"region",
"version",
"account"
],
"x-amazon-events-detail-type": "Sequence Run State Change",
"x-amazon-events-source": "orcabus.srm",
"properties": {
"sequence_run_id": {
"detail": {
"$ref": "#/components/schemas/SequenceRunStateChange"
},
"account": {
"type": "string"
},
"sequence_run_name": {
"detail-type": {
"type": "string"
},
"id": {
"type": "string"
},
"gds_volume_name": {
"region": {
"type": "string"
},
"gds_folder_path": {
"resources": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "string"
},
"time": {
"type": "string",
"format": "date-time"
},
"version": {
"type": "string"
}
}
},
"SequenceRunStateChange": {
"type": "object",
"required": [
"instrument_run_id",
"run_volume_name",
"run_folder_path",
"run_data_uri",
"status",
"start_time"
],
"properties": {
"instrument_run_id": {
"type": "string"
},
"run_volume_name": {
"type": "string"
},
"run_folder_path": {
"type": "string"
},
"run_data_uri": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"start_time": {
"type": "string",
"format": "date-time"
},
"end_time": {
"type": "string",
"format": "date-time"
},
"reagent_barcode": {
"type": "string"
},
"flowcell_barcode": {
"type": "string"
},
"sample_sheet_name": {
"type": "string"
},
"sequence_run_id": {
"type": "string"
},
"sequence_run_name": {
"type": "string"
}
}
}
Expand Down

0 comments on commit bd4d9f1

Please sign in to comment.