Package jenkins.telemetry.impl
Class UserLanguages
- java.lang.Object
-
- jenkins.telemetry.Telemetry
-
- jenkins.telemetry.impl.UserLanguages
-
- All Implemented Interfaces:
ExtensionPoint
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class UserLanguages extends Telemetry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserLanguages.AcceptLanguageFilter
-
Nested classes/interfaces inherited from class jenkins.telemetry.Telemetry
Telemetry.TelemetryReporter
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description UserLanguages()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.json.JSONObject
createContent()
Returns the content to be sent to the telemetry service.String
getDisplayName()
User friendly display name for this telemetry collector, ideally localized.LocalDate
getEnd()
End date for the collection.String
getId()
ID of this collector, typically an alphanumeric string (and punctuation).LocalDate
getStart()
Start date for the collection.static void
setUpFilter()
-
Methods inherited from class jenkins.telemetry.Telemetry
all, buildComponentInformation, isActivePeriod, isDisabled
-
-
-
-
Method Detail
-
getId
@NonNull public String getId()
Description copied from class:Telemetry
ID of this collector, typically an alphanumeric string (and punctuation). Good IDs are globally unique and human readable (i.e. no UUIDs). For a periodically updated list of all public implementations, see the developer documentation.
-
getDisplayName
@NonNull public String getDisplayName()
Description copied from class:Telemetry
User friendly display name for this telemetry collector, ideally localized.- Specified by:
getDisplayName
in classTelemetry
- Returns:
- display name, never null or empty
-
getStart
@NonNull public LocalDate getStart()
Description copied from class:Telemetry
Start 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
@NonNull public LocalDate getEnd()
Description copied from class:Telemetry
End 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:Telemetry
Returns the content to be sent to the telemetry service. This method is called periodically, once per content submission.- Specified by:
createContent
in classTelemetry
- Returns:
- The JSON payload, or null if no content should be submitted.
-
setUpFilter
@Initializer(after=EXTENSIONS_AUGMENTED) public static void setUpFilter()
-
-