Class PrometheusMetric
- java.lang.Object
-
- org.wso2.carbon.prometheus.publisher.model.PrometheusMetric
-
public class PrometheusMetric extends Object
Model class for metrics in Prometheus format
-
-
Constructor Summary
Constructors Constructor Description PrometheusMetric()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
formatMetric(PrometheusMetric metric)
Formats the metric data into Prometheus formatString
getHelp()
String
getMetricName()
Double
getMetricValue()
String
getPropertyString()
String
getType()
void
setHelp(String help)
void
setMetricName(String metricName)
void
setMetricValue(Double metricValue)
void
setPropertyString(String propertyString)
void
setType(String type)
-
-
-
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)
-
-