Interface ExpositionFormatWriter
- All Known Implementing Classes:
OpenMetricsTextFormatWriter
,PrometheusProtobufWriter
,PrometheusProtobufWriterImpl
,PrometheusTextFormatWriter
public interface ExpositionFormatWriter
-
Method Summary
Modifier and TypeMethodDescriptionboolean
default boolean
Returns true if the writer is available.default String
toDebugString
(MetricSnapshots metricSnapshots) Converts the metric snapshots to a debug string using the default escaping scheme.default String
toDebugString
(MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Converts the metric snapshots to a debug string using the specified escaping scheme.default void
write
(OutputStream out, MetricSnapshots metricSnapshots) Writes the given metric snapshots to the output stream using the default escaping scheme.void
write
(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.
-