Class PrometheusMetric


  • public class PrometheusMetric
    extends Object
    Model class for metrics in Prometheus format
    • Constructor Detail

      • PrometheusMetric

        public PrometheusMetric()
    • Method Detail

      • formatMetric

        public static String formatMetric​(PrometheusMetric metric)
        Formats the metric data into Prometheus format
        Parameters:
        metric - Metric object
        Returns:
        Formatted metric string
      • getMetricName

        public String getMetricName()
      • setMetricName

        public void setMetricName​(String metricName)
      • getHelp

        public String getHelp()
      • setHelp

        public void setHelp​(String help)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getMetricValue

        public Double getMetricValue()
      • setMetricValue

        public void setMetricValue​(Double metricValue)
      • getPropertyString

        public String getPropertyString()
      • setPropertyString

        public void setPropertyString​(String propertyString)