Class MetricsContent
- java.lang.Object
-
- com.cloudbees.jenkins.support.api.Content
-
- com.cloudbees.jenkins.support.impl.MetricsContent
-
public class MetricsContent extends Content
A metric content.- Author:
- Stephen Connolly
-
-
Constructor Summary
Constructors Constructor Description MetricsContent(String name, com.codahale.metrics.MetricRegistry metricsRegistry)
MetricsContent(String name, String[] filterableParameters, com.codahale.metrics.MetricRegistry metricsRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldBeFiltered()
Indicates if this Content should be filtered when anonymization is enabled.void
writeTo(OutputStream os)
-
Methods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName, getTime
-
-
-
-
Method Detail
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeTo
in classContent
- Throws:
IOException
-
shouldBeFiltered
public boolean shouldBeFiltered()
Description copied from class:Content
Indicates if this Content should be filtered when anonymization is enabled. Whentrue
, the contents written viaContent.writeTo(OutputStream)
may be filtered by aContentFilter
. Whenfalse
, the contents are written without any filtering applied.- Overrides:
shouldBeFiltered
in classContent
-
-