2020-08-05 03:19:54 +00:00
|
|
|
<LineChart
|
|
|
|
@timeseries={{true}}
|
|
|
|
@xProp="time"
|
|
|
|
@yProp="count"
|
2021-02-24 07:22:20 +00:00
|
|
|
@data={{this.data}}>
|
|
|
|
<:svg as |c|>
|
|
|
|
<c.Area
|
|
|
|
@curve="stepAfter"
|
|
|
|
@data={{this.data}} />
|
|
|
|
</:svg>
|
|
|
|
<:after as |c|>
|
2021-03-09 05:01:57 +00:00
|
|
|
<c.Tooltip class="is-snappy" as |series datum|>
|
|
|
|
<li>
|
|
|
|
<span class="label"><span class="color-swatch is-primary" />{{datum.formattedX}}</span>
|
|
|
|
<span class="value">{{datum.formattedY}}</span>
|
|
|
|
</li>
|
|
|
|
</c.Tooltip>
|
2021-02-24 07:22:20 +00:00
|
|
|
<c.VAnnotations
|
|
|
|
@annotations={{this.annotations}}
|
|
|
|
@key="event.uid"
|
|
|
|
@activeAnnotation={{this.activeEvent}}
|
|
|
|
@annotationClick={{action this.toggleEvent}} />
|
|
|
|
</:after>
|
|
|
|
</LineChart>
|
2020-08-05 03:19:54 +00:00
|
|
|
{{#if this.activeEvent}}
|
2020-08-05 04:28:11 +00:00
|
|
|
<div data-test-event-details>
|
2020-08-05 03:19:54 +00:00
|
|
|
<div class="event">
|
2020-08-05 04:28:11 +00:00
|
|
|
<div data-test-type class="type">
|
2020-08-05 03:19:54 +00:00
|
|
|
{{#if this.activeEvent.event.error}}
|
|
|
|
{{x-icon "cancel-circle-fill" class="is-danger"}}
|
|
|
|
{{else}}
|
2020-08-05 18:53:14 +00:00
|
|
|
{{x-icon "info-circle-fill" class="is-grey"}}
|
2020-08-05 03:19:54 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-08-05 04:28:11 +00:00
|
|
|
<p data-test-timestamp class="timestamp">{{format-month-ts this.activeEvent.event.time}}</p>
|
|
|
|
<p data-test-message class="message">{{this.activeEvent.event.message}}</p>
|
2020-08-05 03:19:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<JsonViewer @json={{this.activeEvent.event.meta}} @fluidHeight={{true}} />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|