Get file-popularity configuration
Returns configuration of file-popularity mechanism in the space specified by space Id in the path.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space of which file-popularity configuration should be returned. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE getFilePopularityConfiguration id=$SPACE_ID --host https://$HOST:9443Responses
The file-popularity configuration.
| Property | Type & Description |
|---|---|
enabled boolean If true, collecting file-popularity mechanism in the space is enabled. | |
exampleQuery string Example | |
lastOpenHourWeight number Weight of | |
avgOpenCountPerDayWeight number Weight of | |
maxAvgOpenCountPerDay number Maximal value of average open count per day taken to calculate the value of popularity function. | |
Example
{
"enabled": true,
"exampleQuery": "curl -sS -k -H 'X-Auth-Token: $TOKEN' -X GET https://$HOST/api/v3/oneprovider/spaces/example_space_id/views/file-popularity?limit=10&stale=false",
"lastOpenHourWeight": 1,
"avgOpenCountPerDayWeight": 20,
"maxAvgOpenCountPerDay": 100
}Unauthorized request.
Forbidden request.
Space does not exist or is not supported by the provider.
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."
}
}