Go to documentation repository
Page History
GET http://IP-address:port/prefix/archive/health/{HOSTNAME}/{ENDTIME}/{BEGINTIME}
| Tip |
|---|
{HOSTNAME} - Server namenazwa Serwera. |
| Info | ||
|---|---|---|
| ||
The Składnia dla ENDTIME and BEGINTIME syntax is described in oraz BEGINTIME jest opisana w sekcji Get MM archive contents section. |
| Parametr | RequiredWymagany | DescriptionOpis | |
|---|---|---|---|
| archive | No | Nie | Nazwa Archiwum z zapytania dotyczącego listy archiwów (zobacz: Pozyskaj zawartość archiwumArchive name from the request to get the list of archives (see Get archive contents). |
| health | NoNie | 0 — there is an archive damage— archiwum jest uszkodzone, 1 — no archive damage— brak uszkodzeń archiwum. |
| Note | ||
|---|---|---|
| ||
If the request does not contain the archive or health parameters, then the response will contain all values of these parameters. | ||
Jeśli zapytanie nie zawiera parametrów archive lub health, odpowiedź będzie zawierać wszystkie wartości tych parametrów.. |
Przykładowe zapytanieSample request:
GET http://127.0.0.1:80/archive/health/SERVER/past/future?health=0
Sample responsePrzykładowa odpowiedź:
| Code Block |
|---|
{
"events" : [
{
"data" : {
"archive" : "D:/archiveAntiqueWhite.afs",
"health" : 0
},
"timestamp" : "20180907T101637.361014"
},
{
"data" : {
"archive" : "D:/archiveAntiqueWhite.afs",
"health" : 0
},
"timestamp" : "20180907T102726.750134"
}
]
} |
where,gdzie:
timestamp — the time of archive damage detection czas detekcji uszkodzenia archiwum (UTC +0).