Class MetricsContent
java.lang.Object
com.cloudbees.jenkins.support.api.Content
com.cloudbees.jenkins.support.impl.MetricsContent
A metric content.
- Author:
- Stephen Connolly
-
Constructor Summary
ConstructorDescriptionMetricsContent
(String name, com.codahale.metrics.MetricRegistry metricsRegistry) MetricsContent
(String name, String[] filterableParameters, com.codahale.metrics.MetricRegistry metricsRegistry) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Constructor Details
-
MetricsContent
-
MetricsContent
-
-
Method Details
-
writeTo
- 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
-