Class QueryPrometheus
- java.lang.Object
-
- com.atlassian.buildeng.kubernetes.metrics.QueryPrometheus
-
public class QueryPrometheus extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryPrometheus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.json.JSONObjectquery(String prometheusUrl, String query, String stepPeriod, Long start, Long end)Static method to query prometheus.
-
-
-
Method Detail
-
query
public static org.json.JSONObject query(String prometheusUrl, String query, String stepPeriod, Long start, Long end) throws URISyntaxException, IOException
Static method to query prometheus.- Throws:
URISyntaxExceptionIOException
-
-