Files
news.gitea.happylizard.me/bin/gems/metrics-0.12.1/lib/metrics/metric.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

25 lines
427 B
Ruby

# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2021-2022, by Samuel Williams.
module Metrics
class Metric
def initialize(name, type, description, unit)
@name = name
@type = type
@description = description
@unit = unit
end
attr :name
attr :type
attr :description
attr :unit
def emit(value, tags: nil, sample_rate: 1.0)
raise NotImplementedError
end
end
end