Skip to content

Commit

Permalink
Added val with all metric qualifications (#20418)
Browse files Browse the repository at this point in the history
Before this change, we had to refer to each qualification individually in order to refer to all of them. Now, there is a list of qualifiations that can be used instead.
  • Loading branch information
daravep authored Dec 6, 2024
1 parent e43ba71 commit bb8ba5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

package com.digitalasset.canton.metrics

import com.daml.metrics.api.MetricDoc.Tag
import com.daml.metrics.api.MetricQualification

object MetricDoc {

final case class Item(
tag: Tag,
name: String,
metricType: String,
qualification: MetricQualification,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ package com.daml.metrics.api
sealed trait MetricQualification
object MetricQualification {

/** All possible metric qualifications */
lazy val All: Seq[MetricQualification] = Seq(Latency, Traffic, Errors, Saturation, Debug)

/** Any metric measuring processing time of some sort */
case object Latency extends MetricQualification

Expand Down

0 comments on commit bb8ba5c

Please sign in to comment.