mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 18:19:53 +00:00
5fb9df1640
* Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at <Blog URL>, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
82 lines
1.9 KiB
Handlebars
82 lines
1.9 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
{{#if (not @noMetricsReason)}}
|
|
<DataSource
|
|
@src={{uri '/${partition}/${nspace}/${dc}/metrics/summary-for-service/${service}/${protocol}'
|
|
(hash
|
|
nspace=@nspace
|
|
partition=@partition
|
|
dc=@dc
|
|
service=@service
|
|
protocol=@protocol
|
|
)
|
|
}}
|
|
@onchange={{action 'change'}}
|
|
@onerror={{action (mut error) value="error"}}
|
|
/>
|
|
{{/if}}
|
|
|
|
{{on-window 'resize' (action 'redraw')}}
|
|
{{did-insert (action 'redraw')}}
|
|
|
|
{{#if (not empty)}}
|
|
{{#if data.labels}}
|
|
<a
|
|
class="sparkline-key-link"
|
|
{{on "click" (optional this.modal.open)}}
|
|
>
|
|
Key
|
|
</a>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
<div data-test-sparkline class="sparkline-wrapper">
|
|
<div class="tooltip">
|
|
<div class="sparkline-time">Timestamp</div>
|
|
</div>
|
|
{{#if empty}}
|
|
<TopologyMetrics::Status
|
|
@noMetricsReason={{@noMetricsReason}}
|
|
@error={{error}}
|
|
/>
|
|
{{/if}}
|
|
<svg class="sparkline"></svg>
|
|
</div>
|
|
|
|
<ModalDialog
|
|
class="sparkline-key"
|
|
@aria={{hash
|
|
label="Metrics Key"
|
|
}}
|
|
as |modal|>
|
|
<Ref @target={{this}} @name="modal" @value={{modal}} />
|
|
<BlockSlot @name="header">
|
|
<h3>Metrics Key</h3>
|
|
</BlockSlot>
|
|
<BlockSlot @name="body">
|
|
<div class="sparkline-key-content">
|
|
<p>This key describes the metrics corresponding to the graph tooltip labels in more detail.</p>
|
|
<dl>
|
|
{{#each-in data.labels as |label desc| }}
|
|
<dt>{{label}}</dt>
|
|
<dd>{{desc}}</dd>
|
|
{{/each-in}}
|
|
</dl>
|
|
{{#unless data.labels}}
|
|
<span class="no-data">No metrics loaded.</span>
|
|
{{/unless}}
|
|
</div>
|
|
</BlockSlot>
|
|
<BlockSlot @name="actions">
|
|
<button
|
|
type="button"
|
|
class="type-cancel"
|
|
onclick={{action modal.close}}
|
|
>
|
|
Close
|
|
</button>
|
|
</BlockSlot>
|
|
</ModalDialog> |