本文整理匯總了Java中org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter類的典型用法代碼示例。如果您正苦於以下問題:Java PrefixMetricWriter類的具體用法?Java PrefixMetricWriter怎麽用?Java PrefixMetricWriter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PrefixMetricWriter類屬於org.springframework.boot.actuate.metrics.writer包,在下文中一共展示了PrefixMetricWriter類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: RichGaugeExporter
import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter; //導入依賴的package包/類
public RichGaugeExporter(RichGaugeReader reader, PrefixMetricWriter writer) {
this(reader, writer, "");
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:4,代碼來源:RichGaugeExporter.java
示例2: PrefixMetricGroupExporter
import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter; //導入依賴的package包/類
/**
* Create a new exporter for metrics to a writer based on a prefix for the metric
* names.
* @param reader a reader as the source of metrics
* @param writer the writer to send the metrics to
* @param prefix the prefix for metrics to export
*/
public PrefixMetricGroupExporter(PrefixMetricReader reader, PrefixMetricWriter writer,
String prefix) {
super(prefix);
this.reader = reader;
this.writer = writer;
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:14,代碼來源:PrefixMetricGroupExporter.java