diff --git a/event/osm-formatter-request.json b/event/osm-formatter-request.json new file mode 100644 index 0000000..007459f --- /dev/null +++ b/event/osm-formatter-request.json @@ -0,0 +1,9 @@ +{ + "messageType": "osw-formatter-request", + "data":{ + "sourceUrl":"https://tdeisamplestorage.blob.core.windows.net/osw/formatter/uid/valid_c8c76e89f30944d2b2abd2491bd95337.zip", + "jobId":"42", + "source":"osw", + "target":"osm" + } +} diff --git a/event/osm-formatter-response-failed.json b/event/osm-formatter-response-failed.json new file mode 100644 index 0000000..3bd403b --- /dev/null +++ b/event/osm-formatter-response-failed.json @@ -0,0 +1,12 @@ + +{ + "messageType": "osw-formatter-response", + "data":{ + "sourceUrl":"https://tdeisamplestorage.blob.core.windows.net/osw/formatter/uid/valid_c8c76e89f30944d2b2abd2491bd95337.zip", + "jobId":"42", + "status":"failed", + "formattedUrl":"", + "message":"Error occured during the conversion.. (details)" + + } +} diff --git a/event/osm-formatter-response-success.json b/event/osm-formatter-response-success.json new file mode 100644 index 0000000..ec90648 --- /dev/null +++ b/event/osm-formatter-response-success.json @@ -0,0 +1,12 @@ + +{ + "messageType": "osw-formatter-response", + "data":{ + "sourceUrl":"https://tdeisamplestorage.blob.core.windows.net/osw/formatter/uid/valid_c8c76e89f30944d2b2abd2491bd95337.zip", + "jobId":"42", + "status":"completed", + "formattedUrl":"https://tdeisamplestorage.blob.core.windows.net/osw/formatter/uid/valid_c8c76e89f30944d2b2abd2491bd95337.osw", + "message":"" + + } +} diff --git a/event/osw-confidence-calculated.json b/event/osw-confidence-calculated.json new file mode 100644 index 0000000..35709a7 --- /dev/null +++ b/event/osw-confidence-calculated.json @@ -0,0 +1,11 @@ +{ + "messageType":"confidence-response", + "data": +{ + "jobId":"", + "confidence_level":"", + "confidence_library_version":"", + "status":"", + "message":"" +} +} diff --git a/event/osw-confidence-requested.json b/event/osw-confidence-requested.json new file mode 100644 index 0000000..559e67c --- /dev/null +++ b/event/osw-confidence-requested.json @@ -0,0 +1,9 @@ +{ + "messageType": "osw-confidence-request", + "data": { + "jobId": "", + "data_file": "", + "meta_file": "", + "trigger_type": "" + } +} \ No newline at end of file diff --git a/schema/osw-confidence-request-schema.json b/schema/osw-confidence-request-schema.json new file mode 100644 index 0000000..6d8d1ed --- /dev/null +++ b/schema/osw-confidence-request-schema.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "messageType": { + "type": "string" + }, + "data": { + "type": "object", + "properties": { + "jobId": { + "type": "string" + }, + "data_file": { + "type": "string" + }, + "meta_file": { + "type": "string" + }, + "trigger_type": { + "type": "string" + } + }, + "required": [ + "jobId", + "data_file", + "meta_file", + "trigger_type" + ] + } + }, + "required": [ + "messageType", + "data" + ] + } \ No newline at end of file diff --git a/schema/osw-confidence-response-schema.json b/schema/osw-confidence-response-schema.json new file mode 100644 index 0000000..784831f --- /dev/null +++ b/schema/osw-confidence-response-schema.json @@ -0,0 +1,40 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "messageType": { + "type": "string" + }, + "data": { + "type": "object", + "properties": { + "jobId": { + "type": "string" + }, + "confidence_level": { + "type": "string" + }, + "confidence_library_version": { + "type": "string" + }, + "status": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "jobId", + "confidence_level", + "confidence_library_version", + "status", + "message" + ] + } + }, + "required": [ + "messageType", + "data" + ] + } \ No newline at end of file diff --git a/schema/osw-formatter-request-schema.json b/schema/osw-formatter-request-schema.json new file mode 100644 index 0000000..2c66fa3 --- /dev/null +++ b/schema/osw-formatter-request-schema.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "messageType": { + "type": "string" + }, + "data": { + "type": "object", + "properties": { + "sourceUrl": { + "type": "string" + }, + "jobId": { + "type": "string" + }, + "source": { + "type": "string" + }, + "target": { + "type": "string" + } + }, + "required": [ + "sourceUrl", + "jobId", + "source", + "target" + ] + } + }, + "required": [ + "messageType", + "data" + ] + } \ No newline at end of file diff --git a/schema/osw-formatter-response-schema.json b/schema/osw-formatter-response-schema.json new file mode 100644 index 0000000..a5c4a2d --- /dev/null +++ b/schema/osw-formatter-response-schema.json @@ -0,0 +1,40 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "messageType": { + "type": "string" + }, + "data": { + "type": "object", + "properties": { + "sourceUrl": { + "type": "string" + }, + "jobId": { + "type": "string" + }, + "status": { + "type": "string" + }, + "formattedUrl": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "sourceUrl", + "jobId", + "status", + "formattedUrl", + "message" + ] + } + }, + "required": [ + "messageType", + "data" + ] + } \ No newline at end of file