{% extends 'generic/object.html' %} {% load helpers %} {% block content %} {% if object.status == "running" or object.status == "pending" %}
| Cluster | {{ object.cluster_name }} |
|---|---|
| Status | {{ object.get_status_display }} |
| Trigger | {{ object.get_trigger_display }} |
| Triggered By | {{ object.triggered_by|default:"—" }} |
| Started | {{ object.start_time|date:"Y-m-d H:i" }} |
| Finished | {% if object.end_time %}{{ object.end_time|date:"Y-m-d H:i" }}{% else %}—{% endif %} |
| Duration | {% if object.duration %} {{ object.duration|floatformat:0 }}s {% elif object.status == "running" %} 計算中... {% else %}—{% endif %} |
| RQ Job ID | {{ object.details.rq_job_id|default:"-" }} |
| Device Synced | {% if object.status == "running" %} 同步完成後顯示 {% elif object.status == "success" %} 1 {% else %}—{% endif %} |
|---|---|
| Backup Records Updated | {% if object.details.backup_updated is not None %} {{ object.details.backup_updated }} {% elif object.status == "running" %} 同步完成後顯示 {% else %}—{% endif %} |
| No VM Match (Skipped) | {% if object.details.backup_skipped is not None %} {{ object.details.backup_skipped }} {% else %}—{% endif %} |
| Total VMs | {% if object.total_vms > 0 %} {{ object.total_vms }} {% elif object.status == "running" %} 同步完成後顯示 {% else %}0{% endif %} |
| Success | {{ object.success_vms }} |
| Failed | {{ object.failed_vms }} |
| Success Rate | {% if object.total_vms > 0 %}{{ object.success_rate|floatformat:1 }}%{% else %}—{% endif %} |
| Nodes Offline | {{ object.nodes_offline }} |
| Config Drifts | {{ object.config_drifts }} |
| Tag Changes | {{ object.tag_changes }} |
| Resource Alerts | {{ object.resource_alerts }} |
{{ object.details|pprint }}