veffect
Version:
powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha
94 lines (93 loc) • 2.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.taggedWithLabels = exports.tagged = exports.summary = exports.isMetricKey = exports.histogram = exports.gauge = exports.frequency = exports.counter = exports.MetricKeyTypeId = void 0;
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/metric/key.js"));
function _getRequireWildcardCache(e) {
if ("function" != typeof WeakMap) return null;
var r = new WeakMap(),
t = new WeakMap();
return (_getRequireWildcardCache = function (e) {
return e ? t : r;
})(e);
}
function _interopRequireWildcard(e, r) {
if (!r && e && e.__esModule) return e;
if (null === e || "object" != typeof e && "function" != typeof e) return {
default: e
};
var t = _getRequireWildcardCache(r);
if (t && t.has(e)) return t.get(e);
var n = {
__proto__: null
},
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
}
return n.default = e, t && t.set(e, n), n;
}
/**
* @since 2.0.0
* @category symbols
*/
const MetricKeyTypeId = exports.MetricKeyTypeId = internal.MetricKeyTypeId;
/**
* @since 2.0.0
* @category refinements
*/
const isMetricKey = exports.isMetricKey = internal.isMetricKey;
/**
* Creates a metric key for a counter, with the specified name.
*
* @since 2.0.0
* @category constructors
*/
const counter = exports.counter = internal.counter;
/**
* Creates a metric key for a categorical frequency table, with the specified
* name.
*
* @since 2.0.0
* @category constructors
*/
const frequency = exports.frequency = internal.frequency;
/**
* Creates a metric key for a gauge, with the specified name.
*
* @since 2.0.0
* @category constructors
*/
const gauge = exports.gauge = internal.gauge;
/**
* Creates a metric key for a histogram, with the specified name and boundaries.
*
* @since 2.0.0
* @category constructors
*/
const histogram = exports.histogram = internal.histogram;
/**
* Creates a metric key for a summary, with the specified name, maxAge,
* maxSize, error, and quantiles.
*
* @since 2.0.0
* @category constructors
*/
const summary = exports.summary = internal.summary;
/**
* Returns a new `MetricKey` with the specified tag appended.
*
* @since 2.0.0
* @category constructors
*/
const tagged = exports.tagged = internal.tagged;
/**
* Returns a new `MetricKey` with the specified tags appended.
*
* @since 2.0.0
* @category constructors
*/
const taggedWithLabels = exports.taggedWithLabels = internal.taggedWithLabels;
//# sourceMappingURL=MetricKey.js.map