Get harvester index stats
Returns details about harvesting stats of a specific index in the harvester.
For users who are members of harvester it requires harvester_view.
For administrators who do not have to be members of this harvester,
oz_harvesters_view privilege is required.
Example cURL requests
Get harvester index stats
curl -u username:password -X GET \
https://$ZONE_HOST/api/v3/onezone/harvesters/$HARVESTER_ID/indices/$INDEX_ID
{
$SPACE_ID1 : {
$PROVIDER_ID1 : {
"currentSeq" : 5,
"maxSeq" : 8,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : false
},
$PROVIDER_ID2 : {
"currentSeq" : 8,
"maxSeq" : 13,
"error" : "Service unavailable: temporary failure.",
"lastUpdate" : 1557928576,
"archival" : false
}
},
$SPACE_ID2 : {
$PROVIDER_ID1 : {
"currentSeq" : 13,
"maxSeq" : 21,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : false
},
$PROVIDER_ID3 : {
"currentSeq" : 21,
"maxSeq" : 34,
"error" : null,
"lastUpdate" : 1557928576,
"archival" : true
}
}
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
| idx required | string Index Id. |
Request Examples
onezone-rest-cli getHarvesterIndexStats id=b752ceafabb662b4e5728b2ded25cdd1 idx=f1c8b1a37aa7447b22eb65a742d40524Responses
JSON with an index harvesting stats.
space_id object
provider_id object
Highest sequence number in given space in given provider already harvested in this index
Highest known sequence in given space in given provider
Short description of encountered error if last harvesting failed
Timestamp in seconds (UNIX epoch) of the last harvesting in this index
Stats are marked archival when it is no longer possible to harvest metadata in given space in given provider (e.g space was removed from harvester)
Example
{
"$SPACE_ID1": {
"$PROVIDER_ID1": {
"currentSeq": 5,
"maxSeq": 8,
"error": null,
"lastUpdate": 1557928576,
"archival": false
},
"$PROVIDER_ID2": {
"currentSeq": 8,
"maxSeq": 13,
"error": "Service unavailable: temporary failure",
"lastUpdate": 1557928576,
"archival": false
}
},
"$SPACE_ID2": {
"$PROVIDER_ID1": {
"currentSeq": 13,
"maxSeq": 21,
"error": null,
"lastUpdate": 1557928576,
"archival": false
},
"$PROVIDER_ID3": {
"currentSeq": 21,
"maxSeq": 34,
"error": null,
"lastUpdate": 1557928576,
"archival": true
}
}
}Invalid request.
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."
}
}Authentication 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."
}
}Authorization 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."
}
}Resource not found.
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."
}
}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."
}
}