Это перевод страницы документации с английского языка. Помогите нам сделать его лучше.

housekeeping.get

Описание

object housekeeping.get(параметры объекта)

Метод позволяет получить объект обслуживания в соответствии с заданными параметрами.

Этот метод доступен пользователям любого типа. Разрешения на вызов метода можно отозвать в настройках ролей пользователя. Дополнительную информацию см. в разделе Роли пользователей.

Parameters

(object) Parameters defining the desired output.

The method supports only one parameter.

Parameter Type Description
output query This parameter being common for all get methods described in the reference commentary.

Return values

(object) Returns housekeeping object.

Примеры

Запрос:

{
           "jsonrpc": "2.0",
           "method": "housekeeping.get",
           "params": {
               "output": "extend"
           },
           "id": 1
       }
Copy
✔ Copied

Ответ:

{
           "jsonrpc": "2.0",
           "result": {
               "hk_events_mode": "1",
               "hk_events_trigger": "365d",
               "hk_events_service": "1d",
               "hk_events_internal": "1d",
               "hk_events_discovery": "1d",
               "hk_events_autoreg": "1d",
               "hk_services_mode": "1",
               "hk_services": "365d",
               "hk_audit_mode": "1",
               "hk_audit": "31d",
               "hk_sessions_mode": "1",
               "hk_sessions": "365d",
               "hk_history_mode": "1",
               "hk_history_global": "0",
               "hk_history": "31d",
               "hk_trends_mode": "1",
               "hk_trends_global": "0",
               "hk_trends": "365d",
               "db_extension": "",
               "compression_status": "0",
               "compress_older": "7d"
           },
           "id": 1
       }
Copy
✔ Copied

Источник

CHousekeeping ::get() в ui/include/classes/api/services/CHousekeeping.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.