:source: fortios_telemetry_controller_profile.py
:orphan:
.. fortios_telemetry_controller_profile:
fortios_telemetry_controller_profile -- Configure FortiTelemetry profiles in Fortinet's FortiOS and FortiGate.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify telemetry_controller feature and profile category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v7.6.3 -> v7.6.6
Parameters
----------
.. raw:: html
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: false
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- state - Indicates whether to create or remove the object. type: str required: true choices: present, absent
- telemetry_controller_profile - Configure FortiTelemetry profiles. type: dict
more...
| Supported Version Ranges |
| telemetry_controller_profile |
v7.6.3 -> 7.6.6 |
- application - Configure applications. type: list member_path: application:id
more...
| Supported Version Ranges |
| application |
v7.6.3 -> 7.6.6 |
- app_name - Application name. Source telemetry-controller.application.custom.app-name telemetry-controller.application.predefine.app-name. type: str
more...
|
Supported Version Ranges |
| app_name |
v7.6.3 -> 7.6.6 |
- id - ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v7.6.3 -> 7.6.6 |
- interval - Time in milliseconds to check the application (1000 - 86,400 * 1000). type: int
more...
|
Supported Version Ranges |
| interval |
v7.6.3 -> 7.6.6 |
- monitor - Enable/disable monitoring of the application. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| monitor |
v7.6.3 -> 7.6.6 |
| [enable] |
v7.6.3 -> 7.6.6 |
| [disable] |
v7.6.3 -> 7.6.6 |
- sla - Service level agreement (SLA). type: dict
more...
| Supported Version Ranges |
| sla |
v7.6.3 -> 7.6.6 |
- app_throughput_threshold - Threshold of application throughput in megabytes (0 - 10,000). type: int
more...
|
Supported Version Ranges |
| app_throughput_threshold |
v7.6.3 -> 7.6.6 |
- atdt_threshold - Threshold of application total downloading time in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| atdt_threshold |
v7.6.3 -> 7.6.6 |
- dns_time_threshold - Threshold of 95th percentile of DNS resolution time in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| dns_time_threshold |
v7.6.3 -> 7.6.6 |
- experience_score_threshold - Threshold of experience score (0 - 10). type: int
more...
|
Supported Version Ranges |
| experience_score_threshold |
v7.6.3 -> 7.6.6 |
- failure_rate_threshold - Threshold of failure rate (0 - 100). type: int
more...
|
Supported Version Ranges |
| failure_rate_threshold |
v7.6.3 -> 7.6.6 |
- jitter_threshold - Threshold of jitter in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| jitter_threshold |
v7.6.3 -> 7.6.6 |
- latency_threshold - Threshold of latency in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| latency_threshold |
v7.6.3 -> 7.6.6 |
- packet_loss_threshold - Threshold of packet loss (0 - 100). type: int
more...
|
Supported Version Ranges |
| packet_loss_threshold |
v7.6.3 -> 7.6.6 |
- sla_factor - Criteria on which metric to SLA threshold list. type: list choices: experience-score, failure-rate, latency, jitter, packet-loss, ttfb, atdt, tcp-rtt, dns-time, tls-time, app-throughput
more...
|
Supported Version Ranges |
| sla_factor |
v7.6.3 -> 7.6.6 |
| [experience-score] |
v7.6.3 -> 7.6.6 |
| [failure-rate] |
v7.6.3 -> 7.6.6 |
| [latency] |
v7.6.3 -> 7.6.6 |
| [jitter] |
v7.6.3 -> 7.6.6 |
| [packet-loss] |
v7.6.3 -> 7.6.6 |
| [ttfb] |
v7.6.3 -> 7.6.6 |
| [atdt] |
v7.6.3 -> 7.6.6 |
| [tcp-rtt] |
v7.6.3 -> 7.6.6 |
| [dns-time] |
v7.6.3 -> 7.6.6 |
| [tls-time] |
v7.6.3 -> 7.6.6 |
| [app-throughput] |
v7.6.3 -> 7.6.6 |
- tcp_rtt_threshold - Threshold of TCP round-trip time in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| tcp_rtt_threshold |
v7.6.3 -> 7.6.6 |
- tls_time_threshold - Threshold of 95th percentile of TLS handshake time in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| tls_time_threshold |
v7.6.3 -> 7.6.6 |
- ttfb_threshold - Threshold of time to first byte in milliseconds (0 - 10,000,000). type: int
more...
|
Supported Version Ranges |
| ttfb_threshold |
v7.6.3 -> 7.6.6 |
- comment - Comment. type: str
more...
|
Supported Version Ranges |
| comment |
v7.6.3 -> 7.6.6 |
- name - Name of the profile. type: str required: true
more...
|
Supported Version Ranges |
| name |
v7.6.3 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
Examples
--------
.. code-block:: yaml+jinja
- name: Configure FortiTelemetry profiles.
fortinet.fortios.fortios_telemetry_controller_profile:
vdom: "{{ vdom }}"
state: "present"
access_token: ""
telemetry_controller_profile:
application:
-
app_name: " (source telemetry-controller.application.custom.app-name telemetry-controller.application.predefine.app-name)"
id: "5"
interval: "300000"
monitor: "enable"
sla:
app_throughput_threshold: "2"
atdt_threshold: "3000"
dns_time_threshold: "100"
experience_score_threshold: "6"
failure_rate_threshold: "5"
jitter_threshold: "50"
latency_threshold: "100"
packet_loss_threshold: "5"
sla_factor: "experience-score"
tcp_rtt_threshold: "100"
tls_time_threshold: "200"
ttfb_threshold: "200"
comment: "Comment."
name: "default_name_22"
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.