接口 PrefixMetricWriter

    • 方法详细资料

      • set

        void set​(String group,
                 Collection<Metric<?>> values)
        Save some metric values and associate them with a group name.
        参数:
        group - the name of the group
        values - the metric values to save
      • increment

        void increment​(String group,
                       Delta<?> delta)
        Increment the value of a metric (or decrement if the delta is negative). The name of the metric to increment is group + "." + delta.name.
        参数:
        group - the name of the group
        delta - the amount to increment by
      • reset

        void reset​(String group)
        Rest the values of all metrics in the group. Implementations may choose to discard the old values.
        参数:
        group - reset the whole group