Get statistics of storage synchronization
Returns requested statistics of storage synchronization for given space on this provider.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space for which sync stats should be returned. |
Query parameters
| Parameter | Type & Description |
|---|---|
| period | string Predefined time period for which the statistics should be fetched. |
| metrics | string Specify which statistic metrics should be returned - strings delimited with comma. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE --host https://$HOST:9443 getProviderSpaceSyncStats id=$SPACE_ID started_after="2017-10-20T21:39:37"
Responses
Space synchronization status and statistics.
| Property | Type & Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
importStatus string Describes import algorithm run status. Enum: inProgressdone | |||||||||||||||||||||||||||||||||||||||||
updateStatus string Describes update algorithm run status. Enum: waitinginProgress | |||||||||||||||||||||||||||||||||||||||||
stats object (TimeStatsCollection) Collection of statistics for requested metrics.
| |||||||||||||||||||||||||||||||||||||||||
Example
{
"importStatus": "done",
"updateStatus": "inProgress",
"stats": {
"queueLength": {
"name": "queueLength",
"lastValueDate": "2017-06-22T13:29:39.654Z",
"period": "hour",
"values": [
4,
8,
12,
16,
20,
10,
4,
2,
0,
0,
0,
0
]
},
"insertCount": {
"name": "insertCount",
"lastValueDate": "2017-06-22T13:29:39.654Z",
"period": "hour",
"values": [
4,
8,
12,
16,
20,
10,
4,
2,
0,
0,
0,
0
]
}
}
}Unauthorized request.
Forbidden request.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Services needed to fulfill this request are not running.