Versions Compared

Key

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

Get a list of Axxon domain archives.Pozyskaj listę archiwów Domeny Axxon

POST http://IP-address:port/prefix/grpc

Request bodyBody zapytania:

Code Block
{
"method": "axxonsoft.bl.domain.DomainService.ListArchives",
"data": { "filter": "", "view": "VIEW_MODE_FULL", "page_token": "", "page_size": 1000}
} 

The response will contain a list of archives. Take the value of the access_point parameter for the required archiveOdpowiedź będzie zawierać listę archiwów. Należy użyć wartości parametru access_point dla wymaganego archiwum.

 "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"

Info
titleNote

The response will contain the Odpowiedź będzie zawierać parametr page_token parameter if the number of archives (including the built-in ones) is greater than the value of the , jeśli liczba archiwów (wliczając w to wbudowane archiwa) jest większa, niż wartość parametru page_size parameter.


Get the archive occupation percentage.Pozyskaj procent zajętego miejsca w archiwum

POST http://IP-address:port/prefix/grpc

Request bodyBody zapytania:

Code Block
 {"method": "axxonsoft.bl.statistics.StatisticService.GetStatistics","data": { "keys": {  "type": "SPT_ArchiveUsage", "name": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage" }}}

where gdzie "name" is the value of the to wartość dla parametru access_point parameter from the first request dla pierwszego zapytania.

ResponseOdpowiedź:

Code Block
 {
    "stats": [
        {
            "hint": "",
            "key": {
                "type": "SPT_ArchiveUsage",
                "name": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"
            },
            "labels": [],
            "value_double": 27.851564407348633
        }
    ],
    "fails": []
}

value_double is the the archive occupation percentage.Get information about the archive contents. to procent zajętego miejsca w archiwum.

Pozyskaj informacje na temat zawartości archiwum

POST http://IP-address:port/prefix/grpc

Request bodyBody zapytania:

Code Block
{
"method": "axxonsoft.bl.archive.ArchiveService.GetRecordingInfo",
"data": {  "update_cache": false, "access_point": "hosts/Server1/MultimediaStorage.AliceBlue/MultimediaStorage"}
}

where gdzie "access_point" is taken from the first requestjest uzyskane z pierwszego zapytania.

ResponseOdpowiedź:

Code Block
 {
    "recording_info": {
        "system_size": "292",
        "recording_size": "30134",
        "recording_rate": "303597",
        "capacity": "30720",
        "last_update": "1551865173"
    }
}

where gdzie "capacity" is the archive size in megabytesto wielkość archiwum w megabajtach.