Skip to content

Commit

Permalink
add message reates to exchanges view (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 authored Feb 6, 2025
1 parent 5a37697 commit 09a4d04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions static/js/exchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const exchangeTable = Table.renderTable('table', tableOptions, function (tr, ite
policyLink.textContent = item.policy
}
Table.renderCell(tr, 4, policyLink, 'center')
Table.renderCell(tr, 5, item.message_stats.publish_in_details.rate, 'center')
Table.renderCell(tr, 6, item.message_stats.publish_out_details.rate, 'center')
})

document.querySelector('#addExchange').addEventListener('submit', function (evt) {
Expand Down
8 changes: 5 additions & 3 deletions views/exchanges.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<th data-sort-key="type" class="left">Type</th>
<th>Features</th>
<th data-sort-key="policy">Policy</th>
<th data-sort-key="publish_in">Message rate in</th>
<th data-sort-key="publish_out">Message rate out</th>
</tr>
</thead>
<tbody></tbody>
Expand Down Expand Up @@ -87,13 +89,13 @@
</a>
<a class="arg-tooltip" data-tag="x-message-deduplication" data-value="true">Message deduplication
<span class="tooltiptext">Enable deduplication for this exchange</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-cache-size" data-value="100">Deduplication cache size
<span class="tooltiptext">Deduplication cache size, in number of entries</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-cache-ttl" data-value="1000">Deduplication cache ttl
<span class="tooltiptext">How long an entry lives in the deduplication cache, in milliseconds</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-deduplication-header">Deduplication header
<span class="tooltiptext">Which header to check for deduplication, defaults to x-deduplication-header</span>
</a>
Expand Down

0 comments on commit 09a4d04

Please sign in to comment.