diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2018-10-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2018-10-01/storagesync.json index 7f848db71e8f..3cf363dc4032 100644 --- a/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2018-10-01/storagesync.json +++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/preview/2018-10-01/storagesync.json @@ -8,7 +8,7 @@ "name": "StorageSyncManagementClient" } }, - "host": "azure.microsoft.com", + "host": "management.azure.com", "schemes": [ "https" ], @@ -3165,7 +3165,7 @@ "type": "string", "description": "Registered Server OS Version" }, - "serverManagementtErrorCode": { + "serverManagementErrorCode": { "type": "integer", "description": "Registered Server Management Error Code" }, @@ -3342,7 +3342,112 @@ }, "syncStatus": { "type": "object", - "description": "Sync Health Status" + "$ref": "#/definitions/ServerEndpointHealth", + "description": "Server Endpoint properties." + } + } + }, + "ServerEndpointHealth": { + "type": "object", + "description": "ServerEndpoint Health object.", + "properties": { + "downloadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Download Health Status." + }, + "uploadHealth": { + "$ref": "#/definitions/HealthState", + "description": "Upload Health Status." + }, + "combinedHealth": { + "$ref": "#/definitions/HealthState", + "description": "Combined Health Status." + }, + "lastUpdatedTimestamp": { + "type" : "string", + "description": "Last Updated Timestamp" + }, + "uploadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Upload Status" + }, + "downloadStatus": { + "$ref": "#/definitions/SyncSessionStatus", + "description": "Download Status" + }, + "currentProgress": { + "$ref": "#/definitions/SyncProgressStatus", + "description": "Current progress" + } + } + }, + "SyncSessionStatus": { + "type": "object", + "description": "Sync Session status object.", + "properties": { + "lastSyncResult": { + "type": "integer", + "minimum": 0, + "maximum": 100, + "description": "Last sync status" + }, + "lastSyncTimestamp": { + "type" : "string", + "description": "Last sync timestamp" + }, + "lastSyncSuccessTimestamp": { + "type" : "string", + "description": "Last sync sucess timestamp" + }, + "lastSyncPerItemErrorCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Last sync per item error count." + } + } + }, + "SyncProgressStatus": { + "type": "object", + "description": "Sync Session status object.", + "properties": { + "progressTimestamp": { + "type" : "string", + "description": "Progress timestamp" + }, + "syncDirection": { + "$ref": "#/definitions/ProgressType", + "description": "Sync direction." + }, + "perItemErrorCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Per item error count" + }, + "appliedItemCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Applied item count." + }, + "totalItemCount": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Total item count" + }, + "appliedBytes": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Applied bytes" + }, + "totalBytes": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Total bytes" } } }, @@ -3366,6 +3471,17 @@ "off" ] }, + "HealthState": { + "type": "string", + "description": "Type of the Health state", + "enum": [ + "healthy", + "error", + "syncblockedforrestore", + "syncblockedforchangedetectionpostrestore", + "noactivity" + ] + }, "WorkflowStatus": { "type": "string", "description": "Type of the Workflow Status",