improved zabbix action conditions documentation in zabbix_action module (#65808)

This commit is contained in:
Dusan Matejka 2019-12-23 17:28:29 +01:00 committed by Sandra McCann
parent c0cf148eee
commit 6d65280dfc

View file

@ -71,58 +71,70 @@ options:
description: description:
- List of dictionaries of conditions to evaluate. - List of dictionaries of conditions to evaluate.
- For more information about suboptions of this option please - For more information about suboptions of this option please
check out Zabbix API documentation U(https://www.zabbix.com/documentation/3.4/manual/api/reference/action/object#action_filter_condition) check out Zabbix API documentation U(https://www.zabbix.com/documentation/4.0/manual/api/reference/action/object#action_filter_condition)
suboptions: suboptions:
type: type:
description: Type (label) of the condition. description:
choices: - Type (label) of the condition.
# trigger - 'Possible values when I(event_source=trigger):'
- host_group - ' - C(host_group)'
- host - ' - C(host)'
- trigger - ' - C(trigger)'
- trigger_name - ' - C(trigger_name)'
- trigger_severity - ' - C(trigger_severity)'
- time_period - ' - C(time_period)'
- host_template - ' - C(host_template)'
- application - ' - C(application)'
- maintenance_status - ' - C(maintenance_status)'
- event_tag - ' - C(event_tag)'
- event_tag_value - ' - C(event_tag_value)'
# discovery - 'Possible values when I(event_source=discovery):'
- host_IP - ' - C(host_IP)'
- discovered_service_type - ' - C(discovered_service_type)'
- discovered_service_port - ' - C(discovered_service_port)'
- discovery_status - ' - C(discovery_status)'
- uptime_or_downtime_duration - ' - C(uptime_or_downtime_duration)'
- received_value - ' - C(received_value)'
- discovery_rule - ' - C(discovery_rule)'
- discovery_check - ' - C(discovery_check)'
- proxy - ' - C(proxy)'
- discovery_object - ' - C(discovery_object)'
# auto_registration - 'Possible values when I(event_source=auto_registration):'
- proxy - ' - C(proxy)'
- host_name - ' - C(host_name)'
- host_metadata - ' - C(host_metadata)'
# internal - 'Possible values when I(event_source=internal):'
- host_group - ' - C(host_group)'
- host - ' - C(host)'
- host_template - ' - C(host_template)'
- application - ' - C(application)'
- event_type - ' - C(event_type)'
value: value:
description: description:
- Value to compare with. - Value to compare with.
- When I(type) is set to C(discovery_status), the choices - 'When I(type=discovery_status), the choices are:'
are C(up), C(down), C(discovered), C(lost). - ' - C(up)'
- When I(type) is set to C(discovery_object), the choices - ' - C(down)'
are C(host), C(service). - ' - C(discovered)'
- When I(type) is set to C(event_type), the choices - ' - C(lost)'
are C(item in not supported state), C(item in normal state), - 'When I(type=discovery_object), the choices are:'
C(LLD rule in not supported state), - ' - C(host)'
C(LLD rule in normal state), C(trigger in unknown state), C(trigger in normal state). - ' - C(service)'
- When I(type) is set to C(trigger_severity), the choices - 'When I(type=event_type), the choices are:'
are (case-insensitive) C(not classified), C(information), C(warning), C(average), C(high), C(disaster) - ' - C(item in not supported state)'
irrespective of user-visible names being changed in Zabbix. Defaults to C(not classified) if omitted. - ' - C(item in normal state)'
- ' - C(LLD rule in not supported state)'
- ' - C(LLD rule in normal state)'
- ' - C(trigger in unknown state)'
- ' - C(trigger in normal state)'
- 'When I(type=trigger_severity), the choices are (case-insensitive):'
- ' - C(not classified)'
- ' - C(information)'
- ' - C(warning)'
- ' - C(average)'
- ' - C(high)'
- ' - C(disaster)'
- Irrespective of user-visible names being changed in Zabbix. Defaults to C(not classified) if omitted.
- Besides the above options, this is usually either the name - Besides the above options, this is usually either the name
of the object or a string to compare with. of the object or a string to compare with.
operator: operator: