Class ProxiedMetric

java.lang.Object
com.persequor.extension.metrics.ProxiedMetric
All Implemented Interfaces:
IProxiedMetric

public class ProxiedMetric extends Object implements IProxiedMetric
  • Constructor Details

    • ProxiedMetric

      public ProxiedMetric(String sourceAlias, String metric)
  • Method Details

    • getSourceAlias

      public String getSourceAlias()
      Description copied from interface: IProxiedMetric
      Name alias to identify the source of the metric. Helps scrapers of Saga see what external system this metric belongs to.
      Specified by:
      getSourceAlias in interface IProxiedMetric
      Returns:
      Name and/or alias of the external system this metric belongs to.
    • getMetric

      public String getMetric()
      Description copied from interface: IProxiedMetric
      Gets the OpenMetrics metric received from the external system
      Specified by:
      getMetric in interface IProxiedMetric
      Returns:
      Metric received from the external system