"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.progressGauge = void 0;
var _fonts = require("../../../common/lib/fonts");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const progressGauge = () => ({
  name: 'progressGauge',
  displayName: 'Gauge',
  type: 'progress',
  help: 'Displays progress as a portion of a gauge',
  width: 200,
  height: 200,
  icon: 'visGoal',
  expression: `kibana
| selectFilter
| demodata
| math "mean(percent_uptime)"
| progress shape="gauge" label={formatnumber 0%} font={font size=24 family="${_fonts.openSans.value}" color="#000000" align=center}
| render`
});
exports.progressGauge = progressGauge;