2020-08-05 03:19:54 +00:00
|
|
|
<LineChart
|
|
|
|
@timeseries={{true}}
|
|
|
|
@curve="stepAfter"
|
|
|
|
@xProp="time"
|
|
|
|
@yProp="count"
|
|
|
|
@data={{this.data}}
|
|
|
|
@annotations={{this.annotations}}
|
|
|
|
@activeAnnotation={{this.activeEvent}}
|
|
|
|
@onAnnotationClick={{action this.toggleEvent}} />
|
|
|
|
{{#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}}
|