{% extends 'base.html' %} {% load bootstrap inventory_extras %} {% block content %}

Run {{ object }}

Attribute Value
Query
{% if perms.osquery.view_query and object.query %}
Name
{{ query }} {% if object.query_version < object.query.version %}/ Updated since run creation{% endif %}
{% endif %}
SQL
{{ object.get_sql_html|safe }}
{% if object.platforms %}
Platform{{ object.platforms|length|pluralize }}
{{ object.platforms|join:", " }}
{% endif %} {% if object.minimum_osquery_version %}
Min. osquery ver.
{{ object.minimum_osquery_version }}
{% endif %}
Validity {{ object.valid_from }} → {% if object.valid_until %}{{ object.valid_until }}{% endif %}
Serial number{{ object.serial_numbers|length|pluralize }} {{ object.serial_numbers|default:"-"|join:", " }}
Tag{{ object.tags.count|pluralize }} {% for tag in object.tags.all %}{% inventory_tag tag %}{% empty %}-{% endfor %}
Shard {{ object.shard }}%
Created at
{{ object.created_at|date:'r' }}
Updated at
{{ object.updated_at|date:'r' }}

{% if perms.osquery.change_distributedquery %} Update {% endif %} {% if perms.osquery.delete_distributedquery %} Delete {% endif %}

{{ dqm_count }} Machine{{ dqm_count|pluralize }}

{% if dqm_count %} See the machine{{ dqm_count|pluralize }} {% endif %}

{{ result_count }} Result{{ result_count|pluralize }}

{% if perms.osquery.view_distributedqueryresult and result_count %} See the result{{ result_count|pluralize }} {% endif %} {% if perms.osquery.view_filecarvingsession %}

{{ file_carving_session_count }} File carving session{{ file_carving_session_count|pluralize }}

{% if file_carving_session_count %} See file carving session{{ file_carving_session_count|pluralize }} {% endif %} {% endif %} {% endblock %}