public static class RatioGaugeDescriptor.RatioGaugeDescriptorBuilder extends MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
RatioGaugeDescriptor
be specified during its own construction. Values may also be specified
for the optional arguments needed for a RatioGaugeDescriptor
, but
these values are defaulted in the event that no value is specified for
them.appId, description, jmx, name, persist, primaryTag, secondaryTag, summaryMinutes, type
Constructor and Description |
---|
RatioGaugeDescriptorBuilder(String name)
Creates a new
RatioGaugeDescriptor.RatioGaugeDescriptorBuilder using only the
arguments that are required to build a valid RatioGaugeDescriptor . |
public RatioGaugeDescriptorBuilder(String name)
RatioGaugeDescriptor.RatioGaugeDescriptorBuilder
using only the
arguments that are required to build a valid RatioGaugeDescriptor
. If no other fields are set via other methods
before building, the resulting RatioGaugeDescriptor
will
specify a TimeStampedRatioGauge
associated with no specific
application, no primary or secondary tags, no description, and that
the resulting TimeStampedRatioGauge
should be persisted using
the default summarization interval and should not be visible via JMX.name
- a name for the TimeStampedRatioGauge
(e.g.
"txPackets")public RatioGaugeDescriptor build()
RatioGaugeDescriptor
instance.build
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
RatioGaugeDescriptor
public RatioGaugeDescriptor.RatioGaugeDescriptorBuilder appId(String toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that
will be built.appId
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- application IDpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder description(String toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that
will be built.description
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- descriptionpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder name(String toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that will be
built. Many metrics may have the same name (e.g. "txPackets") but
can be distinguished from one another via the primary and secondary
tags specified.name
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- namepublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder persist(boolean toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that will be built is to be persisted. true
indicates that
the value should be persisted, false
that it shouldn't.persist
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- persistence flagpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder primaryTag(String toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that will be built. The tag can be anything that
is a useful identifier to group metrics by.primaryTag
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- primary tagpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder publishToJmx(boolean toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that will be built should be made visible via JMX. true
indicates that the value should be visible, false
that it
shouldn't.publishToJmx
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- JMX flagpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder secondaryTag(String toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that will be built. The tag can be anything that
is a useful identifier to group metrics by, but should make sense in
the context of the specified primary tag.secondaryTag
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- secondary tagpublic RatioGaugeDescriptor.RatioGaugeDescriptorBuilder summaryMinutes(MetricDescriptor.SummaryIntervalMinutes toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that
will be built.summaryMinutes
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- summarization interval (in minutes)public RatioGaugeDescriptor.RatioGaugeDescriptorBuilder type(MetricDescriptor.Type toSet)
MetricDescriptor.MetricDescriptorBuilder
MetricDescriptor
that
will be built.type
in class MetricDescriptor.MetricDescriptorBuilder<RatioGaugeDescriptor>
toSet
- metric typeCopyright © 2016. All Rights Reserved.