Class Match

java.lang.Object
io.vertx.micrometer.Match

public class Match extends Object
A match for a value.
Author:
Julien Viet
  • Field Details

  • Constructor Details

    • Match

      public Match()
      Default constructor
    • Match

      public Match(Match other)
      Copy constructor
      Parameters:
      other - The other Match to copy when creating this
    • Match

      public Match(JsonObject json)
      Create an instance from a JsonObject
      Parameters:
      json - the JsonObject to create it from
  • Method Details

    • getDomain

      public MetricsDomain getDomain()
      Returns:
      the label domain
    • setDomain

      public Match setDomain(MetricsDomain domain)
      Set the label domain, restricting this rule to a single domain.
      Parameters:
      domain - the label domain
      Returns:
      a reference to this, so the API can be used fluently
    • getLabel

      public String getLabel()
      Returns:
      the label name
    • setLabel

      public Match setLabel(String label)
      Set the label name. The match will apply to the values related to this key.
      Parameters:
      label - the label name
      Returns:
      a reference to this, so the API can be used fluently
    • getValue

      public String getValue()
      Returns:
      the matched value
    • setValue

      public Match setValue(String value)
      Set the matched value.
      Parameters:
      value - the value to match
      Returns:
      a reference to this, so the API can be used fluently
    • getType

      public MatchType getType()
      Returns:
      the matcher type
    • setType

      public Match setType(MatchType type)
      Set the type of matching to apply.
      Parameters:
      type - the matcher type
      Returns:
      a reference to this, so the API can be used fluently
    • getAlias

      public String getAlias()
      Returns:
      the matcher alias
    • setAlias

      public Match setAlias(String alias)
      Set an alias that would replace the label value when it matches.
      Parameters:
      alias - the matcher alias
      Returns:
      a reference to this, so the API can be used fluently