{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }}

{{#if (eq this.metric "cpu")}} CPU {{else if (eq this.metric "memory")}} Memory {{else}} {{this.metric}} {{/if}}

{{#if (eq this.metric "cpu")}} {{format-scheduled-hertz this.data.lastObject.used}} / {{format-scheduled-hertz this.reservedAmount}} Total {{else if (eq this.metric "memory")}} {{format-scheduled-bytes this.data.lastObject.used}} / {{format-scheduled-bytes this.reservedAmount start="MiB"}} Total {{else}} {{this.data.lastObject.used}} / {{this.reservedAmount}} Total {{/if}}