Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET http://IP-address:port/prefix/archive/health/{HOSTNAME}/{ENDTIME}/{BEGINTIME}

Tip

{HOSTNAME} - Server namenazwa Serwera.


Info
titleNote

The Składnia dla ENDTIME and BEGINTIME syntax is described in oraz BEGINTIME jest opisana w sekcji Get MM archive contents section.


ParametrRequiredWymaganyDescriptionOpis
archiveNoNie

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).

healthNoNie

0 — there is an archive damage— archiwum jest uszkodzone1 — no archive damage— brak uszkodzeń archiwum.


Note
titleImportant!

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:

timestampthe time of archive damage detection czas detekcji uszkodzenia archiwum (UTC +0).