{% macro header(tag, title) -%}
<{{ tag }} id="{{ title | lower | replace(' ', '-') }}">
{{ title }}
{{ tag }}>
{% endmacro %}
{{ header('h2', 'Client Variables') }}
| Variable | Value |
| client.address | {{ client.address }} |
{% if client.message_id is defined -%}
{{ header('h3', 'Client Session Variables') }}
| Variable | Value |
| client.company_name | {{ client.company_name }} |
| client.email_address | {{ client.email_address }} |
| client.first_name | {{ client.first_name }} |
| client.last_name | {{ client.last_name }} |
| client.is_trained | {{ client.is_trained }} |
| client.message_id | {{ client.message_id }} |
| client.credential_count | {{ client.credential_count }} |
| client.visit_count | {{ client.visit_count }} |
| client.visit_id | {{ client.visit_id }} |
{% endif %}
{% if client.campaign is defined -%}
{{ header('h3', 'Client Session Campaign Variables') }}
| Variable | Value |
{% for key, value in client.campaign.items() -%}
| client.campaign.{{ key }} | {{ value }} |
{% endfor -%}
{% endif %}
{% if client.company is defined -%}
{{ header('h3', 'Client Session Company Variables') }}
| Variable | Value |
{% for key, value in client.company.items() -%}
| client.company.{{ key }} | {{ value }} |
{% endfor -%}
{% endif %}
{{ header('h2', 'Request Variables') }}
| Variable | Value |
| request.command | {{ request.command }} |
| request.cookies |
{% for key, value in request.cookies.items() -%}
- {{ key }} = {{ value }}
{% endfor -%}
|
| request.headers |
{% for key, value in request.headers.items() -%}
- {{ key }} = {{ value }}
{% endfor -%}
|
| request.parameters |
{% for key, value in request.parameters.items() -%}
- {{ key }} = {{ value }}
{% endfor -%}
|
{% if request.credentials is defined -%}
{{ header('h3', 'Request Credentials Variables') }}
| Variable | Value |
{% for key, value in request.credentials.items() -%}
| request.credentials.{{ key }} | {{ value }} |
{% endfor -%}
{% endif %}
{% if request.user_agent -%}
{{ header('h3', 'Request User Agent Information') }}
{% set ua_info = parse_user_agent(request.user_agent) %}
Parse the request's User Agent to obtain details.
set ua_info = parse_user_agent(request.user_agent)
| Variable | Value |
| request.user_agent | {{ request.user_agent }} |
| ua_info.os_name | {{ ua_info.os_name }} |
| ua_info.os_version | {{ ua_info.os_version }} |
| ua_info.os_arch | {{ ua_info.os_arch }} |
{% endif %}
{{ header('h2', 'Server Variables') }}
| Variable | Value |
| server.address | {{ server.address }} |
| server.hostname | {{ server.hostname }} |
{{ header('h2', 'Time Variables') }}
| Variable | Value |
| time.local | {{ time.local }} |
| time.utc | {{ time.utc }} |
{{ header('h3', 'Time Filters') }}
| Variable | Value |
| yesterday | {{ time.local | yesterday }} |
| tomorrow | {{ time.local | tomorrow }} |
| strftime | {{ time.local | strftime('%A, %d %B %Y %I:%M%p') }} |
{{ header('h2', 'Miscellaneous Variables') }}
| Variable | Value |
| version | {{ version }} |