public class PrometheusMetricWriter extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
PrometheusMetricWriter.WritableByteChannelController |
| Constructor and Description |
|---|
PrometheusMetricWriter(WritableByteChannel channel,
PrometheusMetricWriter.WritableByteChannelController controller,
ByteBuffer buf,
boolean includeTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(PrometheusMetric metric) |
void |
writeHelp(String name,
StringWriter writer,
String nameSuffix,
String helpText) |
void |
writeType(String name,
StringWriter writer,
String nameSuffix,
String typeText) |
public PrometheusMetricWriter(WritableByteChannel channel, PrometheusMetricWriter.WritableByteChannelController controller, ByteBuffer buf, boolean includeTimestamp)
public void write(PrometheusMetric metric) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void writeHelp(String name, StringWriter writer, String nameSuffix, String helpText) throws IOException
IOExceptionpublic void writeType(String name, StringWriter writer, String nameSuffix, String typeText) throws IOException
IOExceptionCopyright © 2020. All rights reserved.