Package jenkins.telemetry.impl
Class PasswordMasking
java.lang.Object
jenkins.telemetry.Telemetry
jenkins.telemetry.impl.PasswordMasking
- All Implemented Interfaces:
ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PasswordMasking
extends Telemetry
Telemetry implementation gathering information about password field masking.
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.telemetry.Telemetry
Telemetry.TelemetryReporterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.json.JSONObjectReturns the content to be sent to the telemetry service.User friendly display name for this telemetry collector, ideally localized.getEnd()End date for the collection.getStart()Start date for the collection.static voidrecordMasking(String className, String closestAncestor, String jellyView) Records when password masking occurs.Methods inherited from class jenkins.telemetry.Telemetry
all, buildComponentInformation, getId, isActivePeriod, isAnyTrialActive, isDisabled
-
Constructor Details
-
PasswordMasking
public PasswordMasking()
-
-
Method Details
-
recordMasking
Records when password masking occurs.- Parameters:
className- the class name of the objectclosestAncestor- the closest ancestor class namejellyView- the Jelly view where masking occurred
-
getDisplayName
Description copied from class:TelemetryUser friendly display name for this telemetry collector, ideally localized.- Specified by:
getDisplayNamein classTelemetry- Returns:
- display name, never null or empty
-
getStart
Description copied from class:TelemetryStart date for the collection. Will be checked in Jenkins to not collect outside the defined time span. This does not have to be precise enough for time zones to be a consideration. -
getEnd
Description copied from class:TelemetryEnd date for the collection. Will be checked in Jenkins to not collect outside the defined time span. This does not have to be precise enough for time zones to be a consideration. -
createContent
public net.sf.json.JSONObject createContent()Description copied from class:TelemetryReturns the content to be sent to the telemetry service. This method is called periodically, once per content submission.- Specified by:
createContentin classTelemetry- Returns:
- The JSON payload, or null if no content should be submitted.
-