From 9b3c29c68a42a3f16075f370cb2f2f65bf4b124c Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 13 Apr 2021 21:30:56 +0200 Subject: [PATCH] added record examples --- src/test/resources/StorageStatusRecord.json | 19 +++++++++++++++++++ src/test/resources/StorageUsageRecord.json | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/test/resources/StorageStatusRecord.json create mode 100644 src/test/resources/StorageUsageRecord.json diff --git a/src/test/resources/StorageStatusRecord.json b/src/test/resources/StorageStatusRecord.json new file mode 100644 index 0000000..64ca95f --- /dev/null +++ b/src/test/resources/StorageStatusRecord.json @@ -0,0 +1,19 @@ +{ + "operationCount": 1, + "creationTime": 1601530639658, + "consumerId": "pgallagher31", + "recordType": "StorageStatusRecord", + "dataType": "STORAGE", + "providerId": "MongoDb", /* providerURI in StorageUsageRecord TO BE SET AS data.d4science.org*/ + "aggregated": true, + "dataCount": 0, + "dataServiceId": "identifier", /* VIA */ + "dataServiceClass": "content-management", /* VIA*/ + "dataServiceName": "storage-manager", /* VIA */ + "dataVolume": 0, + "scope": "/d4science.research-infrastructures.eu", + "startTime": 1601530639658, + "endTime": 1601530639658, + "id": "0000008f-cba1-4323-8ec2-7a40364e9cf2", + "operationResult": "SUCCESS" +} diff --git a/src/test/resources/StorageUsageRecord.json b/src/test/resources/StorageUsageRecord.json new file mode 100644 index 0000000..df07bd9 --- /dev/null +++ b/src/test/resources/StorageUsageRecord.json @@ -0,0 +1,19 @@ +{ + "operationCount": 1, + "creationTime": 1594966057729, + "recordType": "StorageUsageRecord", + "consumerId": "grsf.publisher", + "resourceOwner": "grsf.publisher", + "dataType": "STORAGE", + "providerURI": "data.d4science.org", + "resourceURI": "5f11402915c9f3623e0cc9ac", /* VIA */ + "resourceScope": "/d4science.research-infrastructures.eu", /* VIA */ + "aggregated": true, + "dataVolume": 3, + "scope": "/d4science.research-infrastructures.eu", + "operationType": "CREATE", + "startTime": 1594966057713, + "id": "0000058c-caee-42a7-bd71-818630fa708c", + "endTime": 1594966057713, + "operationResult": "SUCCESS" +}