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.
Describes import algorithm run status.
Describes update algorithm run status.
stats object (TimeStatsCollection) Collection of statistics for requested metrics.
Collection of statistics for requested metrics.
queueLength object (TimeStats) Statistics of storage sync jobs queue length.
Statistics of storage sync jobs queue length.
Name of metric for which this object holds statistics.
Date of last measurement value in this object in ISO 8601 format.
Predefined time period for which the statistics were fetched.
List of sample values for given metric. The used period is divided into array-length number of parts. E.g. if the used period is an hour, and if there are 12 values in this array, every value is a value for 1/12 of day, which gives value for every hour of the day. If the value is null, there is no sample for given time part.
insertCount object (TimeStats) Statistics of storage sync imported files.
Statistics of storage sync imported files.
Name of metric for which this object holds statistics.
Date of last measurement value in this object in ISO 8601 format.
Predefined time period for which the statistics were fetched.
List of sample values for given metric. The used period is divided into array-length number of parts. E.g. if the used period is an hour, and if there are 12 values in this array, every value is a value for 1/12 of day, which gives value for every hour of the day. If the value is null, there is no sample for given time part.
updateCount object (TimeStats) Statistics of storage sync updated files.
Statistics of storage sync updated files.
Name of metric for which this object holds statistics.
Date of last measurement value in this object in ISO 8601 format.
Predefined time period for which the statistics were fetched.
List of sample values for given metric. The used period is divided into array-length number of parts. E.g. if the used period is an hour, and if there are 12 values in this array, every value is a value for 1/12 of day, which gives value for every hour of the day. If the value is null, there is no sample for given time part.
deleteCount object (TimeStats) Statistics of storage sync deleted files.
Statistics of storage sync deleted files.
Name of metric for which this object holds statistics.
Date of last measurement value in this object in ISO 8601 format.
Predefined time period for which the statistics were fetched.
List of sample values for given metric. The used period is divided into array-length number of parts. E.g. if the used period is an hour, and if there are 12 values in this array, every value is a value for 1/12 of day, which gives value for every hour of the day. If the value is null, there is no sample for given time part.
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.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
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.