Interface ExpositionFormatWriter
- All Known Implementing Classes:
OpenMetricsTextFormatWriter, PrometheusProtobufWriter, PrometheusProtobufWriterImpl, PrometheusTextFormatWriter
public interface ExpositionFormatWriter
-
Method Summary
Modifier and TypeMethodDescriptionbooleandefault booleanReturns true if the writer is available.default StringtoDebugString(MetricSnapshots metricSnapshots) Converts the metric snapshots to a debug string using the default escaping scheme.default StringtoDebugString(MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Converts the metric snapshots to a debug string using the specified escaping scheme.default voidwrite(OutputStream out, MetricSnapshots metricSnapshots) Writes the given metric snapshots to the output stream using the default escaping scheme.voidwrite(OutputStream out, MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Writes the given metric snapshots to the output stream using the specified escaping scheme.
-
Method Details
-
accepts
-
write
void write(OutputStream out, MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) throws IOException Writes the given metric snapshots to the output stream using the specified escaping scheme.- Throws:
IOException
-
write
Writes the given metric snapshots to the output stream using the default escaping scheme.- Throws:
IOException
-
toDebugString
Converts the metric snapshots to a debug string using the specified escaping scheme. -
toDebugString
Converts the metric snapshots to a debug string using the default escaping scheme. -
getContentType
-
isAvailable
Returns true if the writer is available. If false, the writer will throw an exception if used.
-