<commit_before>Host template
=============

Overview
--------

Object name: **centreon-configuration:hostTemplate**

Available parameters are the following:

============================== ================================
Parameter                      Description
============================== ================================
**--name**                     Host name

**--enabled**                  Enable (0 or 1)

--alias                        Host alias

--host-templates               Linked host templates slug

--service-templates            Linked service templates slug

--check-interval               Check interval

--retry-check-interval         Retry interval

--max-check-attempts           Max check attempts

--poller                       Poller slug

--timezone                     Timezone slug

--icon                         Host icon

--environment                  Environment slug

--timeperiod                   Timeperiod slug

--command                      Check command slug

--comment                      Host comments

--obsess                       TODO

--check-freshness              Freshness enable (0 or 1)

--freshness-threshold          Freshness threshold

--flap-detection-enabled       Flap detection enable (0 or 1)

--low-flap-threshold           Low flap detection threshold

--high-flap-threshold          High flap detection threshold

--flap-detection-enabled       Flap detection options

--comment                      Host comments

--eventhandler-enabled         Event handler enable (0 or 1)

--command2                     Event handler command

--parents                      Host parents slug

--childs                       Host children slug
============================== ================================

List
----

In order to list host templates, use **list** action::

  ./centreonConsole centreon-configuration:hostTemplate:list
  id;name;description;activate
  2;HT1;HT1;1

Columns are the following:

============== =========================
Column         Description
============== =========================
id             Host template id

name           Host template name

description    Host template description

activate       Enable (0 or 1)
============== =========================

Show
----

In order to show a host template, use **show** action::

  ./centreonConsole centreon-configuration:hostTemplate:show --hosttemplate "HT1"
  id: 2
  command_command_id:
  command_command_id_arg1:
  timeperiod_tp_id:
  command_command_id2:
  command_command_id_arg2:
  name: HT1
  slug: HT1
  description: HT1
  host_address:
  host_max_check_attempts:
  host_check_interval:
  host_retry_check_interval:
  host_active_checks_enabled:
  host_passive_checks_enabled:
  host_checks_enabled:
  initial_state:
  host_obsess_over_host:
  host_check_freshness:
  host_freshness_threshold:
  host_event_handler_enabled:
  host_low_flap_threshold:
  host_high_flap_threshold:
  host_flap_detection_enabled:
  flap_detection_options:
  host_snmp_community:
  host_snmp_version:
  host_location: 0
  host_comment:
  host_register: 0
  activate: 1
  organization_id: 1
  environment_id:
  poller_id:
  timezone_id:

Create
------

In order to create a host template, use **create** action::

  ./centreonConsole centreon-configuration:hostTemplate:create --name "HT1" --enabled
  Object successfully created

Update
------

In order to update a host template, use **update** action::

  ./centreonConsole centreon-configuration:hostTemplate:update --hosttemplate "HT1" --alias "host template 1"
  Object successfully updated

Delete
------

In order to delete a host template, use **delete** action::
<commit_msg>update the documentation with the new console format<commit_after>Host template
=============

Overview
--------

Object name: **centreon-configuration:hostTemplate**

Available parameters are the following:

============================== ================================
Parameter                      Description
============================== ================================
**--name**                     Host name

**--disable**                  Enable (0 or 1)

--alias                        Host alias

--host-templates               Linked host templates slug

--service-templates            Linked service templates slug

--check-interval               Check interval

--retry-check-interval         Retry interval

--max-check-attempts           Max check attempts

--poller                       Poller slug

--timezone                     Timezone slug

--icon                         Host icon

--environment                  Environment slug

--timeperiod                   Timeperiod slug

--command                      Check command slug

--comment                      Host comments

--obsess                       TODO

--check-freshness              Freshness enable (0 or 1)

--freshness-threshold          Freshness threshold

--flap-detection-enabled       Flap detection enable (0 or 1)

--low-flap-threshold           Low flap detection threshold

--high-flap-threshold          High flap detection threshold

--flap-detection-enabled       Flap detection options

--comment                      Host comments

--eventhandler-enabled         Event handler enable (0 or 1)

--command2                     Event handler command

--parents                      Host parents slug

--childs                       Host children slug
============================== ================================

List
----

In order to list host templates, use **list** action::

  ./centreonConsole centreon-configuration:hostTemplate:list
  id;name;description;activate
  2;HT1;HT1;1

Columns are the following:

============== =========================
Column         Description
============== =========================
id             Host template id

name           Host template name

description    Host template description

activate       Enable (0 or 1)
============== =========================

Show
----

In order to show a host template, use **show** action::

  ./centreonConsole centreon-configuration:hostTemplate:show --hosttemplate "HT1"
  id: 2
  command_command_id:
  command_command_id_arg1:
  timeperiod_tp_id:
  command_command_id2:
  command_command_id_arg2:
  name: HT1
  slug: HT1
  description: HT1
  host_address:
  host_max_check_attempts:
  host_check_interval:
  host_retry_check_interval:
  host_active_checks_enabled:
  host_passive_checks_enabled:
  host_checks_enabled:
  initial_state:
  host_obsess_over_host:
  host_check_freshness:
  host_freshness_threshold:
  host_event_handler_enabled:
  host_low_flap_threshold:
  host_high_flap_threshold:
  host_flap_detection_enabled:
  flap_detection_options:
  host_snmp_community:
  host_snmp_version:
  host_location: 0
  host_comment:
  host_register: 0
  activate: 1
  organization_id: 1
  environment_id:
  poller_id:
  timezone_id:

Create
------

In order to create a host template, use **create** action::

  ./centreonConsole centreon-configuration:hostTemplate:create --name "HT1" --disable
  Object successfully created

Update
------

In order to update a host template, use **update** action::

  ./centreonConsole centreon-configuration:hostTemplate:update --host-template "HT1" --alias "host template 1"
  Object successfully updated

Delete
------

In order to delete a host template, use **delete** action::

{'fraction_non_alphanumeric': 0.15331529093369417, 'fraction_numerical': 0.008119079837618403, 'mean_word_length': 2.5482477196351416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1458257', 'n_tokens_mistral': 1993, 'n_tokens_neox': 1836, 'n_words': 541}