Get statistics of auto storage import mechanism.
Returns requested statistics of auto storage import mechanism for given space on this provider.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space for which storage import stats should be returned. |
Query parameters
| Parameter | Type & Description |
|---|---|
| period required | string Predefined time period for which the statistics should be fetched. |
| metrics required | string Specify which statistic metrics should be returned - strings delimited with comma. Accepted values are: |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE --host https://$HOST:9443 getAutoStorageImportStats id=$SPACE_ID period=minute metrics='queueLength,createdFiles'
Responses
Status and statistics of auto storage import mechanism in given space.
| Property | Type & Description | ||||
|---|---|---|---|---|---|
queueLength object (TimeStats) Statistics of auto storage import jobs queue length.
| |||||
createdFiles object (TimeStats) Statistics of count of created files detected by auto storage import.
| |||||
modifiedFiles object (TimeStats) Statistics of count of modified files detected by auto storage import.
| |||||
deletedFiles object (TimeStats) Statistics of count of deleted files detected by auto storage import.
| |||||
Example
{
"queueLength": {
"lastValueDate": "2017-06-22T13:29:39.654Z",
"values": [
4,
8,
12,
16,
20,
10,
4,
2,
0,
0,
0,
0
]
},
"createdFiles": {
"lastValueDate": "2017-06-22T13:29:39.654Z",
"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.